fn build_cordic_exp_minus_one_table(num_entries: u8) -> Vec<u64> {
    let mut table = Vec::with_capacity(num_entries as usize);
    let mut angle = 0.5f64;

    for _ in 0..num_entries {
        let exp = angle.exp();
        let ival = U0F64::from_num(exp - 1.0);
        table.push(ival.to_bits());
        angle = angle * 0.5;
    }

    table
}
// NOTE: we generate exp(x) - 1.0 instead of exp(x) directly
// so that the results can fit into a U0F64 like all our other
// CORDIC lookup tables.
we generate exp(x) - 1.0 instead of exp(x) directly
so that the results can fit into a U0F64 like all our other
CORDIC lookup tables.
we generate exp ( x ) - 1 . 0 instead of exp ( x ) directly so that the results can fit into a U0F64 like all our other CORDIC lookup tables .
fn build_cordic_exp_minus_one_table(num_entries: u8) -> Vec<u64> {
    let mut table = Vec::with_capacity(num_entries as usize);
    let mut angle = 0.5f64;
    for _ in 0..num_entries {
        let exp = angle.exp();
        let ival = U0F64::from_num(exp - 1.0);
        table.push(ival.to_bits());
        angle = angle * 0.5;
    }
    table
}
fn build_cordic_exp_minus_one_table ( num_entries : u8 ) -> Vec < u64 > { let mut table = Vec :: with_capacity ( num_entries as usize ) ; let mut angle = 0.5f64 ; for _ in 0 .. num_entries { let exp = angle . exp ( ) ; let ival = U0F64 :: from_num ( exp - 1.0 ) ; table . push ( ival . to_bits ( ) ) ; angle = angle * 0.5 ; } table }
NOTE: we generate exp(x) - 1.0 instead of exp(x) directly
so that the results can fit into a U0F64 like all our other
CORDIC lookup tables.
NOTE : we generate exp ( x ) - 1 . 0 instead of exp ( x ) directly so that the results can fit into a U0F64 like all our other CORDIC lookup tables .
num_entries
u8