Sample Calculations with NetMath
NetMath can do symbolic calculations: To see the calculation performed,
double click on the blue region. You can change the arguments and reclick
if you like. To edit, simply click once with the mouse to place your
cursor at the desired point, and then erase and insert the text you wish.
Note that when you edit the blue text, the result turns color
indicating that it is no longer valid. Note that you need an eval enabled
browser such as netmath.
WARNING you are NOT running inside netmath so you
cannot edit the plots nor click to produce them.
Algebra
- f:expand((x+y+z)^5) gives Result.
- factor(f) (the value f above is maintained) evaluates to
Result.
- 500! produces
Result
- factor(154784717804734665298299)
produces a list of factors and multiplicities
Result
Calculus
- integrate(1/(1+x^3),x) evaluates to
Result
Graphics
- plot2d -xfun "sin(x);tan(x);1/cos(x)" -yradius 10 a 2 dimensional plot.
- plot3d -zfun "x^2-y^2" -xradius 1 -yradius 1
is a 3d plot that can be rotated.
- plot3d -zfun {} -data { matrix_mesh { { 0 0 0 0 0 }
{ 1 1 1 1 1 }
} { { 0 1 1 0 0 }
{ 0 1 1 0 0 }
} { { 0 0 1 1 0 }
{ 0 0 1 1 0 }
} }
is a box. The data is { matrix_mesh matx maty matz } where
the matx[i,j],maty[i,j],matz[i,j] are the vertices, and groups of 4 adjacent
vertices of the matrix are used to give quadrilateral faces.
- plot3d -zfun {} -data {
variable_grid { 1 2 3 4 5 6 7 8 9 10 }
{ 1 2 3 }
{ { 0 0 0 0 0 0 0 0 0 0 }
{ 0 0.68404 1.28558 1.73205 1.96962 1.96962 1.73205 1.28558 0.68404 2.44921e-16 }
{ 0 1.36808 2.57115 3.4641 3.93923 3.93923 3.4641 2.57115 1.36808 4.89843e-16 }
} }
is a surface whose data is of the form { variable_grid xvector yvector zmatrix }, and the points correspond to xvector[i],yvector[j],zmatrix[i,j].
- plotdf -ode {d(y,x)=2*y-sin(x)} a direction field plot.
- plot2d -xfun {} -data {plot2d {bargraph .8} {againstIndex {7 2 4
3 5}}} a 2 dimensional plot.