[Maxima] transforming a number to a list
fateman at cs.berkeley.edu
Sun Jun 7 16:48:06 CDT 2009
> Gosse michel a écrit :
>> How can i transform a number to list of its digits :
>> For instance, 345 -> [3,4,5]
> Hello Michel
> maybe this is what you want :
> (%i1) f(x):=charlist(string(x));
These are characters, not numbers. "3"+"4" does not simplify to "7".
My guess is that is not what the original poster wanted.
More information about the Maxima