mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
Update math_functions.nu
This commit is contained in:
parent
ee5b1b654b
commit
4b4bd822c6
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ def aroot [ scaler: number, denominator: number, num: number ] {
|
||||||
$num ** ($scaler / $denominator) | math round
|
$num ** ($scaler / $denominator) | math round
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#discriminant of a quadratic equation
|
||||||
|
def delta [ a: number, b: number, c: number ] {
|
||||||
|
( $b | math sqrt ) - ( 4 * $a * $c)
|
||||||
|
}
|
||||||
|
|
||||||
#TODO:
|
#TODO:
|
||||||
# -sin, cos, tan table for 0-90 degrees
|
# -sin, cos, tan table for 0-90 degrees
|
||||||
# -radians to degrees and reversed
|
# -radians to degrees and reversed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue