Plotting an Input 1-D Function
using Fortran


This page demonstrates a method to: (a) give a Fortran program input numbers and input code, (b) run the program, and (c) print and plot the results.
The output consists of plotting a .gif file and a link to a .ps file of the same graph. gnuplot is used.

Input the floating point values of the quantities


the start location in x:

the end location in x:

type the function of x (in FORTRAN) below (USE NO SPACES)


Note: the variable name pi can be used for the value 3.1412...

need more space? type "+" followed by more of the function of x (in FORTRAN) below (USE NO SPACES)


Known problems: Ranges rescaled to -1:1 if range is <1.e-20 in magnitude.
Be sure to use decimal points for floating point numbers to be properly transfered.


This web page and associated parts were created by R. Grotjahn. Last update: 17 September 1998.
The scheme is based on a template provided by Ed Siegner ejsiegner@ucdavis.edu" on 11 August, 1998.
Further assistance was provided by Erick Lorenz.