Interesting nested patterns can be generated with a short computation that combines different simple math functions with a binary result. The formulas for the function are shown in green at the top.

The inputs for the functions are and values ranging from -70 to 70.