How can I multiply strings numbers ?

조회 수: 2 (최근 30일)
Nicolas
Nicolas 2013년 11월 23일
댓글: Walter Roberson 2013년 11월 24일
Hi,
I have to calculate huge factorials, and I'm losing precision when my numbers get bigger than the epsilon machine number (around 2^16 in matlab I think). I've been told the only way would be to work with strings but it gets complicated since it's the ASCII codes that are being multiplicated with strings. Any ideas ?
  댓글 수: 2
dpb
dpb 2013년 11월 23일
Look at John D'Errico's extended precision class on FEX...
There just might be a specific tool for large factorials I didn't search, just recalled John's submission...
Walter Roberson
Walter Roberson 2013년 11월 24일
See the Symbolic Toolbox if you have it.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by