Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tanh, and therefore atanh, are wonderful.

It's linear for small x, and exponential for large. Lots of applications of this:

Compressing data

Mapping (zoomed in near by, zoned out from afar)

There's a whole class of electronics amps for this.



tanh is a very pleasant sounding overdrive function for audio, for example.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: