leJOS 1.0.0 alpha4 has java.lang.Math

Brian Bagnall has contributed Math.java with
implementations for pow, sqrt, sin, cos, and
tan. The implementation of these methods is
quite code-efficient. A test program that calls
these methods yields a linked binary file of
about 2.4 Kb.

A bug in the way the linker was writing double
constants was fixed before java.lang.Math could
work. Additionally, native method calling was
optimized in alpha 4. Expect about a 30%
performance improvement for certain native


Posted by Jose Solorzano 2012-10-16

Log in to post a comment.