Example usage for org.apache.commons.math4.util FastMath asin

List of usage examples for org.apache.commons.math4.util FastMath asin

Introduction

In this page you can find the example usage for org.apache.commons.math4.util FastMath asin.

Prototype

public static double asin(double x) 

Source Link

Document

Compute the arc sine of a number.

Usage

From source file:com.ericbarnhill.arrayMath.ArrayMath.java

/**
  * In-place element-wise {@code asin} of a {@code double[]}. Returns reference to first passed array.
  */*from w  w w.  j a v a 2 s . co  m*/
  * @param f {@code double[]} array.
  * @return  {@code double[]} array.
  * 
  * @since 0.1
  */
public static double[] asin(double[] f) {
    final int fi = f.length;
    for (int i = 0; i < fi; i++) {
        f[i] = FastMath.asin(f[i]);
    }
    return f;
}