CoCalc Shared FilesSaad Main / Personal / QM HW 1.sagewsOpen in CoCalc with one click!
Author: Saad Khalid
Views : 10
i = var('i') assume(abs(x) < 1) f(x) = sum(x^i, i, 0, oo )
f(x)
-1/(x - 1)
f(.5)
2.00000000000000
plot(f(x),x,-.9,.9)
A little surprise (I learned some new functionality!). I'm not actually sure how it is substituting the analytic continuation
plot(f(x),x,-1,2)
integrate(f(x),x,0,2)
-I*pi