Displaying a more precise answer when using diff()
Show older comments
Hi guys, I'm doing this in MATLAB
syms x
f = (cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(cos(x)))))))))))))))));
c = sym('1');
diff(c)
And it gives me ans = 0. But I know the answer is not 0. How can I get a more exact answer? Specifically the answer to this derivative is 0.00178818.
Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!