Professional Documents
Culture Documents
Formula
Formula
mat(2)^3;
#//Calculate the cube of a matrix
wks.nmats=2;
msetvalue im:=mat(2) formula:="x";
[OriginSeparator1]
[Mexican Hat]
sin(sqrt(x^2+y^2))/sqrt(x^2+y^2);
#//Set values of XY coordinates for the matrix
mdim cols:=41 rows:=41 x1:=-10 x2:=10 y1:=-10 y2:=10;
[Paraboloid]
x^2/4;
#//Create matrix objects for X and Y
wks.nmats=3;
mdim cols:=51 rows:=51 x1:=0 x2:=10 y1:=0 y2:=2*pi;
msetvalue im:=mat(2) formula:="x*cos(y)";
msetvalue im:=mat(3) formula:="x*sin(y)";
[Plane]
nlf_Plane(x,y,-1,1,1)
[Sphere]
cos(x);
#//Create matrix objects for X and Y
wks.nmats=3;
mdim cols:=50 rows:=50 x1:=0 x2:=pi y1:=0 y2:=2*pi;
msetvalue im:=mat(2) formula:="sin(x)*cos(y)";
msetvalue im:=mat(3) formula:="sin(x)*sin(y)";
[OriginSeparator2]