Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

Math Functions

Function

Description

double abs(double a)

Returns the absolute value of a double value.

float abs(float a)

Returns the absolute value of a float value.

int abs(int a)

Returns the absolute value of an int value.

long abs(long a)

Returns the absolute value of a long value.

double acos(double a)

Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.

double asin(double a)

Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.

double atan(double a)

Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.

double atan2(double y, double x)

Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).

double cbrt(double a)

Returns the cube root of a double value.

double ceil(double a)

Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.

double copySign(double magnitude, double sign)

Returns the first floating-point argument with the sign of the second floating-point argument.

float copySign(float magnitude, float sign)

Returns the first floating-point argument with the sign of the second floating-point argument.

double cos(double a)

Returns the trigonometric cosine of an angle.

double cosh(double x)

Returns the hyperbolic cosine of a double value.

double exp(double a)

Returns Euler's number e raised to the power of a double value.

double expm1(double x)

Returns ex -1.

double floor(double a)

Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.

int getExponent(double d)

Returns the unbiased exponent used in the representation of a double.

int getExponent(float f)

Returns the unbiased exponent used in the representation of a float.

double hypot(double x, double y)

Returns sqrt(x2 +y2) without intermediate overflow or underflow.

double IEEEremainder(double f1, double f2)

Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard.

double log(double a)

Returns the natural logarithm (base e) of a double value.

double log10(double a)

Returns the base 10 logarithm of a double value.

double log1p(double x)

Returns the natural logarithm of the sum of the argument and 1.

double max(double a, double b)

Returns the greater of two double values.

float max(float a, float b)

Returns the greater of two float values.

int max(int a, int b)

Returns the greater of two int values.

long max(long a, long b)

Returns the greater of two long values.

double min(double a, double b)

Returns the smaller of two double values.

float min(float a, float b)

Returns the smaller of two float values.

int min(int a, int b)

Returns the smaller of two int values.

long min(long a, long b)

Returns the smaller of two long values.

double nextAfter(double start, double dir)

Returns the floating-point number adjacent to the first argument in the direction of the second argument.

float nextAfter(float start, double dir)

Returns the floating-point number adjacent to the first argument in the direction of the second argument.

double nextUp(double d)

Returns the floating-point value adjacent to d in the direction of positive infinity.

float nextUp(float f)

Returns the floating-point value adjacent to f in the direction of positive infinity.

double pow(double a, double b)

Returns the value of the first argument raised to the power of the second argument.

double random()

Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.

double rint(double a)

Returns the double value that is closest in value to the argument and is equal to a mathematical integer.

long round(double a)

Returns the closest long to the argument.

int round(float a)

Returns the closest int to the argument.

double scalb(double d, int scaleFactor)

Return d × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set.

float scalb(float f, int scaleFactor)

Return f × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the float value set

double signum(double d)

Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.

float signum(float f)

Returns the signum function of the argument; zero if the argument is zero, 1.0f if the argument is greater than zero, -1.0f if the argument is less than zero.

double sin(double a)

Returns the trigonometric sine of an angle.

double sinh(double x)

Returns the hyperbolic sine of a double value.

double sqrt(double a)

Returns the correctly rounded positive square root of a double value.

double tan(double a)

Returns the trigonometric tangent of an angle.

double tanh(double x)

Returns the hyperbolic tangent of a double value.

double toDegrees(double angrad)

Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

double toRadians(double angdeg)

Converts an angle measured in degrees to an approximately equivalent angle measured in radians.

double ulp(double d)

Returns the size of an ulp of the argument.

float ulp(float f)

Returns the size of an ulp of the argument.

long factorial(int value)

Returns the factorial of passed value.

Regression functions

Function

Description

linereg(String indicatorCode)

Linear regression

polyreg(2, String indicatorCode)

Quadratic regression

polyreg(3, String indicatorCode)

General polynomial regression

Next Steps

Sv translation
languageja

計算機能

Function機能

Description説明

double abs(double a)

2倍の値の絶対値を戻します。倍の値の絶対値を返却します。

float abs(float a)

浮動値の絶対値を戻します。浮動値の絶対値を返却します。

int abs(int a)

int値の絶対値を戻します。値の絶対値を返却します。

long abs(long a)

ロング値の絶対値を戻します。ロング値の絶対値を返却します。

double acos(double a)

値のコサインの逆関数を戻します。戻された角度は値のコサインの逆関数を返却します。戻された角度は0.0からπまでの範囲です。からπまでの範囲です。

double asin(double a)

値のサインの逆関数を戻します。戻された角度は値のサインの逆関数を返却します。戻された角度は-π/2からπからπ/2までの範囲です。

double atan(double a)

値のタンジェントの逆関数を戻します。戻された角度は値のタンジェントの逆関数を返却します。戻された角度は-π/2からπからπ/2までの範囲です。

double atan2(double y, double x)

直角座標(x, y)から極座標(r, シータ)への変換から角度シータに戻します。への変換から角度シータに返却します。

double cbrt(double a)

2倍値の立方根に戻します。倍値の立方根に返却します。

double ceil(double a)

引数以上で整数である最小(負の無限大に最も近い)2倍値を戻します。倍値を返却します。 

double copySign(double magnitude, double sign)

最初の浮動小数点引数を2番目の浮動小数点引数の印とともに戻します。番目の浮動小数点引数の印とともに返却します。

float copySign(float magnitude, float sign)

最初の浮動小数点引数を2番目の浮動小数点引数の印とともに戻します。番目の浮動小数点引数の印とともに返却します。

double cos(double a)

