aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/math.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/math.lux')
-rw-r--r--stdlib/source/lux/math.lux8
1 files changed, 3 insertions, 5 deletions
diff --git a/stdlib/source/lux/math.lux b/stdlib/source/lux/math.lux
index 3916622cf..712e2bf70 100644
--- a/stdlib/source/lux/math.lux
+++ b/stdlib/source/lux/math.lux
@@ -1,8 +1,6 @@
(.module: {#.doc "Common mathematical constants and functions."}
[lux #*
- [tool
- [compiler
- ["." host]]]])
+ ["@" target]])
(template [<name> <value> <doc>]
[(def: #export <name>
@@ -15,7 +13,7 @@
[tau +6.28318530717958647692 "The ratio of a circle's circumference to its radius."]
)
-(`` (for {(~~ (static host.old))
+(`` (for {(~~ (static @.old))
(as-is (template [<name> <method>]
[(def: #export (<name> input)
(-> Frac Frac)
@@ -39,7 +37,7 @@
(-> Frac Frac Frac)
("jvm invokestatic:java.lang.Math:pow:double,double" subject param)))
- (~~ (static host.jvm))
+ (~~ (static @.jvm))
(as-is (template: (!double value) (|> value (:coerce (primitive "java.lang.Double")) "jvm object cast"))
(template: (!frac value) (|> value "jvm object cast" (: (primitive "java.lang.Double")) (:coerce Frac)))
(template [<name> <method>]