more example formulas
This commit is contained in:
parent
5198895c10
commit
d396d71afc
1 changed files with 38 additions and 18 deletions
|
|
@ -13,11 +13,11 @@ Where:
|
||||||
|
|
||||||
''',
|
''',
|
||||||
input: [
|
input: [
|
||||||
{name: "t", magnitude: "s"}, // Time in seconds
|
{name: "t", unit: "s"}, // Time in seconds
|
||||||
{name: "g", magnitude: "m/s²"} // Gravitational acceleration
|
{name: "g", unit: "m/s²"} // Gravitational acceleration
|
||||||
],
|
],
|
||||||
output: {name: "h", magnitude: "m"}, // Height in meters
|
output: {name: "h", unit: "m"}, // Height in meters
|
||||||
d4rtCode: "0.5 * g * pow(t, 2)"
|
d4rtCode: "h = 0.5 * g * pow(t, 2)"
|
||||||
},
|
},
|
||||||
|
|
||||||
// Newton's Law of Universal Gravitation
|
// Newton's Law of Universal Gravitation
|
||||||
|
|
@ -35,12 +35,12 @@ Where:
|
||||||
|
|
||||||
''',
|
''',
|
||||||
input: [
|
input: [
|
||||||
{name: "m1", magnitude: "kg"}, // Mass 1
|
{name: "m1", unit: "kg"}, // Mass 1
|
||||||
{name: "m2", magnitude: "kg"}, // Mass 2
|
{name: "m2", unit: "kg"}, // Mass 2
|
||||||
{name: "r", magnitude: "m"} // Distance between masses
|
{name: "r", unit: "m"} // Distance between masses
|
||||||
],
|
],
|
||||||
output: {name: "F", magnitude: "N"}, // Force in newtons
|
output: {name: "F", unit: "N"}, // Force in newtons
|
||||||
d4rtCode: "(6.67430e-11 * m1 * m2) / pow(r, 2)"
|
d4rtCode: "F = (6.67430e-11 * m1 * m2) / pow(r, 2)"
|
||||||
},
|
},
|
||||||
|
|
||||||
// Kinetic Energy
|
// Kinetic Energy
|
||||||
|
|
@ -57,11 +57,11 @@ Where:
|
||||||
|
|
||||||
''',
|
''',
|
||||||
input: [
|
input: [
|
||||||
{name: "m", magnitude: "kg"}, // Mass
|
{name: "m", unit: "kg"}, // Mass
|
||||||
{name: "v", magnitude: "m/s"} // Velocity
|
{name: "v", unit: "m/s"} // Velocity
|
||||||
],
|
],
|
||||||
output: {name: "KE", magnitude: "J"}, // Energy in joules
|
output: {name: "KE", unit: "J"}, // Energy in joules
|
||||||
d4rtCode: "0.5 * m * pow(v, 2)"
|
d4rtCode: "KE = 0.5 * m * pow(v, 2)"
|
||||||
},
|
},
|
||||||
|
|
||||||
// Projectile Motion Range
|
// Projectile Motion Range
|
||||||
|
|
@ -75,10 +75,30 @@ Where:
|
||||||
"- `g` = Gravitational acceleration\n\n"
|
"- `g` = Gravitational acceleration\n\n"
|
||||||
"",
|
"",
|
||||||
input: [
|
input: [
|
||||||
{name: "v", magnitude: "m/s"}, // Initial velocity
|
{name: "v", unit: "m/s"}, // Initial velocity
|
||||||
{name: "θ", magnitude: "deg"} // Launch angle
|
{name: "θ", unit: "deg"} // Launch angle
|
||||||
],
|
],
|
||||||
output: {name: "R", magnitude: "m"}, // Horizontal distance
|
output: {name: "R", unit: "m"}, // Horizontal distance
|
||||||
d4rtCode: "(pow(v, 2) * sin(2 * radians(θ))) / 9.80665"
|
d4rtCode: "R = (pow(v, 2) * sin(2 * radians(θ))) / 9.80665"
|
||||||
}
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: "Newton's Second Law",
|
||||||
|
description: '''
|
||||||
|
Force equals mass times acceleration
|
||||||
|
|
||||||
|
`F = m * a`
|
||||||
|
|
||||||
|
Where:
|
||||||
|
- `m` = Mass of object (kg)
|
||||||
|
- `a` = Acceleration (m/s²)
|
||||||
|
|
||||||
|
''',
|
||||||
|
input: [
|
||||||
|
{name: "m", unit: "kg"}, // Mass
|
||||||
|
{name: "a", unit: "m/s²"} // Acceleration
|
||||||
|
],
|
||||||
|
output: {name: "F", unit: "N"}, // Force in newtons
|
||||||
|
d4rtCode: "F = m * a"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue