We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a1b0c commit efef5bcCopy full SHA for efef5bc
vlib/math/complex/complex.v
@@ -12,6 +12,7 @@ pub mut:
12
im f64
13
}
14
15
+// complex returns a complex struct with the given `re` and `im`
16
pub fn complex(re f64, im f64) Complex {
17
return Complex{re, im}
18
@@ -30,6 +31,7 @@ pub fn (c Complex) abs() f64 {
30
31
return math.hypot(c.re, c.im)
32
33
34
+// mod returns the modulus value of `c`
35
pub fn (c Complex) mod() f64 {
36
return c.abs()
37
vlib/math/gamma.v
@@ -139,6 +139,7 @@ pub fn log_gamma(x f64) f64 {
139
return y
140
141
142
+// log_gamma_sign returns the natural logarithm and sign (-1 or +1) of Gamma(x)
143
pub fn log_gamma_sign(a f64) (f64, int) {
144
mut x := a
145
ymin := 1.461632144968362245
0 commit comments