chore(i8n,learn): processed translations

This commit is contained in:
Crowdin Bot
2021-02-06 04:42:36 +00:00
committed by Mrugesh Mohapatra
parent 15047f2d90
commit e5c44a3ae5
3274 changed files with 172122 additions and 14164 deletions

View File

@ -1,56 +1,58 @@
---
id: 5a23c84252665b21eecc7e76
title: 伽玛功能
title: Gamma function
challengeType: 5
videoUrl: ''
forumTopicId: 302271
dashedName: gamma-function
---
# --description--
实现一个算法(或更多)来计算[Gamma](<https://en.wikipedia.org/wiki/Gamma function>) $ \\ Gamma $)函数(仅在实际字段中)。 Gamma功能可以定义为
Implement one algorithm (or more) to compute the [Gamma](https://en.wikipedia.org/wiki/Gamma function) ($\\Gamma$) function (in the real field only).
$ \\ Gammax= \\ displaystyle \\ int_0 ^ \\ infty t ^ {x-1} e ^ { - t} dt $
The Gamma function can be defined as:
<div style='padding-left: 4em;'><big><big>$\Gamma(x) = \displaystyle\int_0^\infty t^{x-1}e^{-t} dt$</big></big></div>
# --hints--
`gamma`应该是一个功能。
`gamma` should be a function.
```js
assert(typeof gamma == 'function');
```
`gamma("+tests[0]+")`应该返回一个数字。
`gamma(.1)` should return a number.
```js
assert(typeof gamma(0.1) == 'number');
```
`gamma("+tests[0]+")`应该返回`"+results[0]+"`
`gamma(.1)` should return `9.513507698668736`.
```js
assert.equal(round(gamma(0.1)), round(9.513507698668736));
```
`gamma("+tests[1]+")`应该返回`"+results[1]+"`
`gamma(.2)` should return `4.590843711998803`.
```js
assert.equal(round(gamma(0.2)), round(4.590843711998803));
```
`gamma("+tests[2]+")`应该返回`"+results[2]+"`
`gamma(.3)` should return `2.9915689876875904`.
```js
assert.equal(round(gamma(0.3)), round(2.9915689876875904));
```
`gamma("+tests[3]+")`应该返回`"+results[3]+"`
`gamma(.4)` should return `2.218159543757687`.
```js
assert.equal(round(gamma(0.4)), round(2.218159543757687));
```
`gamma("+tests[4]+")`应返回`"+results[4]+"`
`gamma(.5)` should return `1.7724538509055159`.
```js
assert.equal(round(gamma(0.5)), round(1.7724538509055159));