How can I increase the precision of a limit to give a number with more digits?
2 次查看(过去 30 天)
显示 更早的评论
Hi, I have the following:
C= 1/a
f = (C - (exp(-2x)).*(C - ((h)./2) + (g.*x))
limit(f,var,a)=W
double(W)
However double does not work. I would like to have more digits in the picture, as g has pi in it. How can that be done?
Thanks
0 个评论
采纳的回答
KL
2017-12-8
if you want to display it on the command line, use
format long
if you want to write to a file, use fprintf
fprintf('%4.12f',pi)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PHY Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!