mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Update math_functions.nu
fixed typo, added delta
This commit is contained in:
parent
4b4bd822c6
commit
5d21a57212
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def aroot [ scaler: number, denominator: number, num: number ] {
|
|||
|
||||
#discriminant of a quadratic equation
|
||||
def delta [ a: number, b: number, c: number ] {
|
||||
( $b | math sqrt ) - ( 4 * $a * $c)
|
||||
( $b ** 2 ) - ( 4 * $a * $c)
|
||||
}
|
||||
|
||||
#TODO:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue