Ticket #8497 (new defect)
bug in simplify_radical
| Reported by: | zimmerma | Owned by: | burcin |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.3 |
| Component: | calculus | Keywords: | simplify, radical, sqrt |
| Cc: | Author(s): | ||
| Report Upstream: | N/A | Reviewer(s): | |
| Merged in: | Work issues: |
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
Change History
Note: See
TracTickets for help on using
tickets.
