Jump to content
  • Advertisement
Sign in to follow this  
wildbunny

y=log(x+1) shaped curve where x=infinity -> y=1

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

Hi guys,

I can't think of the way to do this atm (brain freeze)... :)

I need a curve shaped like y=log(x+1) where infinity in x maps to 1 in y.

Anyone know how?

Cheers, Paul.

Share this post


Link to post
Share on other sites
Advertisement
Which specifications does your function have?

Perhaps this will satisfy your needs.:

y=1 - 1/(x+1)

This function is 0 for x=0 and 1 for x=infinity

It is strictly monotonic increasing just as the logarithm.
If you need something with a log-Function you have to check the L'Hospital rule or sth.

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!