CoCalc -- Collaborative Calculation in the Cloud
Sharedreal-cube-root.ipynbOpen in CoCalc

Real cube root with Python2-based Sage

Integration involving cube-root of negative reals

Reference:

# SageMath version
version()
'SageMath version 8.6, Release Date: 2019-01-15'
# Python version
sys.version_info[:3]
(2, 7, 15)
y, z = var('y z')
cauchy = y.substitute(solve(z*y^3 + y^2 - 2*z*y + 2, y)[0])
def F(u):
    return arg(cauchy).substitute(z=u).n()
numerical_integral(F, 1, 2)
negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power negative number cannot be raised to a fractional power
(0.0, 0.0)