File: exp2ap.cc

package info (click to toggle)
fil-plugins 0.1.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 136 kB
  • ctags: 143
  • sloc: cpp: 432; makefile: 60; sh: 13
file content (14 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <math.h>


float exp2ap (float x)
{
    int i;

    i = (int)(floor (x));
    x -= i;
//    return ldexp (1 + x * (0.66 + 0.34 * x), i);
    return ldexp (1 + x * (0.6930 + x * (0.2416 + x * (0.0517 + x * 0.0137))), i);
}