pub fn magnetic_force_on_wire(
current: f64,
length: f64,
magnetic_flux_density: f64,
angle_radians: f64,
) -> Option<f64>Expand description
Computes magnetic force on a current-carrying wire.
Formula: F = I * L * B * sin(theta)
The sign is preserved from the scalar inputs and angle convention.
ยงExamples
use std::f64::consts::FRAC_PI_2;
use use_magnetism::magnetic_force_on_wire;
assert_eq!(magnetic_force_on_wire(2.0, 3.0, 4.0, FRAC_PI_2), Some(24.0));