> 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
>
That's strange because abs never worked for me. Never. Even back before
I compiled my own version from CVS. According to "describe", there is no
such thing as "abs".
[lemire@romeo RPMs]$ maxima
GCL (GNU Common Lisp) Version(2.5.0) sam fév 16 13:47:51 EST 2002
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter
Maxima 5.6 jeu jan 31 23:03:13 EST 2002 (with enhancements by W. Schelter).
Licensed under the GNU Public License (see file COPYING)
(C1) abs(-1);
Error: (MMINUS) is invalid as a function.
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by MACSYMA-TOP-LEVEL.
Broken at LIST. Type :H for Help.
MAXIMA>>:q
(C2) describe(abs);
0: ABSBOXCHAR :(maxima.info)Definitions for Input and Output.
1: CABS :Definitions for Operators.
2: INTPOLABS :Definitions for Numerical.
3: LOGABS :Definitions for Logarithms.
4: ROMBERGABS :Definitions for Integration.
Enter n, all, none, or multiple choices eg 1 3 :