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

Factory OEM Dell Power Supply DC Output 160W Model #PS-5161-1D1
$5.0
Factory OEM Dell Power Supply DC Output 160W Model #PS-5161-1D1 pictureGenuine Dell 220W DA-2 Family 12V 18A AC/DC Power Adapter F220P-00 C764N OEM
$17.0
Genuine Dell 220W DA-2 Family 12V 18A AC/DC Power Adapter F220P-00 C764N OEM pictureGenuine OEM Dell 3200MP Osram Replacement Lamp & Housing 310-2328
$79.99
Genuine OEM Dell 3200MP Osram Replacement Lamp & Housing  310-2328 pictureGenuine Dell OEM DVD-R/RW Optical Drive DVD8801/96 Philips Black Used
$12.0
Genuine Dell OEM DVD-R/RW Optical Drive DVD8801/96 Philips Black Used pictureOEM NEW Dell Vostro 430 Desktop Motherboard System Board MS-7466 54KM3 054KM3
$69.95
OEM NEW Dell Vostro 430 Desktop Motherboard System Board MS-7466 54KM3 054KM3 picture






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