Go to Post "You know you're a robotics kid when you sit on Chief Delphi and hit refresh over and over again waiting for new pictures and videos of other teams" - pwnageNick [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-08-2011, 16:20
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
java help exponent

hey, i am relatively new to java, and i am looking for an exponent function or operator. my research has revealed that there is no operator, but the Math.pow();
function would work, but it seems to be missing from Math. then i realized that FRC has custom math class lacking it. where can it be found?

ty in advance.
__________________
"you can build a perfect machine out of imperfect parts" -Urza

Last edited by techkid86 : 12-08-2011 at 16:58.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-08-2011, 17:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: java help exponent

Quote:
Originally Posted by techkid86 View Post
hey, i am relatively new to java, and i am looking for an exponent function or operator. my research has revealed that there is no operator
ea = exp(a)

ba = exp(a*ln(b))




Last edited by Ether : 12-08-2011 at 17:24.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-08-2011, 17:23
Jared Russell's Avatar
Jared Russell Jared Russell is online now
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: java help exponent

The Squawk JVM provides many of the J2SE math functions in the com.sun.squawk.util.MathUtils class. You will find exp() and pow() functions there.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-08-2011, 17:57
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Re: java help exponent

thank you very much. that was the last bit of information i needed for a teleop. lol. i have been ranting about that all day. ty very much.
__________________
"you can build a perfect machine out of imperfect parts" -Urza
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -5. The time now is 22:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi