ode_solver : unable to convert to float
asked 2012-02-12 23:58:01 -0500
This post is a wiki. Anyone with karma >750 is welcome to improve it.
I am trying to solve a system of 38 first-order differential equations using
ode_solver(). Among many problems, I have a problem with complex numbers. The functions in question are complex functions (equations include conjugate(function)), and initial contitions are also complex numbers.
The error I get is following:
TypeError: Unable to convert 0.0353553390593274 - 0.0353553390593274*I to float; use abs() or real_part() as desired
0.0353553390593274 - 0.0353553390593274*I is the value of one of the inital conditions. I am rather new to
sage, so I wonder if
ode_solver() can deal with complex functions and complex numbers as such?