d4t_formulas/assets/formulas/materials_elasticity.d4rt
Álvaro González 9f2c569279 Big merge. Watch out!
Merge branch 'feature/more-copilot-formulas' of ssh://codeberg.org/alvarogonzalezsotillo/d4rt_formulas into feature/more-copilot-formulas
2026-02-27 08:40:38 +01:00

25 lines
582 B
Text

[
// Hooke's Law
{
"name": "Hooke's Law",
"description": r"""
Force exerted by a spring is proportional to its displacement.
$$F = -kx$$
Where:
- $F$: Restoring force (Newtons)
- $k$: Spring constant (N/m)
- $x$: Displacement from equilibrium (meters)
The negative sign indicates the force opposes the displacement.""",
"input": [
{"name": "k", "unit": "newton per meter"},
{"name": "x", "unit": "meter"}
],
"output": {"name": "F", "unit": "newton"},
"d4rtCode": "F = -k * x;",
"tags": ["physics", "elasticity", "oscillations"]
}
]