+ 3

Derivative calculator

I created this code, do you see any special case I should cover? I'm aware this leaves 0 on the result, I'm going to fix it soon. Thanks for your feedback :) https://code.sololearn.com/c4jyoxYk6c86/?ref=app

1st Sep 2017, 2:37 PM
Goio
3 Réponses
+ 6
Nice code.. But it is a little wrong . When I write 12x^2 + 13x + 10 It gives the output :- 12x + 13 + 0 but it should be like 24x + 13 + 0
1st Sep 2017, 2:56 PM
RZK 022
RZK 022 - avatar
+ 4
Nice now it works well.
2nd Sep 2017, 4:32 AM
RZK 022
RZK 022 - avatar
+ 3
@Atijrant Negi {Gamma} Thank you! I forgot to multiply by the exponent if it wasn't bigger than 2. It should work fine now!
1st Sep 2017, 3:17 PM
Goio