Go to Post I have never gone to a FIRST Robotics competition and not had fun. - mathking [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-03-2014, 11:17
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Pow and other functions are missing from Java ME

Hi all,

Recently, I have discovered that the Java ME VM that we are provided with to run robots with has a severely limited math library. In fact, comparing it to the fdlibm math functions available in C, it is quite pathetic. I was looking to change some C code for the function __ieee754_pow into Java code but ran into some issues.

I have found a math utility class written by CodeNameOne, a company that specializes in making it easy to write one program for many mobile platforms. It contains all of the fdlibm math functions which is extremely useful and adds useful functionality to a not-so-useful VM.

You can browse the source here.

Hope this helps somebody!

Alex Brinister

Last edited by AlexBrinister : 01-03-2014 at 11:25. Reason: Removed example case because I'm not sure anymore...
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi