Add math macros from older projects (merged with interpolate macros)