RedcrabX – Physics Functions

Reference for the Physics panel  |  Force and Work group

Back to MathBox Guide

Table of Contents


Overview

The Physics panel (specifically the Force and Work group) provides named-parameter solvers for common physics relations. All functions accept named parameters and return a scalar or named result. Use the = display operator to see the computed value with its unit (e.g. centforce(m=2, v=10, r=5) =).


Centrifugal Force Solver – centforce

Syntax

centforce(p1=v1, p2=v2, p3=v3)

Description

Solves the centrifugal force relation F = m·v² / r. Provide any three of the four quantities:

The function automatically computes the missing (fourth) quantity. All parameter names are case-sensitive.

Formula

Centrifugal Force (from the rotating frame):

F = m · v² / r  [N]

or equivalently, in terms of angular velocity:

F = m · ω² · r  (where ω = v / r)

Parameters and Units

ParameterUnitDescription
FN (Newton)Centrifugal force
mkgMass of the object
vm/sTangential velocity / speed along the circle
rmRadius of the circular path

Constraint

Each parameter may appear only once in the function call. At least three parameters must be provided (exactly three).

Examples

Example 1: Compute Force from Mass, Velocity, and Radius

centforce(m=2, v=10, r=5) =
40 N

An object of mass 2 kg moving at 10 m/s in a circle of radius 5 m experiences a centrifugal force of 40 N outward.

Example 2: Compute Velocity from Force, Mass, and Radius

centforce(F=40, m=2, r=5) =
10 m/s

A 2 kg object in a 5 m radius circle with 40 N centrifugal force must be moving at 10 m/s.

Example 3: Compute Mass from Force, Velocity, and Radius

centforce(F=100, v=5, r=2) =
8 kg

For a 100 N centrifugal force at 5 m/s in a 2 m radius, the mass is 8 kg.

Example 4: Compute Radius from Force, Mass, and Velocity

centforce(F=50, m=3, v=10) =
6 m

A 3 kg object at 10 m/s with 50 N centrifugal force requires a radius of 6 m.

Common Applications

Related Physics Concepts

Centripetal vs. Centrifugal:

The solver uses the formula from the rotating frame perspective and computes the magnitude of centrifugal acceleration: ac = v² / r, then scales by mass.


Pressure-Force-Area Solver – pfa

Syntax

pfa(p1=v1, p2=v2)

Description

Solves the pressure relation p = F / A. Provide any two of the three quantities:

The function automatically computes the missing (third) quantity. All parameter names are case-insensitive (both p and P are accepted).

Formula

Pressure (force per unit area):

p = F / A  [Pa]

where 1 Pascal = 1 Newton / m² = 1 N/m².

Parameters and Units

ParameterUnitDescription
p or PPa (Pascal)Pressure (force per unit area)
FN (Newton)Force applied perpendicular to the surface
Am² (square meter)Contact area

Constraint

Each parameter may appear only once in the function call. Exactly two parameters must be provided (the third is computed).

Examples

Example 1: Compute Pressure from Force and Area

pfa(F=100, A=0.5) =
200 Pa

A force of 100 N applied over an area of 0.5 m² creates a pressure of 200 Pa.

Example 2: Compute Force from Pressure and Area

pfa(p=1000, A=0.02) =
20 N

A pressure of 1000 Pa acting on an area of 0.02 m² exerts a force of 20 N.

Example 3: Compute Area from Pressure and Force

pfa(p=5000, F=500) =
0.1 m²

To exert 500 N of force at 5000 Pa pressure, an area of 0.1 m² is required.

Common Applications

Related Physics Concepts

Stress vs. Pressure:

The pfa solver assumes pressure acts perpendicular to the area (hydrostatic or pneumatic context).


Work-Force-Distance Solver – work

Syntax

work(p1=v1, p2=v2)

Description

Solves the work relation W = F · s (assuming force and displacement are in the same direction). Provide any two of the three quantities:

The function automatically computes the missing (third) quantity. All parameter names are case-insensitive (both W and w, both s and S are accepted).

Formula

Work (force × displacement, parallel case):

W = F · s  [J]

where 1 Joule = 1 Newton · meter = 1 N·m. This formula applies when force and displacement are parallel (angle = 0°). For general angles: W = F · s · cos(θ).

