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.
Closed Thread

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

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