Added differentiation rule for mod2pi#89
Added differentiation rule for mod2pi#89papamarkou wants to merge 1 commit intoJuliaMath:masterfrom papamarkou:master
Conversation
|
This one seems subtle since this function only leaves x unchanged if you already accept the relevant equivalence classes. Probably still right, but I'd be interested to know if we're ok with this producing the "wrong" answer if you don't embrace the appropriate equivalence relation. |
|
Good point. Is the name of the function (mod2pi) a sufficient logical guard against picking an inappropriate equiv relation? |
|
That's ok with me. I'm mostly interested in how we think about testing these things. For example, if you used finite differencing to compare the results of symbolic differentiation, I think you'd get very strange disagreements for points that cross the Would be interested to know what @simonbyrne thinks. |
|
Is there a way that when you load the Calculus package, it could append If not, then I'd think a comment in the code and a mention in the package Thanks, On Wed, Mar 30, 2016 at 12:03 PM, John Myles White <notifications@github.com
Eric Ford |
|
Would it be reasonable to simply update the docstrings, as Eric suggested, and otherwise add the |
See JuliaDiff/ForwardDiff.jl#113, cc @jrevels, @mlubin, @eford.