// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class FP {
    public static double f1(double x) {
        return 1.0 + x * Math.exp(x);
    }
    public static strictfp double f2(double x) {
        return 1.0 + x * StrictMath.exp(x);
    }
    public static void main(String[] args) {
        System.out.println(f1(2.0));
        System.out.println(f2(2.0));
    }
}
