How do I translate X to the 25th power into something php understands? -


i trying figure out how code 10 25th power times variable. have tried x*(x^25) not return correct value. if matters, formula find inflation, actual formula i'm using is:

x*(1.01^25) 
  • x equal amount of money being calculated
  • 1.01 equal 1% inflation
  • 25 equal number of years, needs 25 in case

just use pow() function:

$x = 10;     echo pow($x, 25); //(base, exponent) 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -