fix(curriculum): add mid dot to formula (#59720)

This commit is contained in:
Supravisor
2025-04-15 21:34:53 +12:00
committed by GitHub
parent 88ab14e18b
commit 6d213cfb7a
@@ -12,7 +12,7 @@ The first thing to set up is a method that calculates the displacement of the pr
Create a method `__calculate_displacement`, which has only `self` as a parameter, and return the displacement of the projectile.
Use the following formula to compute the projectile displacement:
\\[ d = \frac{v \cdot \cos\theta \cdot \left(v\cdot\sin\theta + \sqrt{v^2\sin^2\theta + 2 \cdot g \cdot h}\right)}{g} \\]
\\[ d = \frac{v \cdot \cos\theta \cdot \left(v\cdot\sin\theta + \sqrt{v^2 \cdot \sin^2\theta + 2 \cdot g \cdot h}\right)}{g} \\]
In which $d$ is the displacement, $v$ is the starting speed, $\theta$ is the angle and $h$ is the starting height of the projectile.
For $g$ you can use the `GRAVITATIONAL_ACCELERATION` variable.