How to solve a simple symbolic identity?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Más respuestas (1)
VBBV
el 30 de Mayo de 2023
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 comentario
Ver también
Categorías
Más información sobre Assumptions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
