What function does the following code perform?

조회 수: 2 (최근 30일)
Ishaan
Ishaan 2014년 3월 11일
답변: Niklas Nylén 2014년 3월 11일
tol=[1.d-8,1.d-8];

답변 (1개)

Niklas Nylén
Niklas Nylén 2014년 3월 11일
The d can apparently be used instead of e for exponent number formats, i.e. the following are equal:
1d-8
1e-8
10^-8
The dot after the ones are just decimal points which are not followed by any decimals.
So, the answer to your question is that the code creates the matrix
tol = [0.00000001 0.00000001]

카테고리

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