Error in symengine for symbolic integration
이전 댓글 표시
I want to calculate a symbolic integration like below:
syms z
hc=2.5e-9;
hp=1e-9;
e31=-2.2;
z1=z-hc-(hp/2);
z2=z+hc+(hp/2);
B31_1=double(int(e31*(pi/hp)*(sin(pi*z2/hp))*(z^1),'z',-hc-hp,-hc)+int(e31*(pi/hp)*(sin(pi*z1/hp))*(z^1),'z',hc,hc+hp));
But I get this error:
Error using symengine
Out of memory.
Error in sym/int (line 167)
rSym = mupadmex('symobj::intdef',f.s,x.s,a.s,b.s,options);
Note: For z^0 there is no error, but when z has power, this error appears.
What is solution for this? Thanks in advance.
댓글 수: 4
Walter Roberson
2021년 8월 19일
The problem does not occur for me, even when I test in your release (R2020b)
Is it possible that you have a fairly low amount of RAM ?
Wan Ji
2021년 8월 19일
@Walter Roberson I have run it with matlab 2020a, and it reports bug. Perhaps mathworks has fixed this bug. Orz
Walter Roberson
2021년 8월 19일
편집: Walter Roberson
2021년 8월 19일
On my system, in R2020a, it does not even use as much as 1 gigabyte between MATLAB itself and the MuPAD process to do the integration. No hint of a problem at all. MacOS.
vahid s
2021년 8월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Code Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!