Skip to content

Commit

Permalink
[Doc] Update math_module.md (#8471)
Browse files Browse the repository at this point in the history
Corrected result of complex division

Issue: #

### Brief Summary

copilot:summary

### Walkthrough

copilot:walkthrough
  • Loading branch information
kenshi84 authored Feb 18, 2024
1 parent 3bef683 commit 70db014
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 70db014

Please sign in to comment.