Parameters and Units

ParameterUnitDescription
W or wJ (Joule)Work done (energy transferred)
FN (Newton)Force applied (magnitude, assuming parallel to displacement)
s or Sm (meter)Distance or displacement in the direction of force

Constraint

Each parameter may appear only once in the function call. Exactly two parameters must be provided (the third is computed).

Examples

Example 1: Compute Work from Force and Distance

work(F=50, s=10) =
500 J

Applying a force of 50 N over a distance of 10 m produces a work of 500 J.

Example 2: Compute Force from Work and Distance

work(W=1000, s=20) =
50 N

If 1000 J of work is done over a distance of 20 m, the force applied is 50 N.

Example 3: Compute Distance from Work and Force

work(W=750, F=25) =
30 m

To do 750 J of work with a force of 25 N, a distance of 30 m is required.

Common Applications

Related Physics Concepts

Work vs. Energy vs. Power:

Important caveat: The formula W = F · s assumes that force and displacement are in the same direction (angle θ = 0°). For a general angle: W = F · s · cos(θ). If force is perpendicular to displacement (θ = 90°), no work is done.


Power Solver – power

Description

Solves the power relation P = F · s / t (also called P = W / t since work W = F · s). Power is the rate at which work is done, or the rate of energy transfer. Provide any three of the four quantities:

The function automatically computes the missing (fourth) quantity. All parameter names are case-insensitive.

Formula

Power (rate of work or energy transfer):

P = F · s / t  [W]
    P = W / t      [W]  (since W = F · s)

Alternative form using velocity v = s / t:

P = F · v      [W]

Usage Syntax

power(P=value, F=..., s=...)  →  Computes t [s]
    power(F=value, s=..., t=...)  →  Computes P [W]
    power(P=..., F=..., t=...)    →  Computes s [m]
    power(P=..., F=..., s=...)    →  Computes t [s]
        

Examples

Example 1: Compute Power from Force, Distance, and Time

power(F=50, s=100, t=10) =
500 W

A force of 50 N moves an object 100 m in 10 seconds. The power delivered is (50 × 100) / 10 = 500 W.

Example 2: Compute Time from Power, Force, and Distance

power(P=500, F=50, s=100) =
10 s

If a force of 50 N does 500 W of power over 100 m, it takes t = F·s / P = 10 seconds.

Example 3: Compute Force from Power, Distance, and Time

power(P=1000, s=50, t=5) =
100 N

If 1000 W is delivered to move an object 50 m in 5 seconds, the force is F = P·t / s = 100 N.

Common Applications

Related Physics Concepts

Key relationships:


Kinetic Energy Solver – kine

Description

Solves the kinetic energy relation Ek = ½ · m · v². Kinetic energy is the energy an object possesses due to its motion. Provide any two of the three quantities:

The function automatically computes the missing (third) quantity. All parameter names are case-insensitive.

Formula

Kinetic energy (energy of motion):

Ek = ½ · m · v²  [J]

This is the energy needed to accelerate an object from rest to velocity v, or equivalently, the energy released when the object comes to rest from velocity v.

Usage Syntax

kine(Ek=value, m=...)    →  Computes v [m/s]
            kine(m=value, v=...)     →  Computes Ek [J]
            kine(Ek=value, v=...)    →  Computes m [kg]

Examples

Example 1: Compute Kinetic Energy from Mass and Velocity

kine(m=2, v=10) =
100 J

An object with mass 2 kg moving at 10 m/s has kinetic energy Ek = ½ × 2 × 10² = 100 J.

Example 2: Compute Velocity from Kinetic Energy and Mass

kine(Ek=100, m=2) =
10 m/s

If an object with mass 2 kg has kinetic energy of 100 J, its velocity is v = √(2·Ek/m) = 10 m/s.

Example 3: Compute Mass from Kinetic Energy and Velocity

kine(Ek=50, v=5) =
4 kg

An object moving at 5 m/s with kinetic energy 50 J has mass m = 2·Ek / v² = 4 kg.

Common Applications

Related Physics Concepts

Key relationships:


Potential Energy Solver – poten

Description

