# math functions

{% hint style="info" %}
看來只要 <mark style="color:red;">**import Foundation**</mark>，就可以使用「📗 參考」中提及的**數學函數**。
{% endhint %}

{% tabs %}
{% tab title="三角" %}

* [atan2(y, x)](https://www.alphacodingskills.com/swift/notes/swift-math-atan2.php)
  {% endtab %}

{% tab title="📗 參考" %}

* [ ] AlphaCodingSkills ⟩ [Swift Math Module](https://www.alphacodingskills.com/swift/swift-math-functions.php) ⭐️
* [ ] ICTdemy ⟩ [Lesson 11 - Mathematical functions in Swift](https://www.ictdemy.com/swift/basics/mathematical-functions-in-swift)
  {% endtab %}

{% tab title="📘 手冊" %}

* Swift ⟩ [Numbers and Basic Values](https://developer.apple.com/documentation/swift/swift_standard_library/numbers_and_basic_values) ⟩
  * [Global Numeric Functions](https://developer.apple.com/documentation/swift/swift_standard_library/numbers_and_basic_values/global_numeric_functions) - min(), max(), abs().
    {% endtab %}

{% tab title="🗣 討論" %}

* [Exponentiation operator in Swift](https://stackoverflow.com/questions/24065801/exponentiation-operator-in-swift)
* [Mathematical functions in Swift](https://stackoverflow.com/questions/24012511/mathematical-functions-in-swift)
  {% endtab %}
  {% endtabs %}
