mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-12 17:40:52 +01:00
Added gamma function.
This commit is contained in:
parent
2119864a45
commit
9ab0abf1b5
@ -46,6 +46,8 @@ pub const UNARY_FUNCS: phf::Map<&'static str, UnaryFuncInfo> = phf::phf_map! {
|
||||
"exp" => UnaryFuncInfo(exp, Other),
|
||||
"floor" => UnaryFuncInfo(floor, Other),
|
||||
"frac" => UnaryFuncInfo(frac, Other),
|
||||
"gamma" => UnaryFuncInfo(gamma, Other),
|
||||
"Γ" => UnaryFuncInfo(gamma, Other),
|
||||
"log" => UnaryFuncInfo(log, Other),
|
||||
"ln" => UnaryFuncInfo(ln, Other),
|
||||
"round" => UnaryFuncInfo(round, Other),
|
||||
@ -243,6 +245,10 @@ mod funcs {
|
||||
x.fract()
|
||||
}
|
||||
|
||||
pub fn gamma(x: Float) -> Float {
|
||||
x.gamma()
|
||||
}
|
||||
|
||||
pub fn hyp(x: Float, y: Float) -> Float {
|
||||
x.hypot(&y)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user