[sympy] derivatives of Max() and Min() using Heaviside() (#1707)

36 views
Skip to first unread message

zanzibar7

unread,
Dec 31, 2012, 3:38:32 PM12/31/12
to sympy/sympy

modified: sympy/functions/elementary/miscellaneous.py
modified: sympy/functions/elementary/tests/test_miscellaneous.py

  • added fdiff for Min() and Max()
  • added diff Min() and Max()
  • implement simple tests of Max().diff and Min().diff

You can merge this Pull Request by running:

  git pull https://github.com/zanzibar7/sympy Max_and_Min_Derivatives

Or view, comment on, or merge it at:

  https://github.com/sympy/sympy/pull/1707

Commit Summary

  • derivatives of Max() and Min() using Heaviside()

File Changes

  • M sympy/functions/elementary/miscellaneous.py (42)
  • M sympy/functions/elementary/tests/test_miscellaneous.py (12)

Patch Links


Reply to this email directly or view it on GitHub.

Aaron Meurer

unread,
Jan 1, 2013, 9:31:22 AM1/1/13
to sympy/sympy

SymPy Bot Summary: :red_circle: Failed after merging zanzibar7/Max_and_Min_Derivatives (19dcf8b) into master (c3e9d56).
@zanzibar7: Please fix the test failures.
:eight_spoked_asterisk:Python 2.5.0-final-0: pass
:eight_spoked_asterisk:Python 2.6.6-final-0: pass
:red_circle:Python 2.7.2-final-0: fail
:eight_spoked_asterisk:Python 2.6.8-final-0: pass
:eight_spoked_asterisk:Python 2.7.3-final-0: pass
:eight_spoked_asterisk:PyPy 2.0.0-beta-1; 2.7.3-final-42: pass
:eight_spoked_asterisk:Python 3.2.2-final-0: pass
:eight_spoked_asterisk:Python 3.3.0-final-0: pass
:eight_spoked_asterisk:Python 3.2.3-final-0: pass
:eight_spoked_asterisk:Python 3.3.0-final-0: pass
:eight_spoked_asterisk:Python 3.3.0-final-0: pass
:eight_spoked_asterisk:**Sphinx 1.1.3:** pass

zanzibar7

unread,
Jan 1, 2013, 4:45:28 PM1/1/13
to sympy/sympy

The fail for Python 2.7.2-final-0 looks like some kind of issue with the imports I added. The error message is cryptic, looks like plotting libraries which shouldn't be effected by the code changes I made.

I don't have the tools for replicating this test-failure locally. Help or suggestions?

Aaron Meurer

unread,
Jan 1, 2013, 5:16:58 PM1/1/13
to sympy/sympy

That's a pyglet bug. You can ignore it.

Reply all
Reply to author
Forward
0 new messages