Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168738
Image: ubuntu2004
n=40 Fak=1 for i in range(1,n+1): Fak=Fak*i print Fak factorial(n)
815915283247897734345611269596115894272000000000 815915283247897734345611269596115894272000000000
PlotList=[] #erstelle leere Liste for i in srange(0,10,0.1): PlotList.append(circle((i,1+abs(3*sin(i))), 1)) #füge zu PlotList sukzessive die Kreise hinzu a = animate(PlotList, xmin=-1,ymin=0,xmax=11,ymax=5, figsize=[12,5]) #Übergebe die Liste an die Funktion animate show(a)
var('t') N=150 y=[] x=[] for i in range(N): #Erstelle die Listen y und x y.append(sin(2*pi*0.99*i)) x.append(0.99*i) lp=list_plot(y) show(lp) #Plotte die Liste y #Für den Plot von Funktion und Array in ein Achsenkreuz: c=zip(x,y) #Füge x und y zusammen lp=list_plot(c) #Plotte die Werte (x,y) p=plot(sin(2*pi*t), (t,0,0.99*N),rgbcolor='red') show(p+lp)