Here you can find the source of asin(final double x)
public final static double asin(final double x)
//package com.java2s; //License from project: LGPL public class Main { private final static double asin_a = -0.0481295276831013447d; private final static double asin_b = -0.343835993947915197d; private final static double asin_c = 0.962761848425913169d; private final static double asin_d = 1.00138940860107040d; public final static double asin(final double x) { return x * (Math.abs(x) * (Math.abs(x) * asin_a + asin_b) + asin_c) + Math.signum(x) * (asin_d - Math.sqrt(1 - x * x)); }/*w w w . j a v a2 s . c o m*/ public final static double sqrt(final double x) { return x * inverseSqrt(x); } public final static double inverseSqrt(double x) { final double xhalves = 0.5d * x; x = Double.longBitsToDouble(0x5FE6EB50C7B537AAl - (Double.doubleToRawLongBits(x) >> 1)); return x * (1.5d - xhalves * x * x); } }