Solves the gravitational potential energy relation Ep = m · g · h. Potential energy (also called "Lageenergie" in German) is the energy an object possesses due to its position or height in a gravitational field. Provide any three of the four quantities:

The function automatically computes the missing (fourth) quantity. All parameter names are case-insensitive.

Formula

Gravitational potential energy:

Ep = m · g · h  [J]

This is the energy stored in an object due to its elevation in a gravitational field. When the object falls, this potential energy converts to kinetic energy (conservation of energy).

Usage Syntax

poten(Ep=value, m=..., g=...)     →  Computes h [m]
poten(m=value, g=..., h=...)       →  Computes Ep [J]
poten(Ep=value, m=..., h=...)      →  Computes g [m/s²]
poten(Ep=value, g=..., h=...)      →  Computes m [kg]

Examples

Example 1: Compute Potential Energy from Mass, Gravity, and Height

poten(m=2, g=9.81, h=10) =
196.2 J

A 2 kg object raised 10 meters in Earth's gravity (9.81 m/s²) has potential energy Ep = 2 × 9.81 × 10 = 196.2 J.

Example 2: Compute Height from Potential Energy, Mass, and Gravity

poten(Ep=500, m=10, g=9.81) =
5.1 m

If a 10 kg object has potential energy of 500 J on Earth, its height is h = Ep / (m·g) ≈ 5.1 m.

Example 3: Compute Mass from Potential Energy, Gravity, and Height

poten(Ep=100, g=9.81, h=2) =
5.1 kg

An object at height 2 m with potential energy 100 J (on Earth) has mass m = Ep / (g·h) ≈ 5.1 kg.

Common Applications

Related Physics Concepts

Key relationships:


Specific Energy Solver – specy

Description

Solves the specific energy relation specy = E / m. Specific energy (also called "gravimetric energy density") is the amount of energy per unit mass. It is commonly used in thermodynamics, energy storage systems, fuel characterization, and materials science. Provide any two of the three quantities:

The function automatically computes the missing (third) quantity. All parameter names are case-insensitive.

Formula

Specific energy (energy per unit mass):

specy = E / m  [J/kg]

This represents how much energy is contained in a given mass of material or system. Examples include:

Usage Syntax

specy(specy=value, E=...)     →  Computes m [kg]
     specy(E=value, m=...)         →  Computes specy [J/kg]
     specy(specy=value, m=...)     →  Computes E [J]

Examples

Example 1: Compute Specific Energy from Total Energy and Mass

specy(E=1000, m=2) =
500 J/kg

An energy source with total energy 1000 J distributed over 2 kg of material has specific energy specy = E / m = 1000 / 2 = 500 J/kg.

Example 2: Compute Total Energy from Specific Energy and Mass

specy(specy=500, m=5) =
2500 J

A material with specific energy 500 J/kg and mass 5 kg has total energy E = specy × m = 500 × 5 = 2500 J.

Example 3: Compute Mass from Specific Energy and Total Energy

specy(specy=400, E=2000) =
5 kg

Energy totaling 2000 J with specific energy 400 J/kg corresponds to mass m = E / specy = 2000 / 400 = 5 kg.

Common Applications

Related Physics Concepts

Key relationships:


Volumetric Energy Solver – volecy

Description

Solves the volumetric energy density relation volecy = E / V. Volumetric energy density is the amount of energy per unit volume. It complements specific energy (gravimetric energy density) and is commonly used in applications where space constraints matter more than mass constraints. Provide any two of the three quantities:

The function automatically computes the missing (third) quantity. All parameter names are case-insensitive.

Formula

Volumetric energy density (energy per unit volume):

volecy = E / V  [J/m³]

This represents how much energy is stored in a given volume of material or system. Volumetric energy density is particularly important when designing compact energy storage systems where physical space is limited (unlike mass-based specific energy which matters when weight is the constraint).

Usage Syntax

volecy(volecy=value, E=...)     →  Computes V [m³]
          volecy(E=value, V=...)          →  Computes volecy [J/m³]
          volecy(volecy=value, V=...)     →  Computes E [J]

Examples

Example 1: Compute Volumetric Energy Density from Total Energy and Volume

volecy(E=1000, V=0.5) =
2000 J/m³

