chore(i18n,learn): processed translations (#45068)

This commit is contained in:
camperbot
2022-02-10 23:37:28 +05:30
committed by GitHub
parent 5f06b7805c
commit 1957ec6cdb
6 changed files with 91 additions and 91 deletions

View File

@ -1,6 +1,6 @@
---
id: 599c333915e0ea32d04d4bec
title: Element-wise operations
title: Implementare operazioni sulle matrici
challengeType: 5
forumTopicId: 302252
dashedName: element-wise-operations
@ -8,29 +8,29 @@ dashedName: element-wise-operations
# --description--
Implement basic element-wise matrix-matrix and scalar-matrix operations.
Implementa operazioni matrice-matrice e scalare-matrice.
**Implement:**
**Implementa:**
<ul>
<li>addition</li>
<li>subtraction</li>
<li>multiplication</li>
<li>division</li>
<li>exponentiation</li>
<li>addizione (add)</li>
<li>sottrazione (sub)</li>
<li>moltiplicazione (mult)</li>
<li>divisione (div)</li>
<li>esponenziazione (exp)</li>
</ul>
The first parameter will be the operation to be performed, for example, "m_add" for matrix addition and "s_add" for scalar addition. The second and third parameters will be the matrices on which the operations are to be performed.
Il primo parametro sarà l'operazione da eseguire, per esempio, "m_add" per addizione matriciale e "s_add" per addizione scalare. Il secondo e terzo paramentro saranno le matrici su cui fare le operazioni.
# --hints--
`operation` should be a function.
`operation` dovrebbe essere una funzione.
```js
assert(typeof operation === 'function');
```
`operation("m_add",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[2,4],[6,8]]`.
`operation("m_add",[[1,2],[3,4]],[[1,2],[3,4]])` dovrebbe restituire `[[2,4],[6,8]]`.
```js
assert.deepEqual(
@ -52,7 +52,7 @@ assert.deepEqual(
);
```
`operation("s_add",[[1,2],[3,4]],2)` should return `[[3,4],[5,6]]`.
`operation("s_add",[[1,2],[3,4]],2)` dovrebbe restituire `[[3,4],[5,6]]`.
```js
assert.deepEqual(
@ -71,7 +71,7 @@ assert.deepEqual(
);
```
`operation("m_sub",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[0,0],[0,0]]`.
`operation("m_sub",[[1,2],[3,4]],[[1,2],[3,4]])` dovrebbe restituire `[[0,0],[0,0]]`.
```js
assert.deepEqual(
@ -93,7 +93,7 @@ assert.deepEqual(
);
```
`operation("m_mult",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[1,4],[9,16]]`.
`operation("m_mult",[[1,2],[3,4]],[[1,2],[3,4]])` dovrebbe restituire `[[1,4],[9,16]]`.
```js
assert.deepEqual(
@ -115,7 +115,7 @@ assert.deepEqual(
);
```
`operation("m_div",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[1,1],[1,1]]`.
`operation("m_div",[[1,2],[3,4]],[[1,2],[3,4]])` dovrebbe restituire `[[1,1],[1,1]]`.
```js
assert.deepEqual(
@ -137,7 +137,7 @@ assert.deepEqual(
);
```
`operation("m_exp",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[1,4],[27,256]]`.
`operation("m_exp",[[1,2],[3,4]],[[1,2],[3,4]])` dovrebbe restituire `[[1,4],[27,256]]`.
```js
assert.deepEqual(
@ -159,7 +159,7 @@ assert.deepEqual(
);
```
`operation("m_add",[[1,2,3,4],[5,6,7,8]],[[9,10,11,12],[13,14,15,16]])` should return `[[10,12,14,16],[18,20,22,24]]`.
`operation("m_add",[[1,2,3,4],[5,6,7,8]],[[9,10,11,12],[13,14,15,16]])` dovrebbe restituire `[[10,12,14,16],[18,20,22,24]]`.
```js
assert.deepEqual(