Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168699
Image: ubuntu2004
def simpleplot(f, range=(-5,5,-5,5)): p = plot(f, (x, range[0], range[1]), plot_points=1000) p += text("$y = " + latex(f) + "$", (0, range[2] - (range[3] - range[2]) * 0.1), fontsize=30, rgbcolor=(1,0,0)) p.axes_range(range[0], range[1], range[2], range[3]) show(p, figsize=12) def inverse_functions(f): y = var('y') return map(lambda e: e.rhs(), solve(x == f(y), y)) def inverse_function(f): return inverse_functions(f)[0]
simpleplot(x^3 + 2*x^2)