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

"Root" isn't differentiated by "D" operator. #230

Open
rasmus-rasmus opened this issue Jan 9, 2025 · 0 comments
Open

"Root" isn't differentiated by "D" operator. #230

rasmus-rasmus opened this issue Jan 9, 2025 · 0 comments

Comments

@rasmus-rasmus
Copy link

Description

The "D" operator on an expression whose first operand is an expression containing a "Root" operator doesn't compute the derivative, when .evaluate()'ed.

Steps to Reproduce

const ce = new ComputeEngine();
const expr = ce.parse('\\sqrt[3]{x}')
const der = ce.box(["D", expr, "x"]).evaluate()

console.log(der.json)

Actual Result

Logs [ 'D', [ 'Root', 'x', 3 ], 'x' ] to the console, i.e., expression is not differentiated.

Expected Result

The derivative of \sqrt[3]{x}, i. e., [ 'Multiply', [ 'Rational', 1, 3 ], [ 'Power', 'x', [ 'Rational', -2, 3 ] ] ],
to be printed.

Environment

I think it is a bug in version 0.26.0, which introduced "Root" as operator (as opposed to taking general roots by reciprocal exponentiation).

Compute Engine version 0.26.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant