ratio

Function ratio 

Source
pub(crate) fn ratio(numerator: Complex, denominator: Complex) -> Complex
Expand description

numerator / denominator without overflow or underflow in the denominator’s square.

num-complex divides by |denominator|^2, which overflows from about 1e154 and underflows below about 1e-154. Dividing both operands by the larger part of the denominator first keeps that square near one.