There are lots of Java applets around the net that will give
you more flexibility than this applet does. To get an image
out of those applets to paste somewhere else though, you have
to fight with screen captures and such. Here, you hit
the Snapshot
button, then right-click in the
popup window to save the image.
There isn't much for a function parser there yet. Right now,
it is just Javascript's eval()
. As such, if you
want to do x5 you need to
do pow(x,5)
. If you type x^5
, you
will be attempting to do the bitwise exclusive-or of the binary
representations of x and 5.
You also have to explicitly indicate multiplication.
3x
will give you a parse error. You should type
3 * x
instead.
I have predefined the constants e
and pi
.
You can also use these math functions:
- Continuous, but non-linear:
-
abs(x)
, max(x,y)
, min(x,y)
- Rounding and truncating:
-
ceil(x)
, floor(x)
, round(x)
,
sign(x)
, step(x)
- Trig functions:
-
sin(x)
, cos(x)
, tan(x)
- Inverse-trig functions:
-
acos(x)
, asin(x)
,
atan(x)
, atan2(y,x)
- Logs and exponents:
-
ln(x)
, log2(x)
, log10(x)
exp(x)
(for ex),
pow(x,y)
(for xy),
sqrt(x)
- Hyperbolic trig functions:
-
sinh(x)
, cosh(x)
, tanh(x)
Here is the
git repository for this application.