PROGRAMMING HELP NEEDED


[Prev][Next][Index][Thread]

PROGRAMMING HELP NEEDED



Hello!
I was trying to write a program to calculate curve-integrals (are they
called like this? I don't know the exact english term...)
Anyway, it looks like this:
curve(s,w,a,b)
what I should do is to substitute the terms that are in the matrix w
(i.e. [cos(t),sin(t),t]) in the corrispondent terms in f.
Example: if f is f=x*y^2+z, after the substitution it should be:
cos(t)*sin(t)^2+t.
But in a program I can't define a function with the input, i.e.:
Define f(x,y,z)=s.
Here is the whole program:

curve(s,w,a,b)
Prgm
define f(x,y,z)=s
d(w,t)->g
norm(g)->ds
disp integral(f(w[1,1],w[1,2],w[1,3])*ds,t,a,b)
EndPrgm


Cheers

Marco