Solving four trigonometric equations, four unknowns
์ด์ ๋๊ธ ํ์
Please I want to solve these four trigonometric equations, four unknowns using a matlab code
10 cos โ
3 + 10 cos โ
2 โ ๐1 = 0
15 cos โ
4 + 12 cos โ
2 โ ๐1 = 0
10 sinโ
3 + 10 sinโ
2 = 0
15 sinโ
4 + 12 sinโ
2 = 0
thank you in advance.
์ฑํ๋ ๋ต๋ณ
์ถ๊ฐ ๋ต๋ณ (1๊ฐ)
You can solve symbolically -
syms r1 t2 t3 t4
e1 = 10*cos(t3) + 10*cos(t2) - r1 == 0;
e2 = 15*cos(t4) + 12*cos(t2) - r1 == 0;
e3 = 10*sin(t3) + 10*sin(t2) == 0;
e4 = 15*sin(t4) + 12*sin(t2) == 0;
y=solve([e1 e2 e3 e4],[r1 t2 t3 t4])
y.r1
y.t2
Use double() to get numeric values
์นดํ ๊ณ ๋ฆฌ
๋์๋ง ์ผํฐ ๋ฐ File Exchange์์ Symbolic Math Toolbox์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

