Single variable derivative of expression (symbolic)

I wrote HTML code using JavaScript to distinguish one variable. My code is here . I used Mathjax to print the output. But the result is not simplified. For example, the derivative of is sin(x)/cos(x)obtained as

((((cos(x))*(cos(x)))-((sin(x))*(-(sin(x)))))/((cos(x))^2))

which can be simplified to

(sin(x)^2+cos(x)^2)/cos(x)^2

I built an expression tree using the Dijkstra shunt algorithm. And then built a derivative expression tree recursively. But I have a problem with simplification.

Can anyone help with product simplification? My knowledge is not related to elementary data structures.

+4
source share
1 answer

, .

1.

  • :

    cos^2(x)+sin^2(x)=1
    ...
    
  • , ( )
  • ,

2.

3.go

  • .
  • , ( )
  • , ( )
  • ,

4. 3

  • exponentiol
  • ..
+1

All Articles