https://wegmans.co.uk/mastering-calculations-the-ultimate-guide-to-piecewise-function-calculators/