Question: Problem with subs command

Hello,

 

I am unable to use subs() command when using subscript : I'd like to replace YP__1 with dGx in the equation :

"Eq:= YP__1 = Y__2" (Eq:= YP1=Y2)

 

 so I have tried : subs({YP__1=dGx},Eq)

 

But it doesn't work... It give me : YP__1 = Y__2 and I would like to have dGx = Y__2

 

I have tried also with subs({YP[1]=dGx},Eq) but doesn't work too.

 

If I am not using subscript, for exemple : Eq:= YP1 = Y2

 

And do : subs({YP1=dGx},Eq)

 

That works great...

 

But I must use subscript __ because Eq is a result from ODEtools (convertsys).

 

Can you help me please ?

 

Thanks you very much.

 

Regards.

Please Wait...