Re: [sympy] f`(0)

2019-06-04 Thread Aaron Meurer
This is primarily an issue of printing. The str() printer prints things in a way that can be copy-pasted back into SymPy, and since f'(0) isn't valid syntax, you end up with the more verbose representation that is used for the expression. It would be useful to have printers, at least pretty

Re: [sympy] f`(0)

2019-06-04 Thread Oscar Benjamin
Yeah, it would be nice to be able to do that. Unfortunately SymPy has no notion of the derivative of an unapplied function. I'd like to have a differential operator so you could do something like `D(sin) == cos` etc. I believe there are some long-standing issues on Github about this. -- Oscar On

[sympy] f`(0)

2019-06-04 Thread David Bailey
The ability to expand an expression containing unknown functions, about some point, is obviously very valuable, and it is nice that this is possible using SymPy, however if I expand f(x) about 0 I get this: f(0) + x*Subs(Derivative(f(_x), _x), _x, 0) + x**2*Subs(Derivative(f(_x), (_x, 2)), _x,