#7334: Sage cannot simplify sums of logarithms
------------------------+---------------------------------------------------
Reporter: whuss | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.2.1
Component: calculus | Keywords: logarithm
Work_issues: | Author: whuss
Reviewer: | Merged:
------------------------+---------------------------------------------------
Currently there is no direct way in Sage to apply the transformation:
{{{
log(x) + log(y) -> log(x*y)
}}}
The attached patch fixes this by inserting a call to logcontract()
in the definition of simplify_radical.
Now the following works:
{{{
sage: f = log(sqrt(2) - 1) + log(sqrt(2) + 1)
sage: f.simplify_full()
0
}}}
But I'm not sure if this is the right place for this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7334>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---