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

Incorrect evaiuation of of ∂x(f(x+1)) and ∫x(f(x+1)) #1386

Open
c3d opened this issue Dec 10, 2024 · 2 comments
Open

Incorrect evaiuation of of ∂x(f(x+1)) and ∫x(f(x+1)) #1386

c3d opened this issue Dec 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@c3d
Copy link
Owner

c3d commented Dec 10, 2024

With f′ defined as '∂x(f(x))', we end up with x on the stack above the expression. This is not true for just an expression.

@c3d c3d added the bug Something isn't working label Dec 10, 2024
@c3d
Copy link
Owner Author

c3d commented Dec 10, 2024

Same problem with the primitive command

@c3d c3d changed the title The derivative function may leave additional stuff on the stack Incorrect evaiuation of of ∂x(f(x+1)) and ∫x(f(x+1)) Dec 10, 2024
@c3d
Copy link
Owner Author

c3d commented Dec 10, 2024

If we have f defined as 'x^2+sin(x)', then '∂x(f(x))' evaluates as '2*x+COS x' (which is correct) but then leaves x on the stack.

If we evaluate ∂'x(f(2*x+1)), then the stack contains '2*x+COS x' at level 1 and '2*x+1' at level 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant