I need to change the region of a vector of observations from [-Inf:Inf] to [-1:1] to use with some higher order Chebyshev polynomials.

I know there is a tried and tested little function for doing this. Something like...1/1-exp(x^2.....).

I can't remember what this is. Would someone please be able to post this for me?

Many thanks,

J