/usr/lib/scilab-plotlib/macros/parametricDiffDeriv.sci is in scilab-plotlib 0.42-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
|