How can I increase the precision of a limit to give a number with more digits?

1 回表示 (過去 30 日間)
Sergio Manzetti
Sergio Manzetti 2017 年 12 月 8 日
編集済み: Stephen23 2017 年 12 月 8 日
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

採用された回答

KL
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 件)

カテゴリ

Help Center および File ExchangePHY Components についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by