---
schema_version: "1"
id: 9b7ce845be7f6df6bb92287569f0e4d5cf4490150734d0681db31fe7eccc1b2d
title: acos
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-math-functions-acos.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-math-functions-acos
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 81f487d3212e8a7df6107e06e73fcf289efe1f8fe233285b1f87842c386ded1d
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# acos

## [](#acos1)acos(angle: Number): Number | NaN

`0.0`​ からパイまでの逆余弦値を返します。

入力の絶対値が ​`1`​ より大きい場合、結果は ​`null`​ になります。

_DataWeave バージョン 2.4.0 で導入されました。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>angle</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>逆余弦値に変換する数値。</p>
</div></div></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、さまざまな入力での ​`acos`​ の動作を示します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::util::Math
output application/json
---
{
  "acos0": acos(0),
  "acos13": acos(0.13),
  "acos-1": acos(-1),
  "acos1": acos(1),
  "acos1.1": acos(1.1)
}
```

#### [](#出力)出力

```Json
{
   "acos0": 1.5707963267948966,
   "acos13": 1.440427347091751,
   "acos-1": 3.141592653589793,
   "acos1": 0.0,
   "acos1.1": null
 }
```