Closed dpholmes closed 2 years ago
Yep, I'm a fool. I learned from this stackexchange that I was using the syntax for changing the independent variable(s). Once I do a second substitution using the syntax: DChange[%, u[t] == xc u[t]]
(where % is assuming you run this code directly after my original DChange
command), MMA gives the expected output.
It's quite likely this is just a syntax/implementation on my side, and so apologies if I'm wasting your time.
I'm trying to do a change of variable in the following equations:
Change of variable:
Code:
DChange[{eq, ic1, ic2}, {u == x/xc, s == t/tc}, {x, t}, {u, s}, x[t]]
Output:
{u''[s]/tc^2 == -((g R^2)/(R + u[s])^2), v0 == u'[0]/tc, u[0]==0}
Expected Output:
{xc u''[s]/tc^2 == -((g R^2)/(R + xc u[s])^2), v0 == xc u'[0]/tc, u[0]==0}
The characteristic value
xc
doesn't appear in any of the equations, and I can't figure out why.