[ww-bugs] Bug 3545: reduction rule: ln(e) = 1

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Mon Dec 7 02:27:40 EST 2015


http://bugs.webwork.maa.org/show_bug.cgi?id=3545





--- Comment #3 from Benjamin Walter <benjamin at metu.edu.tr>  2015-12-07 02:27:40 ---
Oh.  I was hoping there was a way to just manually add my own exciting
reduction rule by modifying Context() directly... that seemed easier than
changing the reduce method for MathObjects in pg.

----------------

It appears that ln(e) should be getting reduced by line 53 of 
  Parser/Number.pm

 53     $self->{op}{isOne} = 1 if
$self->Package("Real")->make($context,$self->{op}{value}) eq 1;

... so maybe this another face of the bug "Complicated expressions not getting
reduced correctly"...  or maybe it is trying to reduce ln(e) as a formula
instead of a number?

-----------------

I'm seeing this in the following setting:
|
|  $Y = expression with exponentials (random solution to differential equation)
|  I want to plug into DE to get the forcing function with solution Y.
|  But   $Y->D('t')  and  $Y->D('t','t')   have derivatives of exponentials,
|  which inserts many ln(e) terms that don't reduce
|
.... maybe this is too much to hope for in this case, since webwork reduce also
doesn't add coefficients of similar terms.

-- 
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the webwork-bugs mailing list