An energy source with total energy 1000 J stored in volume 0.5 m³ has volumetric energy density volecy = E / V = 1000 / 0.5 = 2000 J/m³.

Example 2: Compute Total Energy from Volumetric Energy Density and Volume

volecy(volecy=2000, V=2) =
4000 J

A material with volumetric energy density 2000 J/m³ and volume 2 m³ has total energy E = volecy × V = 2000 × 2 = 4000 J.

Example 3: Compute Volume from Volumetric Energy Density and Total Energy

volecy(volecy=5000, E=10000) =
2 m³

Energy totaling 10000 J with volumetric energy density 5000 J/m³ requires volume V = E / volecy = 10000 / 5000 = 2 m³.

Common Applications

Relationship to Specific Energy (specy)

Specific energy and volumetric energy are related but complementary:

Related Physics Concepts

Key relationships:


Inclined Plane Force Components – slopef

Description

Decomposes forces acting on an inclined plane (sometimes called "schiefer Ebene" or "geneigte Ebene" in German). When an object rests on an inclined plane at angle α (measured from horizontal), the weight force FG (also called "Gewichtskraft") is split into two components:

Provide any one of the three forces (FG, FH, or FN) and the incline angle α. The function automatically computes all three forces.

Formula

Force decomposition on an inclined plane:

FH = FG · sin(α)      [N]  (component parallel to plane)
    FN = FG · cos(α)      [N]  (component perpendicular to plane)
    FG = FH/sin(α) = FN/cos(α)  [N]  (inverse relations)

Where:

Usage Syntax

slopef(FG=value, angle) =     → Returns all three forces
    slopef(FH=value, angle) =     → Computes FG and FN from FH
    slopef(FN=value, angle) =     → Computes FG and FH from FN

The force parameter name is case-insensitive. The angle must be a number in degrees (0° to 90°).

Examples

Example 1: Given Weight Force FG

slopef(FG=100, 30) =
FG (weight): 100.00 N
FH (sliding): 50.00 N
FN (normal): 86.60 N

An object weighing 100 N rests on a 30° incline. It experiences a 50 N downslope force and a 86.6 N normal force.

Example 2: Given Sliding Component FH

slopef(FH=50, 30) =
FG (weight): 100.00 N
FH (sliding): 50.00 N
FN (normal): 86.60 N

If the sliding force down the plane is 50 N and the angle is 30°, the weight is 100 N and the normal force is 86.6 N.

Example 3: Given Normal Force FN

slopef(FN=100, 45) =
FG (weight): 141.42 N
FH (sliding): 100.00 N
FN (normal): 100.00 N

On a 45° incline with a normal force of 100 N (perpendicular pressure on the surface), the weight is ~141.4 N and the sliding component is also 100 N (equal at 45°).

Common Applications

Related Physics Concepts

Key relationships:


Speed-Distance-Time Solver – vst

Syntax

vst(p1=v1, p2=v2)

Description

Solves the uniform-motion relation v = s / t. Provide any two groups (speed, distance, time) and the missing third group is computed.

Supported Named Parameters

GroupParametersUnit
Speedv, vms, vkmhm/s, m/s, km/h
Distances, sm, skm (aliases: d, dm, dkm)m, m, km
Timet, ts, tmin, ths, s, min, h

Formula

v = s / t
s = v · t
t = s / v

Examples

Example 1: Compute speed in km/h

vst(skm=120, th=2) =
60 km/h

Example 2: Compute distance in km

vst(vkmh=90, tmin=30) =
45 km

Example 3: Compute time in seconds

vst(s=500, v=5) =
100 s

Use unit-specific parameter names when you want a specific output unit. For example, skm or th drives speed output to km/h, while s and t keep SI output (m/s).


Uniformly Accelerated Motion – accmotion

Syntax

accmotion(...=..., ...=..., ...=...)

Description

Solves the kinematic equations for uniformly accelerated motion from exactly three named inputs and returns a full result table.

Supported Named Parameters

ParameterUnitDescription
smDistance
vm/sFinal speed
v0m/sInitial speed
am/s²Acceleration
tsTime

Formulas

v = v0 + a·t
s = v0·t + 0.5·a·t²

Example

accmotion(s=100, v0=0, t=5) =
s = 100.000 m v = 40.000 m/s v0 = 0.000 m/s a = 8.000 m/s² t = 5.000 s

