separation of variables



On 4/1/12 6:09 AM, nijso beishuizen wrote:
> Dear all,
>
> I have written a function separable(expr,x,y) that checks if expr is 
> separable into f(x) and g(y) and returns [f,g]. The algorithm is based 
> on Cid (2009), webs.uvigo.es/angelcid/Archivos/Papers/IJMEST.pdf.
>
> But the algorithm sometimes introduces an arbitrary constant, such 
> that it returns [A*f(x),g(y)/A].
>
....

You could look at 'content',  however the gcd of floating point numbers 
is officially not defined.
You might have to call content more than once, as it is defined.