One solution is to map the expression into
polynomial expressions with variable 'a' and
'r' over the floating point numbers

sage: a,r = SR.var('a,r');
sage: expr = ((sqrt(2)*a-2*r)/(2+2*sqrt(2)))
sage: RDF['a,r'](expr)
0.2928932188134525*a - 0.4142135623730951*r

(this is not very robust as it would fail for something
like cos(sqrt(2) + r))

Vincent

Le 28/07/2020 à 11:24, Bert Henry a écrit :


Am Dienstag, 28. Juli 2020 11:13:49 UTC+2 schrieb JJS137:

Have you tried canonicalize_radical() ?
Cheers,
John


Yes, but it doesn't solve the problem


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/30d1f609-279f-4e76-8115-7959f381e536%40gmail.com.

Reply via email to