help with symbolic int result
이전 댓글 표시
I ran into a problem, symbolic int results include int, adding a second variable, theta + psi, when using symbolic int.
Attached the "Code" and "Result" below.
Rather than randomly implementing all permutations of "assume()" and "simplify()" would someone please guide me to generating a result with the symsbolic "int" term?
Thank you
Code:
syms theta psi No Lo
N1 = (sym(1)/sym(2))*(No/sym(1))*sign(sin(sym(1)*theta + psi));
assume(theta>0 & theta<2*pi)
assume(theta, "real")
L11 = Lo*int((subs(N1,theta, theta + psi))^2, theta, 0, 2*pi)
simplify(L11, Steps=10)
Result:
(Lo*No^2*int(sign(sin(theta + 2*psi))^2, theta, 0, 2*pi))/4
댓글 수: 4
The result should be No^2*pi/2.
But although I tried to restrict psi and theta to real values, MATLAB was not able to integrate
(subs(N1,theta, theta + psi))^2
CD
2024년 2월 6일
편집: Walter Roberson
2024년 2월 6일
Torsten
2024년 2월 6일
And what is your question ?
CD
2024년 2월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



