how can i solve this angle between vectors?

1 Ansicht (letzte 30 Tage)
nurul aqilah
nurul aqilah am 4 Dez. 2015
Beantwortet: VBBV am 15 Mär. 2023
Find the angle between the vectors a and b given that a = 3; b = 5; and a-b = 7:

Antworten (2)

Andrei Bobrov
Andrei Bobrov am 4 Dez. 2015
Bearbeitet: Andrei Bobrov am 4 Dez. 2015

Law of cosines

a = 3; 
b = 5;
c = 7; % c = a - b
alpha = acos((a.^2 + b.^2 - c.^2)./(2*a*b));

VBBV
VBBV am 15 Mär. 2023
a = 3;
b = 5;
c = 7;
alpha = acosd((a.^2 + b.^2 - (c).^2)./(2*a*b))
alpha = 120.0000

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by