Sage_simple_demo

696 days ago by gsever


Sage: Unifying Mathematical Software

Py4Science

University of North Dakota

 


print "welcome" 
       
welcome
welcome

Interact

@interact # put this right before your function def print_pi(n=(10..10000)): # stuff displayed here gets put in the output print N(pi, digits=n) 
       
 
       

2D plotting

plot(sin,(-6,6),thickness=1).show(figsize=[5,2]) 
       
 
       

3D Plotting

S = cube(size=.4, color=(1,0,0)) S # show using jmol