Hello.

There is a formula

enter image description here

How to calculate it in php?

Closed due to the fact that the essence of the question is not clear to the participants of VisioN , Nofate 17 Apr '15 at 11:14 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • sorry for such a question, of course, but what exactly is the problem? - etki
  • one
    Multiplication and exponentiation operations are available in any programming language. Why didn't you go to the documentation and try to write the code yourself? Or do you have any problems / errors in the calculations? If so, show us exactly what you have failed. - VisioN
  • I just do not understand how to paint it in php. - Alexander Sizintsev
  • 2
    Looks like homework. Open php.net/manual/ru/language.operators.arithmetic.php , learn. And then find out what the function of pow does - Evgeny Borisov
  • Eugene, really, that is! I just do not know how it is done in php - everything! Leave your speculations with you! - Alexander Sizintsev

1 answer 1

The solution is:

$x = 100; $y = 3; $h = 2; $out = round($x*(pow(1.8, $h*$y)),2); echo $out; // выводит 3401.22 

Read about the exponentiation here , all actions are standard.