フィルターのクリア

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 Center および File ExchangeNumbers and Precision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by