Jump to content

Need to figure out variable Y & structure to define in PHP


n1concepts
Go to solution Solved by n1concepts,

Recommended Posts

Hi,

 

I need some help to define a math equation, in PHP, that will determine the variable $y.

Example: (1.60 multiplied by  718) then divided by 3550 equals 0.328 (rounded up)

 

Equation: (1.60 * 718) / 3500 = 0.328

----

 

What i need to do is define a PHP formatted equation that will pass in the following:

 

$p = 1.60;

$c = 3500;

$e = 0.328

 

Which will then determine $y (which in the above example is 718)?

Note: should either of the other three variables change ($p, $c, $e), then $y value will dynamically adjust accordingly.

------

 

Any insight on how this can be defined in PHP appreciation - thx!

Note: I know the format - already stated - will work in PHP; I need to figure out how to render $y based on other known variables ($p, $c, $e)

 

That's my issue and my calucations - even knowing 718 is the answer based on those plugged in values - is unknown.

 

thx!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.