Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems with maxima.function of one variable

Here is a mwe of my query:

sage: var('F,F1,F2,h')
sage: MF = maxima.function('b','F+F1*b^2+F2*b^3')
sage: k1 = MF(0)
sage: k2 = MF(h*k1)

    Maxima ERROR:
        incorrect syntax: f is not an infix operator
                h F)

sage: F+F1*(h*k1)^2+F2*(h*k1)^3


Now, I had none of this problem when I was using Maxima functions of two variables:

sage: var('c')
sage: MF = maxima.function('a,b','F+F1*b^2+F2*a^2')
sage: k1 = MF(0,0)
sage: k2 = MF(h*c,h*k1)
sage: k2


Can anybody enlighten me why a Maxima function of two variables should work perfectly well, but a Maxima function of one variable produces errors? And how can I work round this?