All pastes #762182 Raw Edit

Unnamed

public c v1 · immutable
·published 2007-11-05 13:34 UTC
rendered paste body
#include <inttypes.h>#include <math.h>#include <stdio.h>// table stores qua_ener at Q10; qua_ener = 20*log10(g_fac);const int32_t table[32] = {      - 22731,      - 20428,      - 18088,      - 15739,      - 14113,      - 12867,      - 11629,      - 10387,      - 9139,      - 7906,      - 6656,      - 5416,      - 4173,      - 2931,      - 1688,      - 445,      801,      2044,      3285,      4530,      5772,      7016,      8259,      9501,      10745,      11988,      13231,      14474,      16096,      18429,      20763,      23097};int main() {    int i;    for(i=0;i<32;i++) {        printf("%f,\n", powf(10.0, table[i]/(20.0*(1<<10))));    }    return;}