Working with really huge numbers in MATLAB?

I need to manipulate numbers with a bit length of nearly 192 bits. It also involves exponentiation to said bit length. How do I manage this in MATLAB?

댓글 수: 2

John D'Errico
John D'Errico 2011년 1월 31일
You can use my VPI tool, as long as the numbers are integer. It can handle exponentiation, in fact, I even included an overloaded exp there, giving you only the integer part of the result of course. I've been playing with a variable precision decimal form too, but it is at least a few weeks away from done.
Sarla
Sarla 2011년 2월 11일
yes thank you. i have downloaded the vpi tool and am using it. it works wonderfully well. thank you once again!

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

 채택된 답변

Walter Roberson
Walter Roberson 2011년 1월 31일

0 개 추천

You either need to use the Symbolic Mathematics Toolkit, or the Matlab File Exchange contribution for Variable Precision Integers
Large numbers (up to 65535 bits) can also be used with the Fixed Point Toolkit, but that toolkit does not handle exponentiation.

추가 답변 (1개)

Andrew Newell
Andrew Newell 2011년 1월 31일

0 개 추천

Convert your numbers to variable precision arithmetic using vpa.

Community Treasure Hunt

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

Start Hunting!

Translated by