You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: