Jump to content
  • Advertisement

Archived

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

KuztomX

Need help rearranging equation

This topic is 5996 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 stumped on this. I cant seem to properly rearrange this equation to solve for n. Can anyone help? Heres the equation: z + (na + .5n(n - 1)d) = c This equation uses five variables : z, a, b, c, n Any help is much appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Looks to be a basic quadratic equation so put it into the format of
ax^2+bx+c = 0 and use the general equation for solving quadratics.


Just to start you off:

  
z + (na+0.5n(n-1)d) = c
na + 0.5dn^2 - 0.5nd + z-c = 0
0.5dn^2 + (a - 0.5d)n + z-c = 0
...


Share this post


Link to post
Share on other sites
Thanx alot! That definitely put me in the right direction. I just applied that to the quadratic formula and it worked just fine. Thanx again.

Share this post


Link to post
Share on other sites

  • 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!