I don't know what you are doing, but in Schelter's xmaxima,
this definition f(x):=abs(x+1);
f(1);
works correctly.
I see no reason to use cabs instead of abs.
Are you translating/ compiling this function somehow?
What are on lines c1-c4 ?
RJF
Daniel Lemire wrote:
> I figured it out!
>
> abs must be replaced by cabs.
>
>
>
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima