>> From: Nestor
Dear MUG users:
I am updating a Maple (2 or 3) code to 6. I found that the command
add() changed and I am having difficulty to keep vectors expressed
in 3 components. I made the following example to show the problem
that I am having. My question is: is there a procedure to keep vectors
in vector form after operations (+, *, etc)? Any sugestion on an
efficient way to upgrade this code?
alias(a=a(t)):
> v2:=vector(3,[a,b,c]);
v2 := [a, b, c]
> d_v2:=map(diff,v2,t);
[d ]
d_v2 := [-- a, 0, 0]
[dt ]
> v3:=vector(3,[d,e,f]);
v3 := [d, e, f]
> vt:=expand(eval([d_v2,+v3],2));
[d ]
vt := [[-- a, 0, 0], [d, e, f]]
[dt ]
>d_vt:=map(diff,vt,t);
Error, please use map to differentiate tables/arrays
vt is not identify as a vector!
--------------------------------------------------------------
Nestor Sanchez office (210) 458-5528
Mechanical Engineering home (210) 493-2885
The University of Texas at San Antonio FAX (210) 458-5589
6900 North Loop 1604 West
San Antonio, TX 78249
|