

Amazon Timestream for LiveAnalytics に類似した機能をご希望の場合は Amazon Timestream for InfluxDB をご検討ください。リアルタイム分析に適した、シンプルなデータインジェストと 1 桁ミリ秒のクエリ応答時間を特徴としています。詳細については、[こちら](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)を参照してください。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 数学関数
<a name="mathematical-functions"></a>

Timestream for LiveAnalytics は、次の数学関数をサポートしています。


| 関数 | 出力データ型 | 説明 | 
| --- | --- | --- | 
| abs(x) | [入力と同じ] | x の絶対値を返します。 | 
| cbrt(x) | double | x の立方根を返します。 | 
| ceiling(x) または ceil(x) | [入力と同じ] | 最も近い整数に切り上げられた x を返します。 | 
| degrees(x) | double | ラジアン単位の角度 x を度に変換します。 | 
| e() | double | 定数のオイラー数値を返します。 | 
| exp(x) | double | オイラー数の x 乗値を返します。 | 
| floor(x) | [入力と同じ] | 最も近い整数に切り下げられた x を返します。 | 
| from\_base(string,radix) | bigint | 基数の数値として解釈される文字列の値を返します。 | 
| ln(x) | double | x の自然対数を返します。 | 
| log2(x) | double | 2 を底とする x の対数を返します。 | 
| log10(x) | double | 10 を底とする x の対数を返します。 | 
| mod(n,m)  | [入力と同じ] | n のモジュロ (剰余) を m で割った値を返します。 | 
| pi()  | double | 定数 Pi を返します。 | 
| pow(x, p) または power(x, p) | double | x の p 乗値を返します。 | 
| radians(x) | double | 度単位の角度 x をラジアンに変換します。 | 
| rand() または random() | double | 0.0 1.0 の範囲の擬似ランダム値を返します。 | 
| random(n) | [入力と同じ] | 0～n の擬似乱数を返します (両端を除く)。 | 
| round(x) | [入力と同じ] | 最も近い整数に丸められた x を返します。 | 
| round(x,d) | [入力と同じ] | 少数第 d 位に丸めた x を返します。 | 
| sign(x) | [入力と同じ] | x の符号関数を返します。つまり、次のようになります。[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/timestream/latest/developerguide/mathematical-functions.html)<br />double の引数の場合、関数はさらに以下を返します。[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/timestream/latest/developerguide/mathematical-functions.html) | 
| sqrt(x)  | double | x の平方根を返します。 | 
| to\_base(x, radix)  | varchar | x の基数表現を返します。 | 
| truncate(x)  | double | 小数点以下の桁を切り捨てて、x を整数に四捨五入して返します。 | 
| acos(x) | double | x のアークコサイン (逆余弦) を返します。 | 
| asin(x)  | double | x のアークサイン (逆正弦) を返します。 | 
| atan(x)  | double | x のアークタンジェント (逆正接) を返します。 | 
| atan2(y, x) | double | y/x のアークタンジェント (逆正接) を返します。 | 
| cos(x) | double | x のコサイン (余弦) を返します。 | 
| cosh(x) | double | x のハイパーボリックコサイン (双曲線余弦) を返します。 | 
| sin(x)  | double | x のサイン (正弦) を返します。 | 
| tan(x) | double | x のタンジェント (正接) を返します。 | 
| tanh(x) | double | x のハイパーボリックタンジェント (双曲線正接) を返します。 | 
| infinity() | double | 正の無限大を表す定数を返します。 | 
| is\_finite(x) | boolean | x が有限かどうかを判断します。 | 
| is\_infinite(x) | boolean | x が無限であるかどうかを判断します。 | 
| is\_nan(x) | boolean | x が非数かどうかを判断します。 | 
| nan() | double | 非数を表す定数を返します。 | 