Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Alternative to syms for Matlab Compiler

조회 수: 1 (최근 30일)
Simone Pavan
Simone Pavan 2020년 3월 26일
마감: John D'Errico 2020년 3월 27일
I'm creating an application using App Designer which involves the use of syms to solve an implicit equation.
Unfortunatelly in Standalone or Web applications created with Compiler syms can't be used. Do you know an alternative to solve the following equation without using the symbolic math toolbox? Or any other solution to bypass this problem?
syms R
g = ((1+nu)*(1-2*nu)*(1-1/(R/b0)^2))/((alpha-1)-(1-2*nu)*(1+alpha)/(R/b0)^2);
omega = -(2*(1-2*nu)*(1-nu^2))/(delta*(alpha-1))*((alpha+1/beta)-(nu/(1-nu))*(1+alpha/beta))/((alpha-1)-((1-2*nu)*(1+alpha)/(R/b0)^2))/(R/b0)^2;
S1 = 0;
for n=0:1:10
if n==gam
S = k*omega^n/factorial(n)*log(R/a);
else
S = (omega^n/(factorial(n)*(n-gam))*((R/a)^(k*(n-gam))-1));
end
S1=S1+S;
end
eqn = (nn/gam)*((1-g/delta)^((beta+1)/beta)-(a0/R)^((beta+1)/beta)) == S1;
sol_R = vpasolve(eqn, R, [a0 Rpl_max]);
Thank you for your answers.
  댓글 수: 2
John D'Errico
John D'Errico 2020년 3월 26일
Write your own solver. Of course, with all of those factorials and exponents in there, be sure you know what you are doing.
Simone Pavan
Simone Pavan 2020년 3월 27일
Could you do that? I don't really know where to start.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by