Skip to content

Conversation

@ivarne
Copy link
Collaborator

@ivarne ivarne commented Jun 29, 2013

Differentiation of a fraction is wrong if the numerator or denominator independent of the variable differentiated with respect to.
It looks like somebody forgot to divide by (denominator)^2 for the special cases where one of the derivatives is 0

Differentiation of a fraction is wrong if the numerator or denominator independent of the variable differentiated with respect to.
It looks like somebody forgot to divide by (denominator)^2 for the special cases where one of the derivatives is 0
@johnmyleswhite
Copy link
Collaborator

Awesome work. Could you add a few tests for this so that it won't break in the future?

@ivarne
Copy link
Collaborator Author

ivarne commented Jun 29, 2013

Then there is at least a 3 tests for the tree possible code paths in The Quotient Rule differentiation. They are harder to write than they should be because the isequal() function matches exact expressions without canonicalisation. A more relaxed matching that at least accept commutative functions (*, +), might be useful, but would of course introduce another layer of complexity that has to be tested at the same time.

@ivarne
Copy link
Collaborator Author

ivarne commented Jul 23, 2013

Anything holding you back from merging this pull request?

johnmyleswhite added a commit that referenced this pull request Jul 24, 2013
Error in The Quotient Rule
@johnmyleswhite johnmyleswhite merged commit 425374a into JuliaMath:master Jul 24, 2013
@johnmyleswhite
Copy link
Collaborator

Nope, this looks good. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants