freeCodeCamp/guide/chinese/mathematics/even-and-odd-functions/index.md

29 lines
795 B
Markdown
Raw Normal View History

---
title: Even and Odd Functions
localeTitle: 偶数和奇数函数
---
## 偶数和奇数函数
### 一般功能
函数`f`是从集合A输入/域到集合B输出/共域)的映射。它可以是基于许多分类的不同类型。
### 甚至功能:
当且仅当`f(x) = f(-x)`函数`f(x)`才是偶数。
偶函数的示例将是`f(x) = x^2`因为`f(2) = 2^2 = 4 = (-2)^2 = f(-2)` 。
三角函数 - `cos(x)`和`sec(x)`也是偶函数
### 奇怪的功能
当且仅当`f(x) = -f(-x)`函数`f(x)`才是偶数
奇函数的一个例子是`f(x) = x^3`因为`f(2) = 2^3 = 8 = -(-8) = -(-2)^3 = -f(-2)` 。
三角函数 - `sin(x)` `tan(x)` `cot(x)`和`cosec(x)`也是偶函数
#### 更多信息:
* [维基百科](https://en.wikipedia.org/wiki/Even_and_odd_functions)