Try,
NUMBERP (exp)
is TRUE if exp is an integer, a rational number, a floating point number
or a bigfloat else FALSE.
but beware of
(%i3) numberp(%pi);
(%o3) false
etc,
Regards
Chris
On Sun, 13 Aug 2006, Wascar Bocangel wrote:
> Hi, I'm a new user to Maxima and I would like to know if there's a function
> which can tell me if an output is a number or an expression. For example, if
> I use the command diff(exp,variable,2); then, I can get either a number, or
> a polynomial expression. I want to know if there's a function that can
> return a true or false in this situation.
>
> Thanks for your time,
>
> --
> Wascar Bocangel
>