Can Anyone solvE or program to differention (mathematics term) problem solved using Any language ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Can Anyone solvE or program to differention (mathematics term) problem solved using Any language ?

for e.g- f(x)=x^3-x^2+x; (df/dx)=3x^2-2x+1; differentiation with respect to x. .

27th May 2018, 5:45 PM
Aman Kumar Pandit
Aman Kumar Pandit - avatar
2 Answers
+ 4
d(x^n)/dx = nx^(n-1) Following this rule if f(x) = x^3 - x^2 + x we get: d(f(x))/dx = 3x^2 - 2x + 1 Edit: code pending (although its really easy to code)
28th May 2018, 6:11 AM
Haris
Haris - avatar
+ 4
Math library for js: (scroll down to examples 5th line has derivative of an expression similar to yours) http://mathjs.org
28th May 2018, 6:22 AM
Haris
Haris - avatar