I have number x=[0,n], where n>0.
I want to construct a function y=f(x) such that the value increase slowly from 0 and increase very fast when approaching n, and when reach n, y is infinity. What is a good function to model this?
I have number x=[0,n], where n>0. I want to construct a function y=f(x) such
Share
1/(n-x) - 1/nwill work.There are plenty of other functions log, atan, x^(-k),… that goes to infinity at some point.
a^yis another set of functions with fast grows – maybe more suitable for coding as it can reach arbitrary large (but finite) values.