-
-
Notifications
You must be signed in to change notification settings - Fork 663
Closed
Description
the documentation of simplify_radical
says:
sage: x.simplify_radical?
...
Simplifies this symbolic expression, which can contain logs,
exponentials, and radicals, by converting it into a form which is
canonical over a large class of expressions and a given ordering of
variables
however if indeed it is able to recognize zero:
sage: a=1/(sqrt(5)+sqrt(2))-(sqrt(5)-sqrt(2))/3
sage: a.simplify_radical()
0
it does not return a canonical expression:
sage: a1=1/(sqrt(5)+sqrt(2))
sage: a2=(sqrt(5)-sqrt(2))/3
sage: a1.simplify_radical()
1/(sqrt(2) + sqrt(5))
sage: a2.simplify_radical()
-1/3*sqrt(2) + 1/3*sqrt(5)
sage: (a1-a2).simplify_radical()
0
Apply only attachment: 8497_fix_doc.patch
CC: @kcrisman @burcin @jasongrout @mwhansen
Component: calculus
Keywords: simplify, radical, sqrt
Author: Paul Zimmermann, Jeroen Demeyer
Reviewer: Burcin Erocal
Merged: sage-4.7.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/8497