From e7347aee85f784b44268fdd579380d39da9caf7b Mon Sep 17 00:00:00 2001 From: Kenshi Takayama Date: Fri, 2 Feb 2024 16:11:55 +0900 Subject: [PATCH] Update math_module.md Corrected result of complex division --- docs/lang/articles/math/math_module.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lang/articles/math/math_module.md b/docs/lang/articles/math/math_module.md index a638f695811ce..37fdd6dea3cb8 100644 --- a/docs/lang/articles/math/math_module.md +++ b/docs/lang/articles/math/math_module.md @@ -166,7 +166,7 @@ def test(): x = tm.vec2(1, 1) # complex number 1+1j y = tm.vec2(0, 1) # complex number 1j z = tm.cmul(x, y) # vec2(-1, 1) = -1+1j - w = tm.cdiv(x, y) # vec2(2, 0) = 2+0j + w = tm.cdiv(x, y) # vec2(1, -1) = 1-1j ``` You can also compute the power, logarithm, and exponential of a complex number: