Plate3
Unit 1 · Topic 3 of 11
Dot product
Medium, 7 min, 6 steps
Step 1 of 6 a
The first vector a
a = (4, 1.50), with length 4.27.
import matha = [4.0, 1.5]aci = math.radians(50.0)yon = math.atan2(a[1], a[0]) + acibx = 3.0 * math.cos(yon)by = 3.0 * math.sin(yon)carpim = a[0] * bx + a[1] * bya_boy = math.hypot(a[0], a[1])golge = carpim / a_boyprint(carpim, golge)
- aci
- 50
- boy
- 3
- ab
- 8.24
- golge
- 1.93