Home
▶
Math Related
►
Function Grapher
Graphs any function you enter on the scale of your choice, assuming you use the correct JavaScript syntax. For example, to use Cos x, use Math.cos(x). Or, for x^2, use Math.pow(x, 2), etc.
|
This page tested on MSIE 6.0. Netscape does not support.
To keep a copy of curve graph. after "click here to PLOT"
popup a new window with curve. Press control key and hold
it, then press "prt scr" to copy whole screen. Next open
Paint.exe (or any picture editor) paste and save to file.
Page URL
http://freeman2.com/graph02e.htm
Program index
http://freeman2.com/jsindex2.htm
First upload 2006-06-17
graph01e
C
L
O
S
E
|
95,06,13,23,44
Javascript support the following math functions
[[
Math.E 2.718281828459045091 Euler's constant
Math.LN2 0.6931471805599452862 Natural log of 2
Math.LN10 2.302585092994045901 Natural log of 10
Math.LOG2E 1.442695040888963387 Log base-2 of E
Math.LOG10E 0.4342944819032518167 Log base-10 of E
Math.PI 3.141592653589793116 PI
Math.SQRT1_2 0.7071067811865475 Square root of 0.5
Math.SQRT2 1.414213562373095145 Square root of 2
Math.random() method takes no parameters
Math.abs(val) Absolute value of val
Math.acos(val) Arc cosine (in radians) of val
Math.asin(val) Arc sine (in radians) of val
Math.atan(val) Arc tangent (in radians) of val
Math.atan2(val1, val2) Angle of polar coordinates
Math.ceil(val) Next integer greater than or equal
Math.cos(val) Cosine of val
Math.exp(val) Euler's constant to the power of val
Math.floor(val) Next integer less than or equal to
Math.log(val) Natural logarithm (base e) of val
Math.max(val1, val2) The greater of val1 or val2
Math.min(val1, val2) The lesser of val1 or val2
Math.pow(val1, val2) Val1 to the val2 power
Math.random() Random number between 0 and 1
Math.round(val) N+1 when val >= n.5; otherwise N
Math.sin(val) Sine (in radians) of val
Math.sqrt(val) Square root of val
Math.tan(val) Tangent (in radians) of val
]]
for
hyperbolic cosine, use
0.5*(Math.exp(x)+Math.exp(-x))
hyperbolic sine, use
0.5*(Math.exp(x)-Math.exp(-x))
Freeman 2006-06-17-11-46
JavaScript program list
http://freeman2.com/jsindex2.htm
Great Circle page (JavaScript program)
http://freeman2.com/jscircle.htm
Small Circle page (JavaScript program)
http://freeman2.com/jscircl2.htm
You specify city Longitude/Latitude value.
Circle program output the circle equation
in spherical coordinate which pass the
cities you specified. Circle locus printed.
|
|
|
|
|