Error, (in expand/bigprod) integer too large in context ?
조회 수: 6 (최근 30일)
이전 댓글 표시
When i test the symbolic math toolbox, get an error as follows
Error, (in expand/bigprod) integer too large in context
when try to compute the rank of a large matrix (100 by 100), does that mean the out of memory or something else?
댓글 수: 0
답변 (1개)
Christopher Creutzig
2014년 9월 1일
편집: Christopher Creutzig
2014년 9월 1일
This error means the computation is trying to compute something like integer^integer with an exponent larger than 2^32. The resulting integer would take up several Gigabytes of memory and take a long time to compute – and be pretty much useless for virtually all applications. So the symbolic engine flat out refuses to start computing it.
>> sym(23)^(2^42)
Error using symengine (line 58)
The integer is too large in context.
You could try calling rank(vpa(A)) instead of rank(A). But it's quite likely your input would then cause intermediate results to be (rounded to) infinity or 0.0, making the result useless.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!