Skip to content

Commit

Permalink
Update math_module.md
Browse files Browse the repository at this point in the history
Corrected result of complex division
  • Loading branch information
kenshi84 committed Feb 2, 2024
1 parent 5a99461 commit e7347ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/lang/articles/math/math_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e7347ae

Please sign in to comment.