Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168728
Image: ubuntu2004
plot?
a=sin(x) v=find_root(a,1,4) print v plot(a,0,10)+plot(integral(a),0,10,rgbcolor='red')
3.14159265359
p=0.13 C=0.01 n=var('n') A=1-(1-p)^n p=plot([A,C*n],(0,30))+line([(0,1),(30,1)],rgbcolor='red') p.show
<bound method Graphics.show of >
xmin=50 xmax=205 r=var('r') f(r)=pi*r*r P=plot(f(r),(xmin,xmax)) P+=line([(100,f(xmin)),(100,f(xmax))],rgbcolor='black',thickness=2) P+=line([(200,f(xmin)),(200,f(xmax))],rgbcolor='#dc2aae',thickness=2) p+=text("qwerty",(100,1e5)) p.show
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sage/sagenb/sage_notebook/worksheets/LENIN/0/code/8.py", line 15, in <module> p+=text("qwerty",(_sage_const_100 ,_sage_const_1e5 )) NameError: name 'p' is not defined
text("qwerty",(100,1e5))
x=var('x') a=sin(x) solve(a==0,x)
[x == 0]
solve??