List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] problems with subs()
| [MUG] problems with subs() |
|
Author: Charles James Leonardo Quarra Cappiello
Posted: Thu, 21 Nov 2002 20:23:31 -0400
|
>> From: "Charles James Leonardo Quarra Cappiello" "charsquarra"
Hi,
Im having problems with subs(), esentially, its behaviour inside a procedure
is different from direct execution:
lets suppose i have this list:
>L;
[ -1/f(z(w)) , (6*f(z(w))-3*D(f)(z(w))*z(w))/f(z(w))^3 , ...(other items) ]
in normal execution, i can eliminate z(w) with subs in the following way:
>subs( z(w)=u , L[2] );
(6*f(u)-3*D(f)(u)*u)/f(u)^3
then i want to make this a function:
>unapply( % , f , u);
(f,u)->(6*f(u)-3*D(f)(u)*u)/f(u)^3
but inside a proc im doing: (P is a function, ord is an integer)
...
func:=0;
for k from 1 to ord do;
temp:=subs( z(w)=u , L[k] );
temp:=unapply(temp ,f ,u);
func:=unapply( apply(func,t)+apply(temp,P,0)*t^k/k! , t);
end do;
...
the weird thing is that when im executing this procedure, the resulting
function 'func' keeps z(w) terms, why subs isnt working properly inside the
procedure?
Greetings,
Charles Quarra
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|
[View Complete Thread]
Previous by date: [MUG] Re: sorting alphanumeric lists, Maple User Group
Next by date: [MUG] graphing parametric equations in 3d, Han Wesseling
Previous thread: [MUG] ODE with singularity, Jens-Uwe Herrmann
Next thread: [MUG] graphing parametric equations in 3d, Han Wesseling
|