Jump to content

Convert simple math formual to php code.


behnampmdg3

Recommended Posts

Hello

I have simple math formula I wanna convert to PHP, but for some weird reason I can't!

(X*X)*(3X)=1200

Its should be easy to calculate it on paper but how can I convert this to PHP? Maybe it's too simple and my retardness has poped!

Maybe something like?

pow($y, 3)= 1200/3

Still not sure how to get thew reply from that.

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/295894-convert-simple-math-formual-to-php-code/
Share on other sites

Just because it uses the same = symbol doesn't mean it works the same way.

Take the number 1200, divide by 3, then assign the result to the result of the function call pow($y, 3)

That does not make sense.

 

Rewrite the expression in terms of X alone. Meaning you have to end up at X = ....

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.