Smooth taxes without brackets

Implementing the Norwegian income tax is a pain. It requires keeping track of various deductions, if-then-else rules and around 20 constants. In this article we introduce a smooth tax function, simplifying the computation to a single formula with two constants.