3 fplot \- plot elementary function
20 separated by spaces. The default output is the screen, but if the
22 option is specified, the plot is written to the standard output as an r8g8b8
24 The latter image size is either 640x480 or the one specified by the
26 option's argument (in the WIDTHxHEIGHT format). The
28 option accepts as argument the x and y ranges, in the format
29 .LR "xmin:xmax ymin:ymax".
31 Each function to be plotted may be a combination of the independent variable x,
32 the elementary operations (+, -, *, and /), and the functions described in
36 The exception being that x^n raises x to the nth power, log is the base 10 logarithm,
37 and ln is the natural logarithm.
39 Plot the absolute value and x^3 functions to a 400x400 image(6) on standard output and view with
43 fplot -c -s 400x400 'sqrt(x*x)' 'x^3' | page
46 .B /sys/src/cmd/fplot.c
59 first appeared in 9front (July, 2011).