Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: MTH161
Views: 1052
x=var('x') find_roots(20*x^2+10*x-1=0 )
Error in lines 2-3 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1013, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "<string>", line 1 SyntaxError: keyword can't be an expression
%md Draw trigonometric functions

Draw trigonometric functions

Interact: please open in CoCalc
g1=plot(sin(x),(x,-2*pi,2*pi),color='black',thickness=2) g1.show()
Background=circle((0,0),1,thickness=3)+plot(sin(x),-4*pi,4*pi,ymin=-1.1,ymax=1.1,ticks=pi/2,tick_formatter=pi,figsize=20,thickness=3) v1=[points((2*pi*t/90,sin(2*pi*t/90)),color='red',size=100)+points((cos(2*pi*t/90),sin(2*pi*t/90)),color='red',size=100)+line([(0,0),(cos(2*pi*t/90),sin(2*pi*t/90))],thickness=3,color='black')+Background for t in range(180)] v3=[points((-2*pi*t/90,sin(-2*pi*t/90)),color='red',size=100)+points ((cos(-2*pi*t/90),sin(-2*pi*t/90)),color='red',size=100)+line([(0,0),(cos(-2*pi*t/90),sin(-2*pi*t/90))],thickness=3,color='black')+Background for t in range(180)] v2=v1[::-1] v4=v3[::-1] v1.extend(v2) v1.extend(v3) v1.extend(v4) a=animate(v1)
a.show(delay=5)