PDA

View Full Version : Create A Surface In S.D. from A Equation


jackk36
02-24-2004, 05:26 AM
function [z] = surf_contour_A(x,y)
a = 1;
b = -0.004;
c = 0.8535;
d = 142.52;
e = -0.258;
f = -0.0004;
g = 0.5607;

numerator = (a+b*y).*(x.^2+c*y.^2);
denominator = d+e*y+f*(x.^2+g*y.^2);
z = numerator ./ denominator;

return;

dszostak
04-11-2007, 12:56 PM
In the 2007 release of CoCreate OneSpace Modeling, you can now create mathematical 2D curves from a functional equation or 3D curves based off of a parametric equation.

Lim Chee Beng
04-11-2007, 06:25 PM
function [z] = surf_contour_A(x,y)
a = 1;
b = -0.004;
c = 0.8535;
d = 142.52;
e = -0.258;
f = -0.0004;
g = 0.5607;

numerator = (a+b*y).*(x.^2+c*y.^2);
denominator = d+e*y+f*(x.^2+g*y.^2);
z = numerator ./ denominator;

return;
Just curious, what kind of range of x & y you are focusing at? It looks pretty much a flat surface in the x&y range of -1 to +1, if my function expression is correct...
'(lambda (x y) (/ (* (+ 1 (* -0.004 y)) (+ (expt x 2) (* 0.8535 (expt y 2)))) (+ (+ 142.52 (* -0.258 y)) (* -0.0004 (+ (expt x 2) (* 0.5607 (expt y 2)))))))
:)

Lim Chee Beng
04-12-2007, 12:44 AM
In the 2007 release of CoCreate OneSpace Modeling, you can now create mathematical 2D curves from a functional equation or 3D curves based off of a parametric equation.

Is there a similar command to plot 3D surface from a functional equation?

dszostak
04-12-2007, 06:30 AM
In this 2007 release, there is not a command to to plot a 3D surface from a functional equation - only 2D or 3D curves.