aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-04 16:08:19 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-04 16:08:19 +0200
commit4399e8cb7b9683abdfe8d0e39c8c6b26decd40f7 (patch)
treeec2aed021f688c920585314c430021e08a2f1c94
parent7668d984110d4cab09c2359c23cf760929dbb6e5 (diff)
Change to omega
-rw-r--r--monad.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/monad.go b/monad.go
index 083a3de..4248579 100644
--- a/monad.go
+++ b/monad.go
@@ -9,10 +9,10 @@ var monads = map[rune]Monad{
'รท': reciprocal,
}
-func identity(d complex128) complex128 { return cmplx.Conj(d) }
-func negate(d complex128) complex128 { return -d }
-func direction(d complex128) complex128 { return d / complex(cmplx.Abs(d), 0) }
-func reciprocal(d complex128) complex128 { return 1.0 / d }
+func identity(w complex128) complex128 { return cmplx.Conj(w) }
+func negate(w complex128) complex128 { return -w }
+func direction(w complex128) complex128 { return w / complex(cmplx.Abs(w), 0) }
+func reciprocal(w complex128) complex128 { return 1.0 / w }
var dyads = map[rune]Dyad{
'+': plus,