aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-01 22:41:23 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-01 22:41:23 +0100
commit5008e2c88b314156e0388db7f7ed789fb828c7e4 (patch)
treeb9e34773c4bf332c270c8ab20459c732c1539a5b /code
parent90fc9abeae5c580202909a35ccb0dd367a142f99 (diff)
Add Quaternions: quaternion128, quaternion256
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/demo.odin b/code/demo.odin
index f56f82aef..aa75411d8 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -4,8 +4,8 @@
main :: proc() {
- x := 1+2i;
- y := 3-4i;
- x = x*y;
- fmt.printf("%v\n", x);
+ x := 1+2i+3j+4k;
+ y := 3-4i-5j-6k;
+ z := x/y;
+ fmt.println(z, abs(z));
}