Displaying a more precise answer when using diff()
显示 更早的评论
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!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!