Substitution question



matchdeclare(any, true)$
defrule(r1,erf(any), acerf(any,order))$
order:2$

apply1(expression, r1);

or some variation of that

RJF


Dan Stanger wrote:
> I have the following function call in a more complicated expression:
> erf((((64800 * %i + 64800) * t + 37 * %i + 35)/72))
> 
> I have another function acref, which takes 2 arguments, the first is the
> 
> argument of the error function and the second is a approximation order.
> I want to substitute the call to acerf in place of erf in my more
> complicated
> expression, for example:
> acerf((((64800 * %i + 64800) * t + 37 * %i + 35)/72), 2)
> Is there a easy way to do this in maxima?
> Thanks,
> Dan Stanger
> 
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima