Error using / Invalid operands

조회 수: 6 (최근 30일)
Damián Bombara
Damián Bombara 2022년 2월 22일
답변: Damián Bombara 2022년 2월 22일
Problem:
I'd like to calculate a limit, but for some reason I can't use the '/' operand. Can somebody explain why?
Error message:
Error using / (line 485)
Invalid operands.
Code:
syms s;
limit(s/(((2*eulergamma^(-23*s)/a)*1.07 + 0.0114/s + 25.3045*s))*1/s, s, 0)
  댓글 수: 6
Ive J
Ive J 2022년 2월 22일
I can't replicate the error:
syms s;
GRS = (50609*s)/2000 + 57/(5000*s) + 107/100;
GS = (2/eulergamma^(23*s))/((93*s)/2 + 1)^2;
limit((s.*1./s)./(1 + GS*GRS), s, 0)
ans = 
0
BTW, you should note that there is a huge difference between * and .* in MATLAB
Damián Bombara
Damián Bombara 2022년 2월 22일
That's weird, now it's working. I didn't change anything but it works.
Well, thank you very much for your help, I really appreciate it!

댓글을 달려면 로그인하십시오.

채택된 답변

Damián Bombara
Damián Bombara 2022년 2월 22일
@Ive J solved it in the comments.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by