ruby math tools.