FPLOT(1)FPLOT(1)

## NAME

fplot – plot elementary function

## SYNOPSYS

`fplot``-c``-s`*size*`-r`*range**functions ...*

## DESCRIPTION

*Fplot**functions*`-c`*image*(6).`-s``-r``xmin:xmax ymin:ymax`.

Each function to be plotted may be a combination of the independent variable x,
the elementary operations (+, -, *, / and %), and the functions described in
*sin*(2)*exp*(2).

## EXAMPLES

Plot the absolute value and x^3 functions to a 400x400 image(6) on standard output and view with
*page*(1).

fplot -c -s 400x400 'sqrt(x*x)' 'x^3' | page

## SOURCE

`/sys/src/cmd/fplot.c`

## SEE

*exp*(2),*sin*(2),*image*(6),*plot*(1).

## DIAGNOSTICS

*Fplot*`syntax error`

## BUGS

Parentheses after unary operators are not special, e.g. sin(x)/2 is parsed as sin x/2 = sin(x/2) and not (sin x)/2.

There is no unary plus or minus.

## HISTORY

*Fplot*