{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


gnuplot_quadeq_example - Last revised 2009-Jan-01 Plotting...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Last revised: 2009-Jan-01 Plotting Data from a File with Gnuplot This is a brief introduction by example to using the GNUPLOT plotting program to make XY plots of data from a file. We’ll use command-line arguments only (but you may also have access to a graphical interface). Start up GNUPLOT by typing “gnuplot”, which should give you some information and then a prompt gnuplot> at which you can type commands. You can get general help by typing help at the gnuplot> prompt or help on a specific command, e.g., gnuplot> help plot will tell you about the plot command. Here is the file quadratic_eq.dat , which was generated by a test program exploring subtractive cancellations in formulas for the roots of a quadratic equation ax 2 + bx + c = 0 in Session 2. # Calculation of quadratic equation roots in single precision # 1/c |relative error 1| |relative error 2| 1.000000e+01 4.355647e-07 4.893942e-07 1.000000e+02 1.765078e-06 1.852387e-06 1.000000e+03 3.503225e-05 3.505630e-05 1.000000e+04 1.410045e-04 1.409685e-04 1.000000e+05 1.355599e-03 1.353804e-03 1.000000e+06 4.632579e-02 4.857613e-02 1.000000e+07 1.920930e-01 1.611393e-01 # 1.000000e+08 1.000000e+00 inf Shown are the values of 1 /c (where a = 1 and
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}