File: parametricDiffDeriv.sci

package info (click to toggle)
scilab-plotlib 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,196 kB
  • sloc: xml: 3,308; makefile: 15
file content (10 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
function [xu,yu,zu,xv,yv,zv]=parametricDiffDeriv(theSurf,u,v,x,y,z)

h=1e-7;
[xu,yu,zu]=theSurf(u+h,v+%eps);
[xv,yv,zv]=theSurf(u+%eps,v+h);

xu=(xu-x)/h; yu=(yu-y)/h; zu=(zu-z)/h;
xv=(xv-x)/h; yv=(yv-y)/h; zv=(zv-z)/h;

endfunction