How can I increase the precision of a limit to give a number with more digits?
조회 수: 1 (최근 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!