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

HP 41941B IMPEDANCE PROBE KIT COMPLETE, OPTION 350, 10KHZ-100MHZ,
$895.0
HP 41941B IMPEDANCE PROBE KIT COMPLETE, OPTION 350, 10KHZ-100MHZ, picture50pcs 330uF 10V NCC Nippon LXV 8x11.5mm 10V330uF Low impedance Capacitor
$4.69
50pcs 330uF 10V NCC Nippon LXV 8x11.5mm 10V330uF Low impedance Capacitor picture50pcs 10V 470uF 10V KOSHIN KJH 8x11.5mm Low Impedance Capacitor
$4.49
50pcs 10V 470uF 10V KOSHIN KJH 8x11.5mm Low Impedance Capacitor pictureElectric Scientific Industries Impedance Bridge 250DE
$399.99
Electric Scientific Industries Impedance Bridge 250DE picturePERFECT HP AGILENT 41941-61001 IMPEDANCE PROBE KIT
$999.99
PERFECT HP AGILENT 41941-61001 IMPEDANCE PROBE KIT picture






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