How can I multiply strings numbers ?

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 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

質問済み:

2013 年 11 月 23 日

コメント済み:

2013 年 11 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by