필터 지우기
필터 지우기

How many exact decimals can offer Matlab?

조회 수: 2 (최근 30일)
Popescu Daniela
Popescu Daniela 2012년 4월 2일
Hi, everybody. I would like to know how many exact decimals can offer Matlab. I did a program to calculate Viete sums and run it and I can see only 4 exact decimals in the answers. Thats all matlab can offer or there is a setting where I can change precision? Thank you, Daniela

채택된 답변

the cyclist
the cyclist 2012년 4월 2일
If you type
>> format long
you will see about 15 digits of precision. By default, MATLAB does numerical calculations on double-precision floating point numbers, but uses the "short" display format. You can read a bit more with
>> doc format
There is a lot more that can be said, but maybe that's enough for you to know to start?

추가 답변 (1개)

Jonathan Sullivan
Jonathan Sullivan 2012년 4월 2일
Change the display format.
Try:
format long
X % Your variable

카테고리

Help CenterFile Exchange에서 Elementary Math에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by