Java Math Class With Custom Mathematical Functions