How to solve a simple symbolic identity?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have the following identity.

The solution is
.
I wrote the following code.
syms w0 a b t m F0;
eqn = 2*b*w0*cos(w0*t) - 2*a*w0*sin(w0*t) == (F0*cos(w0*t))/m;
sol = solve(eqn, [a b])
The sol is not what I want to get.
Could you tell me how to get the correct a and b, i.e.,
?
댓글 수: 0
채택된 답변
추가 답변 (1개)
VBBV
2023년 5월 30일
syms w0 a b t m F0
eqn = 2*b*w0*cos(w0*t) - 2*a*w0*sin(w0*t) == (F0*cos(w0*t))/m;
sol = solve(eqn, [b])
b = subs(sol,t,0)
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
