Jump to content
  • Advertisement
Sign in to follow this  
ErUs

small math question

This topic is 4593 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

how can i turn a/x into a power of x or a power of a? for example: 48 -- How can i turn this into a power of X or a power of 48? X

Share this post


Link to post
Share on other sites
Advertisement
Sounds like you want log. For example, log(a)/log(x) = y, where x^y = a.

So, for example, log(49)/log(7) = 2. As 7^2 = 49.

Share this post


Link to post
Share on other sites
I don't quite understand--does the whole expression have to be a power-of-something? In a bizzare roundabout way,

48 / x
= xlogx(48 / x)
= xlogx48 - 1

More practically,

48 / x = 48 * x-1

*shrugs*

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!