CoCalc Public FilesLets Integrate.sagewsOpen with one click!
Authors: Laura Gross, Octavia Mott
Views : 133
Description: Sage Computation Assignment
# Octavia Collins, Lets Integrate #1 What procedure would you perform if you were given the integral log(x),x? from sage.symbolic.integration.integral import indefinite_integral print("Integral of log(x)") indefinite_integral(log(x), x)
Integral of log(x) x*log(x) - x
#2Find the second integral of the integral (log(x), x) from sage.symbolic.integration.integral import indefinite_integral firstInt= indefinite_integral(log(x), x) print("2rd Integral of log(x)") indefinite_integral(firstInt, x)
2rd Integral of log(x) 1/2*x^2*log(x) - 3/4*x^2
#3What is the difference when you add the bound 0, 10. #x=var('x') from sage.symbolic.integration.integral import definite_integral print("Definitie Integral of log(x) from 0, 10") definite_integral(log(x), x, 0, 10)
Definitie Integral of log(x) from 0, 10 10*log(10) - 10
#4Graph the function with the bound 0,10. plot(definite_integral(log(x), x, 0, 10))
#5Remove the bound and make your function indefinite once more? Try to plot it, why do you think it didn't work? plot(indefinite_integral(log(x), x))
verbose 0 (3698: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 100 points. verbose 0 (3698: plot.py, generate_plot_points) Last error message: 'can't convert complex to float'
#5Remove the bound and make your function indefinite once more? Try to plot it, why do you think it didn't work?
plot(indefinite_integral(log(x), x))
verbose 0 (3698: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 100 points. verbose 0 (3698: plot.py, generate_plot_points) Last error message: 'can't convert complex to float'