Second try, conditionally define mathematical constants

This is the most fool-proof way to go.