aboutsummaryrefslogtreecommitdiff
path: root/std/math/complex/log.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/math/complex/log.zig')
-rw-r--r--std/math/complex/log.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/std/math/complex/log.zig b/std/math/complex/log.zig
index 2b43a6970f..762b4fde9a 100644
--- a/std/math/complex/log.zig
+++ b/std/math/complex/log.zig
@@ -4,6 +4,7 @@ const math = std.math;
const cmath = math.complex;
const Complex = cmath.Complex;
+/// Returns the natural logarithm of z.
pub fn log(z: var) Complex(@typeOf(z.re)) {
const T = @typeOf(z.re);
const r = cmath.abs(z);