fplot – plot elementary function
separated by spaces. The default output is the screen, but if the
option is specified, the plot is written to the standard output as an r8g8b8
The latter image size is either 640x480 or the one specified by the
option’s argument (in the WIDTHxHEIGHT format). The
option accepts as argument the x and y ranges, in the format
draws coordinate axes and tick marks; the
option inhibits this.
Each function to be plotted may be a combination of the independent variable x,
the elementary operations (+, -, *, / and %), and the functions described in
The exception being that x^n raises x to the nth power, log is the base 10 logarithm,
and ln is the natural logarithm.
Plot the absolute value and x^3 functions to a 400x400 image(6) on standard output and view with
fplot -c -s 400x400 'sqrt(x*x)' 'x^3' | page
either exits with
or an empty status.
There is no unary plus or minus.
Axes are not drawn in
first appeared in 9front (July, 2011).