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

## [](#cos1)cos(angle: Number): Number

ラジアンの特定の数値から角度の三角法の余弦を返します。

_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>

### [](#例)例

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

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

```DataWeave
%dw 2.0
import * from dw::util::Math
output application/json
---
{
  "cos0": cos(0),
  "cos13": cos(0.13),
  "cos-1": cos(-1)
}
```

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

```Json
{
  "cos0": 1.0,
  "cos13": 0.9915618937147881,
  "cos-1": 0.5403023058681398
}
```