Jump to content
  • Advertisement
Sign in to follow this  
Butabee

Reversing an equation

This topic is 2360 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm not real good at math so I'm wondering if someone here could help me.

How would I reverse this?:

a = (last a * b / constant) + constant;

Thanks

Share this post


Link to post
Share on other sites
Advertisement
Reverse it for what? last, or b?

You just go:

[s]a = (last a * b / constant) + constant
a - constant = last * a * b / constant
(a - constant) * constant = last * a * b
((a - constant) * constant) / a = last * b

At this point you either divide both sides by last or b, depending on what you wish to solve for.[/s]

*scratch that I misread* Edited by Bacterius

Share this post


Link to post
Share on other sites
Oh my bad I misread it. Then you get:

a = (last a * b / constant) + constant;

a - constant = last a * b / constant

(a - constant) * constant = last a * b

last a = ((a - constant) * constant) / b

Share this post


Link to post
Share on other sites
Here's a pretty good tutorial on how to get to those solutions:
http://www.khanacademy.org/math/algebra/solving-linear-equations/v/rearrange-formulas-to-isolate-specific-variables

Share this post


Link to post
Share on other sites
No joke... you should snag an Algebra for Dummies book. It's such a very useful thing to know! There are also AP study guides for algebra, which may be a little more in-depth. I usually bought my math books at the used book store. $5 for a $30 book. That way I get to have multiple pre-owned references for the price of one new reference! Cheap, effective.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!