ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 13 Feb 2012 06:58:01 +0100ode_solver : unable to convert to floathttps://ask.sagemath.org/question/8714/ode_solver-unable-to-convert-to-float/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?
Thank you!HurinMon, 13 Feb 2012 06:58:01 +0100https://ask.sagemath.org/question/8714/