三角法のコサインの角度を戻します。三角法のコサインの角度を返却します。

double cosh(double x)

2倍値の双曲線のコサインを戻します。倍値の双曲線のコサインを返却します。

double exp(double a)

2倍値になったオイラー数に戻します。倍値になったオイラー数に返却します。

double expm1(double x)

ex -1を戻します。1を返却します。

double floor(double a)

引数以下で整数である最大(正の無限大に最も近い)2倍値を戻します。倍値を返却します。

int getExponent(double d)

2倍表現に使用されている不偏ベキ指数を戻します。倍表現に使用されている不偏ベキ指数を返却します。

int getExponent(float f)

浮動表現に使用されている不偏ベキ指数を戻します。浮動表現に使用されている不偏ベキ指数を返却します。

double hypot(double x, double y)

中間のオーバーフロー・アンダーフローなしで平方根(x2 +y2)を戻します。を返却します。

double IEEEremainder(double f1, double f2)

IEEE 754基準に指示されているような基準に指示されているような2つの引数の維持操作を計算します。

double log(double a)

2倍値の自然対数(base e)を戻します。を返却します。 

double log10(double a)

2倍値の10進法対数を戻します。進法対数を返却します。

double log1p(double x)

引数と1の合計の自然対数を戻します。の合計の自然対数を返却します。

double max(double a, double b)

2つの2倍値の大きい方を戻します。倍値の大きい方を返却します。

float max(float a, float b)

2つの浮動値の大きい方を戻します。つの浮動値の大きい方を返却します。

int max(int a, int b)

2つのint値の大きい方を戻します。値の大きい方を返却します。

long max(long a, long b)

2つのロング値の大きい方を戻します。つのロング値の大きい方を返却します。

double min(double a, double b)

2つの2倍値の小さい方を戻します。倍値の小さい方を返却します。

float min(float a, float b)

2つの浮動値の小さい方を戻します。つの浮動値の小さい方を返却します。

int min(int a, int b)

2つのint値の小さい方を戻します。値の小さい方を返却します。

long min(long a, long b)

2つのロング値の小さい方を戻します。つのロング値の小さい方を返却します。

double nextAfter(double start, double dir)

2番目の引数の方向にある最初の引数の隣にある浮動点数を戻します。番目の引数の方向にある最初の引数の隣にある浮動点数を返却します。

float nextAfter(float start, double dir)

2番目の引数の方向にある最初の引数の隣にある浮動点数を戻します。番目の引数の方向にある最初の引数の隣にある浮動点数を返却します。

double nextUp(double d)

正の無限大の方向のdの隣にある浮動点値を戻します。の隣にある浮動点値を返却します。

float nextUp(float f)

正の無限大の方向のfの隣にある浮動点値を戻します。の隣にある浮動点値を返却します。

double pow(double a, double b)

2番目の引数まで上げられた最初の引数値を戻します。番目の引数まで上げられた最初の引数値を返却します。

double random()

0.0以上1.0より小さい正の符号で2倍値を戻します。倍値を返却します。

double rint(double a)

引数に最も値が近く整数である2倍値を戻します。倍値を返却します。

long round(double a)

引数に最も近いロングを戻します。引数に最も近いロングを返却します。  

int round(float a)

引数に最も近いintを戻します。を返却します。

double scalb(double d, int scaleFactor)

正しく切り上げられた単一の浮動点×2正しく切り上げられた単一の浮動点×2倍値セットのメンバーのように切り上げられたd×2スケールファクターを戻します。スケールファクターを返却します。

float scalb(float f, int scaleFactor)正しく切り上げられた単一の浮動点×フロー値セットのメンバーのように切り上げられたf×2スケールファクターを戻します。

正しく切り上げられた単一の浮動点×フロー値セットのメンバーのように切り上げられたf×2スケールファクターを返却します。

double signum(double d)

引数の符号関数機能を戻します。引数が引数の符号関数機能を返却します。引数が0の場合は00より大きい場合は1.00より小さい場合は-1.0です。

float signum(float f)

引数の符号関数機能を戻します。引数が引数の符号関数機能を返却します。引数が0の場合は00より大きい場合は1.0、00より小さい場合は-1.0です。0です。

double sin(double a)

角度の三角法のサインを戻します。角度の三角法のサインを返却します。

double sinh(double x)

2倍値の双曲線のサインを戻します。倍値の双曲線のサインを返却します。

double sqrt(double a)

正確に切り上げられた2倍値の正の平方根を戻します。倍値の正の平方根を返却します。

double tan(double a)

角度の三角法のタンジェントを戻します。角度の三角法のタンジェントを返却します。

double tanh(double x)

2倍値の双曲線のタンジェントを戻します。倍値の双曲線のタンジェントを返却します。

double toDegrees(double angrad)

弧度で図られた角度を度で図られた角度とおおよそ同等に変換します。

double toRadians(double angdeg)

度で図られた角度を弧度で図られた角度とおおよそ同等に変換します。

double ulp(double d)

引数のulpの大きさを戻します。の大きさを返却します。

float ulp(float f)

引数のulpの大きさを戻します。の大きさを返却します。

long factorial(int value)

パスされた値の階乗を戻します。パスされた値の階乗を返却します。

回帰機能

機能

説明

linereg(String indicatorCode)

線形回帰

polyreg(2, String indicatorCode)

二次回帰

polyreg(3, String indicatorCode)

一般多項回帰

次に

正しく切り上げられた単一の浮動点×フロー値セットのメンバーのように切り上げられたf×2スケールファクターを返却します。