Post Reply 
Line integral, jacobian...
02-04-2015, 02:32 PM
Post: #5
RE: Line integral, jacobian...
here my hypothesis for Jacobian Matrix function...
It should works, I hope without errors (please, see if any).

Input: [f(1), f(2), ...], [x,y,...]

Salvo

Code:

#cas
jacob(args):=
// Matrice jacobiana by Salvo MiccichÈ
// input expr vettoriale, vettore variabili
BEGIN
local argv, argc, mat, f, var, fn, j, k,  gr, vd;
argv:=[args];
argc:=size(argv);
IF argc !=2 THEN
return "Input:[f1(x),f1(y),f1(z)...], [x,y,z,...]"; 
ELSE
f:=argv(1);
var:=argv(2);
fn:=size(f);
vd:=size(var);
mat:=makemat(0,fn,vd);
FOR j FROM 1 TO fn DO // gradienti
gr:=grad(f(j),var);
FOR k FROM 1 TO vd DO // elementi
mat[j,k]:=gr(k);
END; // for k
END; // for j
return mat;
END; // if-else

END;
#end

Now, please, help me to have a short program to calculate surface integrals and flux integral (Int(f.n)), thank you Smile

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Line integral, jacobian... - salvomic - 02-02-2015, 08:56 PM
RE: Line integral, jacobian... - Han - 02-02-2015, 10:42 PM
RE: Line integral, jacobian... - salvomic - 02-02-2015, 11:05 PM
RE: Line integral, jacobian... - salvomic - 02-03-2015, 08:55 PM
RE: Line integral, jacobian... - salvomic - 02-04-2015 02:32 PM
RE: Line integral, jacobian... - toshk - 09-07-2016, 09:22 PM
RE: Line integral, jacobian... - salvomic - 09-07-2016, 10:35 PM



User(s) browsing this thread: 1 Guest(s)