How big is the polynomial that sym2poly can hold?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How big is the polynomial that sym2poly can hold?
For example, I have this y=sym2poly(sym('x^1000'))
and it's ok. But if I increase the number to x^10000000000, Matlab crashes. How can I avoid this?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Jun. 2011
Use 64 bit MATLAB on a system that has at least 80 gigabytes of memory.
Suppose that the sym2poly worked, then the vector returned would have to have 10000000001 elements, each a double precision number. That would be 80000000008 bytes, which is about 75 gigabytes.
The limitation you are encountering isn't sym2poly itself: the limitation is the amount of memory you have.
0 Kommentare
Weitere Antworten (1)
Sean de Wolski
am 28 Jun. 2011
2.8823e+17
6 Kommentare
Walter Roberson
am 28 Jun. 2011
Did I say "up to 64 bytes" ? I meant "up to 2^64 bytes".
Maybe some day we'll get to edit comments...
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!