Operator search and replace



I think subst will be perfect.  I will test it here in a bit.

Ryan

On 1/9/06, Robert Dodier <robert.dodier at gmail.com> wrote:
> Hello Ryan,
>
> > So, I need to take the output of my maxima script and run a search and
> > replace on the expression to change all sinh to zsinh and cosh to
> > zcosh before I call the fortran function.
>
> Is subst (zsinh, sinh, expr) enough?
> (Likewise subst (zcosh, cosh, expr).)
>
> e.g.
> expr : F(sinh(x) + exp(sinh(y)));
> subst (zsinh, sinh, expr);  => F(zsinh(x) + exp(zsinh(y)))
>
> Maybe I'm misunderstanding what you want to accomplish.
>
> Hope this helps,
> Robert Dodier
>