I\'d like to approximate the ex function.
Is it possible to do so using multiple splines type based approach? i.e between x1
http://martin.ankerl.com/2007/02/11/optimized-exponential-functions-for-java/ using Schraudolph's method (http://nic.schraudolph.org/pubs/Schraudolph99.pdf) in Java:
public static double exp(double val) {
final long tmp = (long) (1512775 * val) + (1072693248 - 60801);
return Double.longBitsToDouble(tmp << 32);
}
and https://math.stackexchange.com/a/56064 (look for Pade approximant).