* Output error when ls into a file without permission

* math sqrt

* added test to check fails when ls into prohibited dir

* fix lint

* math sqrt with tests and doc

* trigger wasm build

* Update filesystem_shell.rs

* always forgetting the linting

* fix clippy complaining

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
This commit is contained in:
Luccas Mateus
2021-04-01 18:26:05 -03:00
committed by GitHub
parent b13202bbfc
commit 0fe6c7c558
7 changed files with 122 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Currently the following functions are implemented:
* `math min`: Finds the minimum within a list of numbers or tables
* `math mode`: Finds the most frequent element(s) within a list of numbers or tables
* `math round`: Applies the round function to a list of numbers
* `math sqrt`: Applies the square root function to a list of numbers
* `math stddev`: Finds the standard deviation of a list of numbers or tables
* `math sum`: Finds the sum of a list of numbers or tables
* `math product`: Finds the product of a list of numbers or tables
@ -148,6 +149,15 @@ To get the average of the file sizes in a directory, simply pipe the size column
───┴────
```
```shell
> echo [4 16 0.25] | math sqrt
───┬────
02
14
2 │ 0.5
───┴────
```
```shell
> echo [1 -2 -3.0] | math abs
───┬────────