[Scipy-tickets] [SciPy] #1709: scipy.integrate.odeint will work with values in scientific notation but not values that are written out.

SciPy Trac scipy-tickets@scipy....
Wed Jul 25 15:33:56 CDT 2012


#1709: scipy.integrate.odeint will work with values in scientific notation but not
values that are written out.
------------------------------+---------------------------------------------
  Reporter:  jgarc063         |       Owner:  somebody               
      Type:  defect           |      Status:  closed                 
  Priority:  normal           |   Milestone:  Unscheduled            
 Component:  scipy.integrate  |     Version:  0.9.0                  
Resolution:  invalid          |    Keywords:  Odeint, scipy.integrate
------------------------------+---------------------------------------------
Changes (by rgommers):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 That's because {{{^}}} is the bitwise XOR (exclusive or) operator in
 Python, not exponentiation. Use {{{**}}}.

 {{{
 >>> 4 * 10**4
 40000
 >>> 4 * 10^4
 44
 >>> 4 * 10**4
 40000
 >>> 2^2
 0
 >>> 2**2
 4
 >>> 2**3
 8
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1709#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list