diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-01 12:07:41 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-01 12:07:41 +0100 |
| commit | dc303cde21d23b1b57a4cb4f667b2cfbe2a39ffd (patch) | |
| tree | 9ea225d705d2123b818415f6306373eae9d3cd0c /core/math.odin | |
| parent | a75ccb6fbc529d2fee00f9b456ca7c0c830548ee (diff) | |
Complex numbers: complex64 complex128
Diffstat (limited to 'core/math.odin')
| -rw-r--r-- | core/math.odin | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/math.odin b/core/math.odin index 6ba540ac0..15a445831 100644 --- a/core/math.odin +++ b/core/math.odin @@ -27,14 +27,14 @@ Mat4 :: [4]Vec4; sqrt :: proc(x: f32) -> f32 #foreign __llvm_core "llvm.sqrt.f32"; sqrt :: proc(x: f64) -> f64 #foreign __llvm_core "llvm.sqrt.f64"; -sin :: proc(x: f32) -> f32 #foreign __llvm_core "llvm.sin.f32"; -sin :: proc(x: f64) -> f64 #foreign __llvm_core "llvm.sin.f64"; +sin :: proc(θ: f32) -> f32 #foreign __llvm_core "llvm.sin.f32"; +sin :: proc(θ: f64) -> f64 #foreign __llvm_core "llvm.sin.f64"; -cos :: proc(x: f32) -> f32 #foreign __llvm_core "llvm.cos.f32"; -cos :: proc(x: f64) -> f64 #foreign __llvm_core "llvm.cos.f64"; +cos :: proc(θ: f32) -> f32 #foreign __llvm_core "llvm.cos.f32"; +cos :: proc(θ: f64) -> f64 #foreign __llvm_core "llvm.cos.f64"; -tan :: proc(x: f32) -> f32 #inline { return sin(x)/cos(x); } -tan :: proc(x: f64) -> f64 #inline { return sin(x)/cos(x); } +tan :: proc(θ: f32) -> f32 #inline { return sin(θ)/cos(θ); } +tan :: proc(θ: f64) -> f64 #inline { return sin(θ)/cos(θ); } pow :: proc(x, power: f32) -> f32 #foreign __llvm_core "llvm.pow.f32"; pow :: proc(x, power: f64) -> f64 #foreign __llvm_core "llvm.pow.f64"; |