josdejong/mathjs

Simplify fraction in derivative

Open

#2,055 建立於 2020年12月11日

在 GitHub 查看
 (3 留言) (1 反應) (0 負責人)JavaScript (1,298 fork)batch import
featurehelp wanted

倉庫指標

Star
 (13,832 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello,

The work done here is really great. May be you can help me with two issues.

math.derivative('sqrt(6x)','x').toTex() // "\\frac{6}{2\\cdot\\sqrt{6~ x}}"

How can I have "\frac{3}{\sqrt{6x}}" ?

math.simplify('4x^2+-2x+-6').toTex() // "4~{ x}^{2}-2\\cdot x+-6"

How can I have "4x^2-2x-6" ?

Sometime polynoms are not properly ordered. math.simplify('4x^2+2x-6').toTex() // 4~{ x}^{2}-6+2~ x"

Thanks

貢獻者指南