josdejong/mathjs

Simplify fraction in derivative

オープン

#2,055 opened on 2020/12/11

 (3 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (1,314 件のフォーク)batch import
featurehelp wanted

Repository metrics

Stars
 (15,065 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド