integral for AdvancedMath