answered 7 years ago
Yes, you can compare your code with the one of Sage source code : https://git.sagemath.org/sage.git/tree/src/sage/symbolic/constants.py