formulas lacked final semicolon

This commit is contained in:
Álvaro González 2025-09-21 16:53:50 +02:00
parent e593c997cb
commit 681d9215b3

View file

@ -11,13 +11,13 @@ Where:
- `g` = Gravitational acceleration (9.81 m/s² on Earth)
- `t` = Time in free fall (seconds)
![Free Fall Diagram](https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Free-fall.svg/1200px-Free-fall.svg.png)''',
![Free Fall Diagram](https://altcalculator.com/wp-content/uploads/2023/08/Free-Fall.png)''',
"input": [
{"name": "t", "unit": "second"}, // Time in seconds
{"name": "g", "unit": "meters per second"} // Gravitational acceleration
],
"output": {"name": "h", "unit": "meter"}, // Height in meters
"d4rtCode": "h = 0.5 * g * pow(t, 2)",
"d4rtCode": "h = 0.5 * g * pow(t, 2);",
"tags": ["physics", "kinematics"]
},
@ -41,7 +41,7 @@ Where:
{"name": "r", "unit": "meter"} // Distance between masses
],
"output": {"name": "F", "unit": "newton"}, // Force in newtons
"d4rtCode": "F = (6.67430e-11 * m1 * m2) / pow(r, 2)",
"d4rtCode": "F = (6.67430e-11 * m1 * m2) / pow(r, 2);",
"tags": ["physics", "astronomy", "gravity"]
},
@ -63,7 +63,7 @@ Where:
{"name": "v", "unit": "meters per second"} // Velocity
],
"output": {"name": "KE", "unit": "joule"}, // Energy in joules
"d4rtCode": "KE = 0.5 * m * pow(v, 2)",
"d4rtCode": "KE = 0.5 * m * pow(v, 2);",
"tags": ["physics", "energy", "mechanics"]
},
@ -82,7 +82,7 @@ Where:
{"name": "θ", "unit": "degree"} // Launch angle
],
"output": {"name": "R", "unit": "meter"}, // Horizontal distance
"d4rtCode": "R = (pow(v, 2) * sin(2 * radians(θ))) / 9.80665",
"d4rtCode": "R = (pow(v, 2) * sin(2 * radians(θ))) / 9.80665;",
"tags": ["physics", "kinematics", "projectile"]
},
@ -103,7 +103,7 @@ Where:
{"name": "a", "unit": "meters per square second"} // Acceleration
],
"output": {"name": "F", "unit": "newton"}, // Force in newtons
"d4rtCode": "F = m * a",
"d4rtCode": "F = m * a;",
"tags": ["physics", "mechanics", "newton"]
},
]