Function lorentz_force_scalar
pub fn lorentz_force_scalar(
charge: f64,
electric_field: f64,
velocity: f64,
magnetic_flux_density: f64,
angle_radians: f64,
) -> Option<f64>Expand description
Computes the scalar Lorentz-force convenience relation F = q(E + vB sin(theta)).
This helper is scalar-only and does not model the full vector Lorentz force.
Returns None when any input is not finite or when the computed result is not finite.
ยงExamples
use use_electromagnetism::lorentz_force_scalar;
assert_eq!(
lorentz_force_scalar(1.0, 10.0, 2.0, 3.0, core::f64::consts::FRAC_PI_2),
Some(16.0)
);