Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

To what power can Matlab compute to?

조회 수: 1 (최근 30일)
George Carlisle
George Carlisle 2015년 10월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
To what level can Matlab compute? I tried to do a permutation calculation and it only went to 9 digits before erroring. Also, are there limits in the education edition vs. the regular one?
  댓글 수: 4
Muthu Annamalai
Muthu Annamalai 2015년 10월 2일
You will get results upto double precision.
Steven Lord
Steven Lord 2015년 10월 2일
So to compute all permutations of a 20 element vector would require a matrix with this many rows and 20 columns:
>> nrows = factorial(20)
nrows =
2.4329e+18
How much memory would this matrix require, assuming 2 bytes per element?
>> ncols = 20;
>> bytes = 2*nrows*ncols;
>> exabytes = bytes/(1000^6)
exabytes =
97.3161
According to Wikipedia that's roughly between 50000 and 300000 Libraries of Congress worth of data. So how long would it take you to process all those rows at one row per second?
>> processingOnePermutationPerSecond = years(seconds(nrows))
processingOnePermutationPerSecond =
77095595549.806
That's 77 billion years. Earth is around 4.5 billion years old. You might want to rethink your approach to the problem that requires all those permutations.

답변 (1개)

Sean de Wolski
Sean de Wolski 2015년 10월 2일
What do you need? With Symbolic Math Toolbox, included in Student version, you can symbolically work on very large numbers.
x = sym('pi')
y = x.^234
vpa(y,100000)

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by