josdejong/mathjs

Nested derivatives fail

开放

#3,528 创建于 2025年9月8日

 (3 条评论) (0 个反应) (0 位负责人)JavaScript (1,314 个派生)batch import
bughelp wanted

仓库指标

星标
 (15,065 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug mathJs evaluates this derivative correctly: derivative('x * e^x', "x") // returns "e ^ x * (x + 1)"

however, if the expression to be differentiated is involves another derivative mathJs returns an incorrect answer: derivative('x * derivative("e^x", "x")', "x") // returns "e^x"

To Reproduce enter expression in mathJs demo window: derivative('x * derivative("e^x", "x")', "x")

贡献者指南