aboutsummaryrefslogtreecommitdiff
path: root/std/math/complex/sin.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/math/complex/sin.zig')
-rw-r--r--std/math/complex/sin.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/std/math/complex/sin.zig b/std/math/complex/sin.zig
index 049631f31e..9ddc3a7a80 100644
--- a/std/math/complex/sin.zig
+++ b/std/math/complex/sin.zig
@@ -4,6 +4,7 @@ const math = std.math;
const cmath = math.complex;
const Complex = cmath.Complex;
+/// Returns the sine of z.
pub fn sin(z: var) Complex(@typeOf(z.re)) {
const T = @typeOf(z.re);
const p = Complex(T).new(-z.im, z.re);