Java asin asin_core(double x)

Here you can find the source of asin_core(double x)

Description

asicore

License

Apache License

Declaration

static public double asin_core(double x) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright 2011 See AUTHORS file./*from ww  w  . j a v  a  2s .  co m*/
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/

public class Main {
    static public double asin_core(double x) {
        double x8, x4, x2;
        x2 = x * x;
        x4 = x2 * x2;
        x8 = x4 * x4;
        /* evaluate polynomial using a mix of Estrin's and Horner's scheme */
        return (((4.5334220547132049e-2 * x2 - 1.1226216762576600e-2) * x4
                + (2.6334281471361822e-2 * x2 + 2.0596336163223834e-2)) * x8
                + (3.0582043602875735e-2 * x2 + 4.4630538556294605e-2) * x4
                + (7.5000364034134126e-2 * x2 + 1.6666666300567365e-1)) * x2 * x + x;
    }
}

Related

  1. asin(float value)
  2. asin(float x)
  3. asin(int f)
  4. asin(Integer a)
  5. asin(Number x)
  6. asinScaled(double value)