Circular Motion Speed – circvel

Syntax

circvel(...=..., ...=...)

Description

Computes tangential speed for circular motion from radius and period (time for one revolution). This is a scalar function.

Supported Named Parameters

GroupParametersUnit
Radiusr, rm, rkmm, m, km
PeriodT, ts, tm/tmin, th, tds, s, min, h, day

Formula

v = 2 · π · r / T

Output Unit Rule

Returns m/s for SI-style input (r|rm + T|ts), otherwise km/h when kilometer/hour-scale parameters are used (e.g. rkm, tm, th, td).

Examples

circvel(r=10, T=5) =
12.566 m/s
circvel(rkm=1, th=1) =
6.283 km/h

Orbital Speed from Arc Angle – orbvel

Syntax

orbvel(r=..., dphi=..., ts|tm|th=...) 

Description

Computes the orbital (tangential) speed for a circular arc segment from radius, swept angle, and elapsed time. The function returns a named result table with speed in both SI and practical road units.

Parameters

ParameterUnitDescription
rmRadius of the circular path
dphideg or radSwept angle Δφ (interpreted by current DEG/RAD toolbar mode)
ts / tm / ths / min / hElapsed time for the arc segment (provide exactly one)

Formulas

s = r · Δφ
v = s / t

In DEG mode, internally: Δφ(rad) = Δφ(deg) · π / 180.

Example

orbvel(r=10, dphi=90, ts=5) =
v = 3.142 m/s v = 11.310 km/h

Free-Fall Solver – freefall

Syntax

freefall(g, h)

Description

Computes ideal free fall (without air resistance) from gravitational acceleration and fall height. The function returns a result table with:

Parameters

ParameterUnitDescription
gm/s²Gravitational acceleration (e.g. 9.81 on Earth)
hmFall height

Formulas

t = sqrt(2h/g)
v = sqrt(2gh)

Example

freefall(9.81, 20) =
t = 2.019 s v = 19.809 m/s v = 71.313 km/h

Quick Reference

FunctionPurposeInput/Computation
centforce(…=…,…=…,…=…) Solve centrifugal force relation F = m·v²/r Provide 3 of: F, m, v, r
Computes the 4th
pfa(…=…,…=…) Solve pressure relation p = F / A Provide 2 of: p, F, A
Computes the 3rd
work(…=…,…=…) Solve work relation W = F · s Provide 2 of: W, F, s
Computes the 3rd
power(…=…,…=…,…=…) Solve power relation P = F · s / t Provide 3 of: P, F, s, t
Computes the 4th
kine(…=…,…=…) Solve kinetic energy relation Ek = ½·m·v² Provide 2 of: Ek, m, v
Computes the 3rd
poten(…=…,…=…,…=…) Solve potential energy relation Ep = m·g·h Provide 3 of: Ep, m, g, h
Computes the 4th
specy(…=…,…=…) Solve specific energy relation specy = E / m Provide 2 of: specy, E, m
Computes the 3rd
volecy(…=…,…=…) Solve volumetric energy relation volecy = E / V Provide 2 of: volecy, E, V
Computes the 3rd
slopef(…=…, …) Solve inclined plane forces FH = FG·sin(α), FN = FG·cos(α) Provide 1 of: FG, FH, FN + angle
Returns all three
vst(…=…,…=…) Solve uniform motion v = s / t Provide 2 groups: speed, distance, time (unit variants supported)
Computes the missing group
accmotion(…=…,…=…,…=…) Solve uniformly accelerated motion Provide 3 of: s, v, v0, a, t
Returns all five
circvel(…=…,…=…) Circular motion speed v = 2·π·r/T Provide radius (r|rm|rkm) and period (T|ts|tm|tmin|th|td)
Returns scalar speed in m/s or km/h
orbvel(…=…,…=…,…=…) Orbital speed for a circular arc segment Input: r [m], dphi [deg/rad], and one of ts/tm/th
Returns: v [m/s], v [km/h]
freefall(g,h) Ideal free fall (no air drag) Input: g [m/s²], h [m]
Returns: t [s], v [m/s], v [km/h]

Generated for RedcrabX Physics panel documentation.