[Maxima] Keyword arguments?

Stavros Macrakis macrakis at alum.mit.edu
Tue Jan 8 13:46:07 CST 2008


On Jan 8, 2008 2:30 PM, James Amundson <amundson at users.sourceforge.net>
wrote:

> > Something like
> > quad_qags(f,x,a,b, epsrel=1d-8, epsabs=1d-8, limit=500)
>
> I think that's a great idea. I've wanted that for a long time. It seems
> to me that
>
> quad_qags(f,x,a,b, epsrel:1d-8, epsabs:1d-8, limit:500)
>
> (i.e., using ':' for assignment instead of '=') would be more
> consistent with the rest of the Maxima syntax.
>

Unless the function quotes its arguments (which is almost always a bad
idea), this won't work, because the ":" operator will be executed during
argument evaluation, so quad_qags will see the arguments as

               [ f, x, a, b, 1d-8, 1d-8, 500 ]

that is, the keywords will be gone.

          -s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.math.utexas.edu/pipermail/maxima/attachments/20080108/10ce7f62/attachment.htm 


More information about the Maxima mailing list