BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-13-2009, 09:11 PM   #1 (permalink)
itp
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
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 . real-java.sourceforge.net/Real.htm
Offline  
Old 05-14-2009, 08:07 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

How about MathUtilities.log() ??

This is in the BB API.
Offline  
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

Tektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4
$4299.99
Tektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4 pictureAgilent VXI-C System E1421B Mainframe with E1406A Command Module & E1411B DMM
$280.0
Agilent VXI-C System E1421B Mainframe with E1406A Command Module & E1411B DMM pictureAMAT 0190-02362 / 0130-02362 003 Mainframe Interlock 1 Relays
$369.0
AMAT  0190-02362 / 0130-02362 003  Mainframe Interlock 1 Relays pictureAMAT 0190-02363 / 0130-02363 001 Mainframe Interlock 2 Relays
$399.0
AMAT  0190-02363 / 0130-02363 001  Mainframe Interlock 2 Relays pictureTektronix 7603 Mainframe Oscilloscope (Parts/Repair)
$199.99
Tektronix 7603 Mainframe Oscilloscope (Parts/Repair) picture






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