hello. why neper number in matlab and neper number in wikipedia with address (http://en​.wikipedia​.org/wiki/​E_(mathema​tical_cost​ant)) up to 15 decimal places is the same and than 15 different next? which one is correct?

조회 수: 7 (최근 30일)

채택된 답변

John D'Errico
John D'Errico 2015년 11월 21일
MATLAB uses double precision, so roughly 16 significant digits.
format long g
exp(1)
ans =
2.71828182845905
vpa(exp(sym(1)),100)
ans =
2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427

추가 답변 (0개)

카테고리

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