sekedar pet crepet

Entries categorized as ‘SAS code’

Gambar Kerucut dan Sadel

October 29, 2008 · 3 Comments

Silakan dicoba

data cone;

do x = -1 to 1 by 0.01;

 do y = -1 to 1 by 0.01;

  z = sqrt(x**2 + y**2);

  if z le 1 then output;

  end;

end;

 

proc g3D data=cone;  plot x*y=z; run;

 

data sadel;

do x = -1 to 1 by 0.1;

 do y = -1 to 1 by 0.1;

  z = sin(x)**2 + cos(y)**2;

  output;

 end;

end;

 

proc g3D data=sadel; plot x*y=z; run;

 

Categories: SAS code
Tagged: , , ,