maxwell

2515 days ago by joel.boyd

M=.032 v=var('v') 
       
R=8.314 
       
T=298 
       
F=4*3.14*(M/(2*3.14*R*T))^(3/2)*v^2*exp(-M/2/R/T*v^2) 
       
plot(F,v,0,4000) 
       
numerical_integral(4*3.14*(.032/(2*3.14*8.314*298))^(3/2)*v^2*exp(-.032/2/8.314/298*v^2),500,600) 
       
(0.15837349168331577, 1.7582989695709792e-15)
(0.15837349168331577, 1.7582989695709792e-15)
numerical_integral? 
       
Traceback (click to the left of this block for traceback)
...
TypeError: cannot evaluate symbolic expresssion numerically
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_45.py", line 4, in <module>
    F.n()
  File "", line 1, in <module>
    
  File "expression.pyx", line 3535, in sage.symbolic.expression.Expression.n (sage/symbolic/expression.cpp:15928)
TypeError: cannot evaluate symbolic expresssion numerically