필터 지우기
필터 지우기

how can store two power 1000 value in matlab.

조회 수: 1 (최근 30일)
G Jothi
G Jothi 2012년 10월 18일
Sir,
I calculated 2^n values in a array. The data types int64 and n=1000.
After 2^63 the result will be same. How can I store 2^1000 value.
Shall I use floating point. Kindly give the solution for this problem.

답변 (2개)

José-Luis
José-Luis 2012년 10월 18일

Oleg Komarov
Oleg Komarov 2012년 10월 18일
You can with the Symbolic Toolbox:
s = vpa(2^1000,301);
  댓글 수: 1
José-Luis
José-Luis 2012년 10월 18일
I should have said, you can't with int64.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by