josdejong / josdejong/mathjs

Simplify fraction in derivative

Open
#2,055 3 comments 1 reaction 0 assignees View on GitHub
feature help wanted
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.