mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add mid dot to formula (#59720)
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user