Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return (d/dn)f with f(n,x).diff(n) instead of runtime error #21655

Open
rwst opened this issue Oct 6, 2016 · 3 comments
Open

Return (d/dn)f with f(n,x).diff(n) instead of runtime error #21655

rwst opened this issue Oct 6, 2016 · 3 comments

Comments

@rwst
Copy link
Contributor

rwst commented Oct 6, 2016

Expected behaviour:

sage: hermite(n,x).diff(n)
diff(hermite(n, x), n)

for all cases where we throw runtime or not implemented errors at the moment. This concerns mostly orthogonal poly functions. The aim is a better workflow for the user, with no interrupts.

Component: symbolics

Issue created by migration from https://trac.sagemath.org/ticket/21655

@rwst rwst added this to the sage-7.4 milestone Oct 6, 2016
@sagetrac-mafra
Copy link
Mannequin

sagetrac-mafra mannequin commented Oct 8, 2016

comment:1

Do you have an idea about what needs to be done in case someone decides to work on this? Ie, some tips about how to start?

@rwst
Copy link
Contributor Author

rwst commented Oct 9, 2016

comment:2

The runtime errors are partly thrown in Pynac, they should return fderivative instead like is done with anonymous functions:

sage: f=function('f')(x)
sage: diff(f,x)
diff(f(x), x)
sage: _._dbgprinttree()
fderivative f @0x3dc6b00, hash=0x1023d72de5409a, flags=0xb, nops=1, params=0
    x (symbol) @0x3049d20, serial=5, hash=0xf0a9622e, flags=0xf, domain=0, iflags=0000000000000000
    =====

The others are errors thrown in Python. I'm not sure which will be simple to change.

@rwst
Copy link
Contributor Author

rwst commented Mar 25, 2018

comment:3

May depend on #24861.

@mkoeppe mkoeppe removed this from the sage-7.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants