Math related scripts and tools