Subject: Return a list of numbers used in an expression
From: Harry Kanda
Date: Sat, 16 Jul 2005 14:03:33 +0100
Hi everyone,
I'm trying to write a function that will return a list of the numbers
used in an exp
i.e. a: 3*x^2 + 6*x + 3 + 4*y + 5*y^2 + sin(2*x)
fun(a);
[3,2,6,3,4,5,2,2]
I'm assuming that i'll have to start down with an args breakdown, but
is there a way to say is this a number? as opposed to a var