This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project. See the Kawa home page for more information.
Hi Per,
I just discovered the quantities in Kawa.
It's great, and I'll surely make use of it.
However, a simple example gave me an error:
#|kawa:1|# (/ 1m 1s)
1m1s-1
#|kawa:2|# (+ 1m1s-1 1m1s-1)
2m1s-1
#|kawa:3|# (+ 1m1s-1 (/ 1m 1s))
java.lang.ArithmeticException: units mis-match
at gnu.math.Quantity.add(Compiled Code)
at gnu.math.Quantity.add(Compiled Code)
at gnu.math.Numeric.add(Compiled Code)
at kawa.standard.plus_oper.applyN(Compiled Code)
at kawa.lang.ApplyExp.eval(Compiled Code)
at kawa.lang.ModuleExp.eval_module(Compiled Code)
at kawa.Shell.run(Compiled Code)
at kawa.Shell.run(Compiled Code)
at kawa.repl.main(Compiled Code)
Peter