P01.07 · Lesson 07 of 18
Vectors, Dot & Cross Products
The dot product asks "how much along?"; the cross product asks "how much around?". Every force, moment and orbit is one of those two questions.
Build it Vector library for 3D mechanics
- Learning outcomes
- Derive the component formulas for the dot and cross products from their geometric definitions, and prove the identities (Lagrange, triple products, transmissibility of a moment) that the tests check.
- Implement and test a vector library from components, vectorized over stacks of vectors, and compare it with NumPy's
dot,crossandlinalg.norm. - Compute, from one position–velocity pair, a satellite's angular momentum, orbital plane, inclination, semi-latus rectum and flight-path angle, and the root bending and torsion moments of a swept wing from its lift distribution.
- Decide when the arccos formula for an angle is untrustworthy and when a strip model of a distributed load is converged.
- Prerequisites
P01.06(polar conic, ),P01.01(product rule),P00.03(NumPy broadcasting); Bridge B1 (trigonometry, , , ). Skill check: you can expand a determinant and you know that .- Engineering question
From a single tracked position and velocity of a satellite, which plane is it orbiting in and at what inclination; and from the lift distribution on a swept wing, what bending and torsion moments must the wing root carry?
Full lesson specification (11 more items)
- Assumptions and limits
Right-handed Cartesian axes fixed in an inertial frame (satellite) or in the aircraft (wing); forces act at points (strip loads concentrated at strip centres); the wing is rigid, so loads do not move when it bends; gravity is the only force on the satellite, so is constant. Fails when the wing twists under load (the lift distribution changes), when the strips are too coarse near the tip where the elliptic distribution has a vertical tangent, and for the satellite whenever a non-central force (drag, , thrust) acts.
- Analytical work
Dot and cross products from geometry to components; the Lagrange identity; the scalar triple product as a determinant; moment of a force and the principle of transmissibility; for a central force; inclination from ; elliptic lift root bending moment by hand.
- Computational deliverable
starter/main.py:dot,cross,norm,unit,angle_between,projection,rejection,scalar_triple,moment,resultant,specific_angular_momentum,orbital_plane,semi_latus_rectum,flight_path_angle,tangential_normal_components,point_line_distance,plane_from_points,point_plane_distance,elliptic_lift_distribution,wing_root_loads. Tests prove: agreement with NumPy on single and stacked vectors; symmetry, bilinearity, antisymmetry, perpendicularity, right-handedness; the Lagrange and Jacobi identities and the BAC–CAB rule; the triple product equals a determinant; projection + rejection = original; transmissibility and Varignon's theorem; the angular momentum of theP01.06conic is the same vector at nine true anomalies; the root loads match the closed form; a circular orbit has purely normal gravity with .- Practical activity
computational experiment: measure the convergence of the strip model's root moment with strip count for the elliptic distribution and explain the observed order; measure where
arccosloses the angle between nearly parallel vectors.- Equipment
None. A computer with the environment from
P00.01.- Safety
None beyond normal computer use.
- Evidence
Completed
main.py, passing tests,vector_mechanics.png, the hand calculation of and the inclination with its comparison to the code, the strip-convergence table and the arccos table.- Assessment
assessments/phase-01/grading-rubric.md; competencies 1–4. Pass: the three proofs in Problem 2 complete; all public tests pass; the hand calculation of , and the root moment agrees with the code to four figures; the convergence experiment reports an observed order.- References
@openstax-calculus-volume-3§2.1 "Vectors in the Plane" and §2.2 "Vectors in Three Dimensions" (required-free); §2.3 "The Dot Product" (required-free); §2.4 "The Cross Product" (required-free); §2.5 "Equations of Lines and Planes in Space" (required-free); §3.1 "Vector-Valued Functions and Space Curves", §3.2 "Calculus of Vector-Valued Functions" and §3.4 "Motion in Space" (required-free); §2.6 "Quadric Surfaces" and §3.3 "Arc Length and Curvature" (supplementary-free).- Extensions
★ From , and compute the eccentricity vector and show its magnitude matches from vis-viva and the direction points to periapsis. ★ Replace the elliptic distribution by a lifting-line result (Phase 10) and see how the root torsion changes with twist.
- Time
unmeasured
1. The engineering problem
A ground station tracks a satellite for a few minutes and hands the flight dynamics team one position vector and one velocity vector in Earth-centred axes with along the spin axis. From those six numbers the team must say which plane the orbit lies in, how steeply it is tilted to the equator (the inclination), whether the satellite is climbing or descending at that instant, and the size of the orbit. All of it follows from one vector, , and the two products this lesson is about.
The second half of the problem comes from the structures office. A wing of 16 m span carries 15.5 kN of lift in level flight, distributed along the span, with the quarter-chord line swept back 25°. The root fitting must carry the total lift, the bending moment that tries to fold the wing upward, and the torsion that the sweep introduces because the outboard lift acts behind the root. Each strip of wing contributes a force at a point; the moment of each about the root is a cross product; the sum is the design load. Get the sign of the torsion wrong and the spar is designed to twist the wrong way.
Success criteria, written before we start: the library agrees with NumPy's dot, cross and norm to relative on twenty random vectors; every identity in §2 holds to the same precision; the angular momentum computed at nine points of the P01.06 conic is one vector to ; the strip model reproduces the closed-form root bending moment of an elliptic distribution to with 400 strips; and the hand calculation of and the inclination agrees with the code to four figures.
2. Understand and derive
2.1 Vectors, components and length
A vector has a magnitude and a direction; a position, a velocity, a force, a moment. In right-handed axes with unit vectors , a vector is three numbers, , written (@openstax-calculus-volume-3 §2.2). Its length is by Pythagoras applied twice, and is the unit vector in its direction (undefined for the zero vector; our unit raises). Addition and scaling are component-wise. Units: all three components carry the vector's unit (m, m/s, N), and a unit vector is dimensionless.
2.2 The dot product: "how much along?"
Definition (geometric): , with the angle between the vectors (@openstax-calculus-volume-3 §2.3). It is a scalar. In components, expand using , (unit length, mutually perpendicular):
Consequences, each a test: ; (bilinear); ; exactly when the vectors are perpendicular. The projection of onto is the part of along ,
and the rejection is the part perpendicular to . Work is a dot product: a force moving its point of application by does joules; only the component along the motion counts.
2.3 The cross product: "how much around?"
Definition (geometric): is the vector perpendicular to both and , of length (the area of the parallelogram they span), pointing the way a right-handed screw advances when turned from toward (@openstax-calculus-volume-3 §2.4). From , , , and antisymmetry, expanding the product of two component sums gives
which is the formal determinant with rows , , . Each component is a cyclic shift of the previous one (1→2→3→1), which is how to remember it and how the code writes it. Properties, each a test: ; ; .
Lagrange's identity connects the two products:
which is just multiplied by ; Problem 2 proves it directly from the components, which is the proof that (3) really has length . It gives a numerically robust way to find the angle:
Why not ? Near the cosine is ; for that is , which rounds to exactly 1 in double precision, and arccos returns 0. The sine, itself, is represented perfectly. Part 4 measures this.
2.4 Triple products
The scalar triple product is the signed volume of the parallelepiped on (base area times the height ), and in components it is the determinant with rows . Hence it is unchanged by a cyclic permutation, flips sign under a swap, and vanishes when the three vectors are coplanar. The vector triple product obeys the BAC–CAB rule , and summing its cyclic versions gives the Jacobi identity . The tests check both on random vectors; you will meet BAC–CAB again when the inertia tensor appears in Phase 04.
2.5 Moments of forces
The moment (torque) of a force applied at position about the origin is
Its magnitude is times the perpendicular distance from the origin to the line of action (the lever arm), because . Sliding the force along its own line, , changes nothing since : the principle of transmissibility. Moments add (Varignon's theorem: the moment of a resultant equals the sum of the moments), and moving the reference point from to changes the total moment by . Both are tests of resultant.
The wing. Axes: aft, along the right wing, up. A strip at station of width carries lift upward at the quarter-chord point for sweep . Its moment about the root is . So
with the semi-span. The torsion is negative: positive would pitch the nose up about the axis, and the aft-acting lift of a swept wing instead twists the root leading-edge down. For an elliptic distribution with (chosen so ; this is the minimum-induced-drag distribution you will derive in Phase 10), (substitute ), so
The half-wing lift acts at from the root, the centroid of a quarter-ellipse. For kN and m: N m and N m.
2.6 Angular momentum and the orbital plane
A satellite at with velocity has specific angular momentum (per unit mass)
Differentiate with the product rule for cross products (@openstax-calculus-volume-3 §3.2): . Assumption (central force): gravity points along , so and is constant. This is the fact P01.06 imported: (the transverse velocity is and ), and gives the semi-latus rectum from one state vector. Because is perpendicular to both and at every instant and never changes, the motion stays in the plane through the origin with normal : the orbital plane. Its tilt from the equator is the inclination,
with for prograde orbits (eastward) and for retrograde. The flight-path angle of P01.06 is the angle between and the local horizontal: , projection over rejection.
Worked example. km, km/s. By (3): ; ; km²/s. km²/s m²/s. Inclination: , . Semi-latus rectum: km, against km: nearly circular. km²/s, so the radial speed is km/s and : descending, barely. Sanity check: m/s against circular speed m/s at this radius. This is a 420 km orbit at 26.8°, nothing exotic.
2.7 Tangential and normal acceleration
Along any path the acceleration splits into a part along that changes the speed and a part perpendicular to it that turns the path (@openstax-calculus-volume-3 §3.4):
with the radius of curvature. Again projection (dot) and rejection (cross). For a circular orbit gravity is purely normal and returns the orbit radius; for the example state, m/s² (it is descending, so gravity has a small component along the velocity and the satellite is speeding up, consistent with ) and km, equal to to four figures because at the apsides of any conic and this orbit is nearly circular. For an aircraft, is the load factor's horizontal part.
2.8 Lines and planes
A line through with direction is ; the distance from a point to it is , the rejection of from (@openstax-calculus-volume-3 §2.5). A plane through three points has normal and equation ; the signed distance of a point is . Three tracked positions therefore give the orbital plane with no velocity at all (Problem 6).
2.9 Where the model stops being valid
- Non-central forces. Drag, and thrust all have ; then drifts and the "orbital plane" is an instantaneous one. Two state vectors a day apart give two slightly different planes.
- Rigid wing. A real swept wing bends and twists under load, moving the quarter-chord line and changing . The root loads here are first-iteration numbers for the structures loop.
- Point loads. Concentrating a strip's lift at its centre is exact for a uniform strip and second-order accurate otherwise; near the tip the elliptic has infinite slope and the error decays more slowly (part 4).
- Axes. Everything assumes a right-handed, orthonormal basis. A left-handed convention flips every cross product; mixed units (km and m/s) multiply into km·m/s nonsense. Check both before trusting a sign.
3. Build the computational model
Open starter/main.py. Every function takes a single vector (shape (3,)) or a stack (shape (N, 3)) and returns the matching shape; the private helpers _as_vectors, _pair and _out are provided and handle that bookkeeping so the mathematics stays visible.
Step 1: the two products from components
def dot(a, b):
A, B, single = _pair(a, b) # both (N, 3), broadcast
return _out(A[:, 0] * B[:, 0] + A[:, 1] * B[:, 1] + A[:, 2] * B[:, 2], single)
def cross(a, b):
A, B, single = _pair(a, b)
out = np.column_stack([A[:, 1] * B[:, 2] - A[:, 2] * B[:, 1], # cyclic: 2,3
A[:, 2] * B[:, 0] - A[:, 0] * B[:, 2], # 3,1
A[:, 0] * B[:, 1] - A[:, 1] * B[:, 0]]) # 1,2
return _out(out, single)
Write the components out, as in (1) and (3); the whole point is that you can compare them with np.dot and np.cross, which you will use from Phase 02 on.
Step 2: length, direction, angle
def norm(a):
A = _as_vectors(a)
return _out(np.sqrt(np.sum(A * A, axis=1)), np.asarray(a).ndim == 1)
def unit(a):
... # raise ValueError on a zero vector; divide by n[:, None] to broadcast over rows
def angle_between(a, b):
A, B, single = _pair(a, b)
... # raise if either is zero
c = _as_vectors(cross(A, B))
return _out(np.arctan2(np.sqrt(np.sum(c * c, axis=1)), np.sum(A * B, axis=1)), single) # (5)
projection is (2) with unit(onto); rejection subtracts it; scalar_triple(a, b, c) is dot(a, cross(b, c)).
Step 3: mechanics
def moment(r, force):
return cross(r, force) # (6)
def resultant(points, forces, about=(0.0, 0.0, 0.0)):
P, F = _as_vectors(points), _as_vectors(forces)
arm = P - np.asarray(about, dtype=float)
return F.sum(axis=0), _as_vectors(cross(arm, F)).sum(axis=0)
def orbital_plane(r, v):
h = specific_angular_momentum(r, v) # cross(r, v)
n = h / norm(h) # raise if |h| == 0
return n, float(np.arctan2(np.hypot(n[0], n[1]), n[2])) # (10), via atan2
def tangential_normal_components(v, a):
vhat = unit(v)
return float(dot(a, vhat)), float(norm(cross(a, vhat))) # (11)
flight_path_angle is atan2(dot(v, rhat), norm(rejection(v, r))); point_line_distance, plane_from_points and point_plane_distance are §2.8 line by line.
Step 4: the wing
def elliptic_lift_distribution(y, lift_total, semi_span):
b = 2.0 * semi_span
return 4.0 * lift_total / (np.pi * b) * np.sqrt(1.0 - (2.0 * y / b) ** 2)
def wing_root_loads(lift_total, semi_span, sweep_rad, n_strips=50):
edges = np.linspace(0.0, semi_span, n_strips + 1)
y = 0.5 * (edges[:-1] + edges[1:]) # strip centres
lift = elliptic_lift_distribution(y, lift_total, semi_span) * np.diff(edges)
points = np.column_stack([y * np.tan(sweep_rad), y, np.zeros_like(y)])
forces = np.column_stack([np.zeros_like(y), np.zeros_like(y), lift])
return resultant(points, forces)
No special wing code: strips are just points and forces, and resultant does the rest. That is the sign of a vector library doing its job.
Verify
Run python -m pytest curriculum/phase-01/lesson-07-vectors-dot-cross from the repo root. The tests, in order of how much they would hurt if wrong:
- Against NumPy.
dot,cross,normequalnp.dot,np.cross,np.linalg.normon twenty random vectors, singly and stacked, with the right output shapes. - Identities. Symmetry, bilinearity, antisymmetry, , perpendicularity, right-handedness of , Lagrange (4), the triple product as a determinant with its cyclic and swap behaviour, BAC–CAB and Jacobi, projection + rejection = original with Pythagoras.
- Robustness. The angle between and is to relative; zero vectors and wrong shapes raise
ValueError. - Mechanics. Transmissibility; lever arm; Varignon; the reference-point shift rule; the root loads match (8) and the torsion vanishes without sweep; is the same vector at nine true anomalies of the
P01.06conic and gives back ; equatorial and polar orbits give and ; is invariant under a rotation of the axes; a circular orbit's gravity is purely normal with . - Interface.
main()writes the figure.
Compare
NumPy is the established tool here. main() prints max |cross - np.cross| = 0.0e+00 and |dot - np.dot| = 0.0e+00: identical, because both evaluate the same six multiplications in the same order. np.cross is what you will call from now on; the reason to have written your own once is that you now know exactly what it computes, in which order, and with which sign convention (np.cross also takes an axis argument and handles 2-vectors by returning a scalar, two conveniences that have produced real bugs). np.linalg.norm differs in one way worth knowing: for very large or very small components it scales before squaring to avoid overflow, which sqrt(a·a) does not; at our norm returns inf. Not a concern in SI mechanics, but the kind of difference a comparison exists to find.
The wing output of main():
Right half-wing root loads (elliptic lift, 50 strips)
F = [ 0. 0. 7752.4] N (should be 0, 0, 7750)
M = [ 26334. -12279.8 0. ] N m: bending M_x = 26334.0, torsion M_y = -12279.8
analytic bending (L/2)(4 b/2 / (3 pi)) = 26313.6 N m; torsion = -tan(sweep) * bending = -12270.2 N m
Fifty strips overshoot the lift by 0.03 % and the bending by 0.08 %. Both errors have the same cause, examined in part 4.
4. Experiment at home, or investigate real data
Mode: computational experiment.
Experiment A: strip convergence. Prediction, written before running: the midpoint rule is second-order for a smooth integrand, so doubling the strip count should divide the root-moment error by 4. But has an infinite slope at the tip, which usually degrades a midpoint rule to order 1.5. Run wing_root_loads(15.5e3, 8.0, np.radians(25), n) for , tabulate , and compute the observed order . Then decide: how many strips for 0.1 % on the bending moment? For 0.01 %?
Experiment B: where arccos fails. For build and compute the angle to both by np.arccos(dot/(|a||b|)) and by angle_between. Prediction: arccos is fine to about , loses its fourth significant figure at (where , only twenty machine epsilons below 1) and returns exactly 0 at and below; angle_between is exact at every size. Why would a star tracker, which measures the angle between two star directions to 1 arcsecond ( rad), care?
Raw data format: two plain-text tables, and , kept in your lesson notes.
5. Validate and improve
Hand calculation (§2.6), code and an independent route side by side:
| quantity | hand | code | independent check | difference |
|---|---|---|---|---|
| (km²/s) | same | np.cross identical |
0 | |
| $ | \mathbf h | $ (m²/s) | ||
| 26.84° | 26.839° | $\arccos(h_z/ | \mathbf h | |
| (km) | 6797.3 | 6797.3 | km | 0.001 % |
| sign of | 0 | |||
| root (N m) | 26 314 (closed form) | 26 334 (50 strips) | 26 314.4 (400 strips) | 0.08 % → 0.003 % |
| root (N m) | exactly | same ratio |
The strip error is the only non-trivial residual, and it has a cause you can quantify: in Experiment A the observed order is close to 1.5, not 2, because of the tip singularity, and the lift error ( % at 50 strips) is always positive because the midpoint of the last strip over-estimates a concave profile. Two fixes exist. Cluster the strips toward the tip with a cosine spacing , which is what Phase 10's lifting-line code does; or integrate exactly over each strip, which is possible here ( is elementary) but not for a measured distribution. Try the cosine spacing and report the new order.
What is still unverified when everything agrees: the physics inputs. The elliptic distribution is a model, not a measurement, and the quarter-chord line is where thin-airfoil theory puts the lift, not where a pressure survey would. The satellite's inclination is exact given and , but a tracking solution carries uncertainty; propagate m/s through orbital_plane and the inclination moves by 0.014°, so a radar fix good to 1 m/s pins to about 0.0014° and a precise orbit solution good to 0.01 m/s to degrees. That, not the arithmetic, is the precision of the answer. Agreement between hand and code proves the code implements the vectors; the uncertainty analysis is what makes the number usable.
6. Defend your work
Submit: the completed starter/main.py with all tests passing; vector_mechanics.png; the hand calculation of , , , and the root moments with the comparison table; the two experiment tables with one paragraph each; and a one-page note (sections 1, 2, 5, 6 and 7 of projects/_template/report-template.md) stating what each model assumes and the uncertainty of the inclination.
Adversarial self-checks
- What if the lift doubles? Every moment doubles and the lever arm does not move: moments are linear in force. If instead the span doubles at fixed lift, doubles too (lever arm ) while the torsion/bending ratio is unchanged.
- What if ? What if ? and the orbital plane is undefined; the code must raise, not return a normal made of
nan. Physically that is a body falling straight down, which has no orbit. - Which assumption fails first in the real world? For the wing, rigidity: a swept wing's bending produces washout that unloads the tip and moves the lift inboard, reducing by a few percent at limit load. For the satellite, the central force: turns the plane by a fraction of a degree per day.
- What measurement could falsify the model? Strain gauges at the root give and directly; a measured ratio different from means the lift does not act at the quarter chord. For the satellite, a second state vector a day later gives a second ; the angle between them is the perturbation, zero under the model.
- Does the result survive a change in axes? Rotate and by the same orthogonal matrix: , , and must not change, and changes only because the axis moved. The flight-path test does exactly this with a random rotation.
- Which decision changes if the uncertainty doubled? A velocity error of 2 m/s instead of 1 m/s gives 0.0028° instead of 0.0014° on the inclination, which at 6800 km is a cross-track position uncertainty of 330 m instead of 170 m. A conjunction screen with a 1 km miss-distance threshold is unaffected; one with a 200 m threshold now cannot decide whether to manoeuvre. The decision changes only when the uncertainty crosses the threshold it is compared with.
Check yourself
- State the dot and cross products of and and the angle between them to the nearest degree.
- Why is always zero? Give the one-line geometric reason.
- The moment of a force about a point is unchanged when the force slides along its line of action. Which product property is that?
- A satellite has . Is it prograde or retrograde, and what can you say about ?
- Write the relation between , and the semi-latus rectum of
P01.06. - In a coordinated level turn the acceleration is purely normal. What is , and which product gives from and ?
- For an elliptic lift distribution, at what fraction of the semi-span does the half-wing lift act? Is the root bending moment larger or smaller than for a uniform distribution of the same total lift, and by what factor?
- Why does
angle_betweenuseatan2(|a × b|, a · b)rather thanarccos? At roughly what angle does the difference appear in double precision?
Problem set
Attempt every problem before opening solutions/. Record what you tried. State units on every numerical answer and the axis convention you used.
Several problems use your personal seed s: the day of the month you were born (1–31). Use m³/s², km, m/s².
1. (Warm-up: one state vector)
A tracking solution gives, in Earth-centred axes with along the spin axis, km and km/s.
Find by hand, then check with your code: (a) and ; (b) and ; (c) the unit normal of the orbital plane and the inclination; (d) the radial and transverse speeds (projection and rejection of on ) and the flight-path angle; (e) the semi-latus rectum ; (f) the tangential and normal components of the gravitational acceleration and the radius of curvature . Answer form: numbers with units, four significant figures; the component arithmetic of (b) written out.
2. (Derivation: three identities)
(a) Prove Lagrange's identity directly from the component formulas (1) and (3), and conclude that . (b) Prove that equals the determinant with rows , and hence that it is unchanged by a cyclic permutation and changes sign under a swap of any two vectors. (c) For a body with velocity and acceleration , prove the product rule from the components, and conclude that is constant for any central force . State where you use that is a scalar.
Answer form: three proofs, each step justified.
3. (Unfamiliar scenario: the wind triangle, in 3D)
An aircraft flies at a true airspeed of 120 kt (1 kt m/s) and must track due east (090°) over the ground. The wind blows from 030° at 30 kt. Use axes east, north, up; a bearing is the direction .
(a) Write the wind velocity vector (remember: "from 030°" means it blows toward 210°).
(b) The ground velocity is the vector sum of the air velocity (airspeed along the heading) and the wind. Find the heading that makes the ground velocity point east, the resulting ground speed in knots, and the crab angle between heading and track. Use angle_between for the crab angle and projection/rejection of the wind on the track direction to explain the two numbers.
(c) Now the aircraft also climbs at 3 m/s with the same 120 kt true airspeed. Recompute the heading and the ground velocity vector, and find the climb angle relative to the ground and the angle between the air velocity and the ground velocity.
(d) In one sentence: which product (dot or cross) answers "how long to reach a waypoint 50 km east", and which answers "how far off track am I after 10 minutes if I fly the no-wind heading"?
Answer form: three vectors, four angles, one speed, one sentence.
4. (Numerical, uses your code: lift distributions)
For the lesson's wing ( kN, m, ):
(a) Replace the elliptic distribution by a triangular one, (which also integrates to over the half-span), and by a uniform one, . Derive the closed-form root bending moment for each and compute all three with resultant using 400 strips. Report the ratios of elliptic to triangular and elliptic to uniform bending.
(b) Measure the observed convergence order of wing_root_loads for the elliptic case with strips, then repeat with cosine-spaced strip edges and report the new order.
(c) A structures engineer asks for the root loads to 0.1 %. How many uniform strips do you need, and how many cosine-spaced ones?
Answer form: three closed forms, two ratios, two observed orders with the tables, two strip counts.
5. (Judgment: where the models stop)
For each situation name the assumption that fails, estimate the size of the effect with one number, and say what you would measure to detect it:
(a) the wing of Problem 4 is a sailplane wing with a tip deflection of 1.5 m at limit load; (b) the satellite of Problem 1 (compute its perigee altitude from and before you answer); (c) the inclination of Problem 1 is quoted to six decimal places from a radar fix with a velocity uncertainty of 1 m/s; (d) a colleague computes the root torsion as and argues that the sign is "a convention".
Answer form: four short paragraphs, each with a number.
6. (Hard: the orbital plane from three position fixes)
Three position fixes of a satellite, about ten minutes apart, are km, km and km.
(a) With plane_from_points, find the unit normal and the offset of the plane through the three fixes; explain what a non-zero would mean physically and why it should be close to zero.
(b) Find the inclination and compare with the lesson's state vector, which belongs to the same orbit.
(c) Find the angle swept between consecutive fixes with angle_between, and estimate the orbital period if the orbit is circular.
(d) A ground station sits at latitude 40° N, longitude 20° E on a spherical Earth of radius (at the instant of the fixes, Earth-centred axes coincide with the station's Earth-fixed frame). Find its signed distance from the orbital plane and say whether the satellite can ever pass directly overhead.
(e) Estimate the sensitivity of the normal to a 1 km error in by perturbing it along each axis in turn, and compare with the sensitivity of orbital_plane to a 1 m/s error in . Which method of finding the plane would you trust more, and why?
Answer form: one unit vector and offset, two angles, one period, one distance with a yes/no, a short comparison.
Get the code
Clone the repository once, write your code in starter/main.py, then run the tests from the repository root.
pytest curriculum/phase-01/lesson-07-vectors-dot-cross
To run the same tests against the reference solution instead:
AEFS_IMPL=solution pytest curriculum/phase-01/lesson-07-vectors-dot-cross
Found a mistake? Every page is built from the Markdown in the repository; edit it on GitHub.