The general function
References
von Seggern, D. CRC Standard Curves and Surfaces. Boca Raton, FL: CRC Press, p. 160, 1993.