[Maxima] mapping gcd
Viktor T. Toth
vttoth at vttoth.com
Tue Jun 19 09:34:56 CDT 2007
I think the problem is due to the fact that gcd by itself (not as a function
call) is a symbol that controls simplification (its default value is subres;
try ? gcd for details.) So you would want to prevent gcd from being
evaluated when it is passed as a function name to map, by adding a quote:
(%o1) [1, 3]
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of praimon
Sent: Tuesday, June 19, 2007 10:23 AM
To: Maxima mailing list
Subject: [Maxima] mapping gcd
Hello Maxima list,
I'm still a novice with maxima and having a problem understanding the
This works as I expect:
(%o20) [20, 12]
But not this:
(%o21) [subres(4, 5), subres(12, 3)]
I've tried changing the default from subres, but no luck.
I can work around like so:
(%o22) [1, 3]
but prefer the conciseness (and speed?) of the original form.
I'm sure I'm missing something very obvious.
Thanks for any help.
Maxima mailing list
Maxima at math.utexas.edu
More information about the Maxima