HI Folks,
I have an expression such as
foo := t0 A + t2 B + t13 C;
and I like to easily replace each of the t* scalars with 1. So my target result is
foo := A + B + C;
Using something like
substitute (foo, $t? -> 1$)
fails because it replaces all objects with 1, not just the scalars. Is there a simple way to do this properly for any expression like the above, no matter how many terms?
Cheers,
Leo