BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 05-13-2009, 09:11 PM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2008
Model: none
Carrier: none
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default natural logarithmic functions on BB - help

Please Login to Remove!

I am trying to reproduce the following javascript equation on blackberry Java.
Unfortunately JDE Java does not appear to have a natural logarithmic function. I have been working with Real - Java floating point library for MIDP devices, but can't quite figure it out. Also not sure if this is best solution. Please advise...

PHP Code:
$z = -0.004444058 - ($f1 0.056239137) + ($d2 0.724267143);

$p =1001/(1+exp(-$z));
$p round($p,1); 
see www .
Old 05-14-2009, 08:07 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

How about MathUtilities.log() ??

This is in the BB API.

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.