Transformation rules with derivatives
kubaPod opened this issue · 1 comments
kubaPod commented
Here is an example that DChange can't handle very well currently:
DChange[
0 == r'[t]^2 + r[t]^2 u'[t]^2 - 2 \[Kappa]^2/r[t] - h
, {r'[t] == R'[u] u'[t], r[t] == R[u], u'[t] == c/R[u]^2}
]
One way I can think out to fix this is to use //.
i.e.
DChange[expr_, functions : {(_[___] == _) ..}
] := expr //. Replace[functions, (f_[vars__] == body_) :> (f -> Function[{vars}, body]), {1}]
– xzczd Mar 7 '16 at 13:02