Sharedreal-cube-root.sage3.ipynbOpen in CoCalc
Author: Samuel Lelièvre
Views : 11
Description: Real cube-root with Python3-based Sage
In [2]:
# SageMath version version()
'SageMath version 8.8.beta6, Release Date: 2019-05-22'
In [ ]:
In [1]:
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)
(0.6116545934235456, 6.790730127365591e-15)
In [ ]: