pub fn parallel_resistance(resistances: &[f64]) -> Option<f64>Expand description
Computes the total resistance for resistors in parallel.
ยงExamples
use use_electricity::parallel_resistance;
assert_eq!(parallel_resistance(&[2.0, 2.0]), Some(1.0));
assert_eq!(parallel_resistance(&[]), None);