chore(learn): Applied MDX format to Chinese curriculum files (#40462)

This commit is contained in:
Randell Dawson
2020-12-16 00:37:30 -07:00
committed by GitHub
parent 873fce02a2
commit 9ce4a02a41
1665 changed files with 58741 additions and 88042 deletions

View File

@ -1,62 +1,27 @@
---
id: 594da033de4190850b893874
title: 平均值 - 均方根
challengeType: 5
videoUrl: ''
title: 平均值 - 均方根
---
## Description
<section id="description"><p>计算数字1到10包括1和10<a href="https://en.wikipedia.org/wiki/Root mean square" title="wp均方根">均方根</a></p><p>均方根也以其首字母RMS或rms和二次均值来表示。 </p><p> RMS计算为数字平方的平均值平方根 </p><p> <big>$$ x _ {\ mathrm {rms}} = \ sqrt {{{x_1} ^ 2 + {x_2} ^ 2 + \ cdots + {x_n} ^ 2} \ over n}。 $$</big> </p></section>
# --description--
## Instructions
<section id="instructions">
</section>
<p>计算数字1到10包括1和10<a href='https://en.wikipedia.org/wiki/Root mean square' title='wp均方根'>均方根</a></p><p>均方根也以其首字母RMS或rms和二次均值来表示。 </p><p> RMS计算为数字平方的平均值平方根 </p><p> <big>$$ x _ {\ mathrm {rms}} = \ sqrt {{{x_1} ^ 2 + {x_2} ^ 2 + \ cdots + {x_n} ^ 2} \ over n}。 $$</big> </p>
## Tests
<section id='tests'>
# --hints--
```yml
tests:
- text: <code>rms</code>是一个功能。
testString: assert(typeof rms === 'function');
- text: '<code>rms([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])</code>应等于<code>6.2048368229954285</code> 。'
testString: assert.equal(rms(arr1), answer1);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
`rms`是一个功能。
```js
function rms (arr) {
// Good luck!
}
assert(typeof rms === 'function');
```
</div>
### After Test
<div id='js-teardown'>
`rms([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])`应等于`6.2048368229954285`
```js
console.info('after the test');
assert.equal(rms(arr1), answer1);
```
</div>
# --solutions--
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>