Skip to main content

calc_power_factor_coefficients

Function calc_power_factor_coefficients 

pub fn calc_power_factor_coefficients(pf: f64) -> [f64; 2]
Expand description

The coefficients [a, b] of a fixed power factor written as the row a P + b Q = 0: a = √((1 − |pf|)(1 + |pf|)) and b = −pf, so that Q / P = a / pf (calc_reactive_ratio’s ReactiveRatioForm::Sine) and a tiny nonzero power factor keeps a finite row.