On Tue, 26 May 2009 14:45:54 -0700 (PDT)
Alden <[email protected]> wrote:
>
> When I run:
> var('t')
> sqrt(t^2*(1+t^2)).simplify_radical()
>
> I get the correct:
> sqrt(t^2 + 1)*abs(t)
>
> But if I run:
> sqrt(t^2 + t^4).simplify_radical()
>
> I get:
> t*sqrt(t^2 + 1)
>
> Am I doing something wrong? thanks!
Sage uses maxima's radcan command for simplify_radical(). The problem
you describe above is present in the last version of maxima as well:
Maxima 5.18.1 http://maxima.sourceforge.net
Using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (aka GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) radcan( sqrt(t^2) );
(%o1) abs(t)
(%i2) radcan( sqrt(t^2*(1+t^2)) );
2
(%o2) sqrt(t + 1) abs(t)
(%i3) radcan( sqrt(t^4+t^2) );
2
(%o3) t sqrt(t + 1)
There is an entry about this in the Maxima bug tracker here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1990595&group_id=4933&atid=104933
Where a developer says that this is not a bug, though I don't see their
reasoning.
Cheers,
Burcin
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---