aula 2

825 days ago by lopeskip

0 or 0 
       
0
0
not 0 
       
True
True
print('PQP FC') 
       
PQP FC
PQP FC
var('x') souve(x^2+1*x+4,x) 
       
Traceback (click to the left of this block for traceback)
...
NameError: name 'souve' is not defined
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_11.py", line 6, in <module>
    souve(x**_sage_const_2 +_sage_const_1 *x+_sage_const_4 ,x)
  File "", line 1, in <module>
    
NameError: name 'souve' is not defined
plot(x^2+2*x+4,(-3,2)) 
       
var('y') plot(sin(y),(-15,15)) 
       
v= 400*e^(-100*x)*sin(200*x) show(plot(v,0,.1),xmin=0, xmax=.05,figsize=[6,4]) 
       
var('z,w,y') g1=plot(z,(-4.5,5)) g2=plot(2*z+1,(-4.5,5),rgbcolor=(1,0,1)) g3=plot(4*sin(y),(-4.5,5),ymin=-4,ymax=4,rgbcolor=(1,0,1)) show(g1+g2+g3) 
       
#cria uma lista de pontos pontos=[(-2,-2),(-2,3),(2,2),(-2,-2)] g=Graphics() g+=point(pontos) g+=line(pontos) show(g) 
       
var('x') plot(exp(x)^-1,(-2,2)) 
       
var('x') plot(exp(x)^-1,(-2,2)) 
       
var('x') solve(x^2+3*x+2,x) 
       
[x == -2, x == -1]
[x == -2, x == -1]
plot(x^2+3*x+2,(-5,3)) 
       
plot(tan(x),(-1.5,1.5)) 
       
plot(tan(x),(-3,3)) 
       
diff(sqrt(x),x) 
       
1/2/sqrt(x)
1/2/sqrt(x)
diff(sin(x)) 
       
cos(x)
cos(x)
diff(cos(x)) 
       
-sin(x)
-sin(x)
diff(tan(x)) 
       
tan(x)^2 + 1
tan(x)^2 + 1
diff(exp(x)) 
       
e^x
e^x
diff(e^2) 
       
0
0
diff((e^x)) 
       
e^x
e^x
v= 400*e^(-100*x)*sin(10000*x) show(plot(v,0,.1),xmin=0, xmax=.05,figsize=[6,4]) 
       
plot(exp(-0.05*x)*sin(x),(0,15*pi)) 
       
var('t') var('x') y=t+2 z=x^2 g1=plot(y,(-1.5,2.5), rgbcolor=(1,0,1)) g2=plot(z,(-1.5,2.5), rgbcolor=(1,0,0)) show(g1+g2) 
       
pontos=[(-1,-1),(-1,2),(1,1),(-1,-1)] g= Graphics() g+= point(pontos) g+= line([(-1,-1),(-1,2),(1,1),(-1,-1)]) show(g)