Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.java.* > Newsgroup comp.lang.java.programmer

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2012, 04:28 AM
xvictoryeohx@gmail.com
Guest
 
Posts: n/a
Default What is the command to do a power of a value

C=L(1+i/100)power of n

i am stuck here
for example square root is Math.sqrt(x)
How do i do Power of a value?
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 07-30-2012, 04:31 AM
glen herrmannsfeldt
Guest
 
Posts: n/a
Default Re: What is the command to do a power of a value

xvictoryeohx@gmail.com wrote:
> C=L(1+i/100)power of n


> i am stuck here
> for example square root is Math.sqrt(x)
> How do i do Power of a value?


Math.pow().

-- glen
Reply With Quote
  #3 (permalink)  
Old 07-30-2012, 04:57 AM
xvictoryeohx@gmail.com
Guest
 
Posts: n/a
Default Re: What is the command to do a power of a value

On Monday, July 30, 2012 12:31:35 PM UTC+8, glen herrmannsfeldt wrote:
> xvictoryeohx@gmail.com wrote:
>
> > C=L(1+i/100)power of n

>
>
>
> > i am stuck here

>
> > for example square root is Math.sqrt(x)

>
> > How do i do Power of a value?

>
>
>
> Math.pow().
>
>
>
> -- glen


Thanks!
Reply With Quote
  #4 (permalink)  
Old 07-30-2012, 09:22 AM
Roedy Green
Guest
 
Posts: n/a
Default Re: What is the command to do a power of a value

On Sun, 29 Jul 2012 21:28:11 -0700 (PDT), xvictoryeohx@gmail.com
wrote, quoted or indirectly quoted someone who said :

>C=L(1+i/100)power of n
>
>i am stuck here
>for example square root is Math.sqrt(x)
>How do i do Power of a value?


see http://mindprod.com/jgloss/power.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
The greatest shortcoming of the human race is our inability to understand the exponential function.
~ Dr. Albert A. Bartlett (born: 1923-03-21 age: 89)
http://www.youtube.com/watch?v=F-QA2rkpBSY


Reply With Quote
  #5 (permalink)  
Old 07-30-2012, 09:44 AM
bugbear
Guest
 
Posts: n/a
Default Re: What is the command to do a power of a value

xvictoryeohx@gmail.com wrote:
> C=L(1+i/100)power of n
>
> i am stuck here
> for example square root is Math.sqrt(x)
> How do i do Power of a value?


I have a dim memory from Numerical Analysis
that the "obvious" way to evaluate that is
inaccurate for small "i" and large "n".

BugBear
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 07:51 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.