Closed ftalbrecht closed 4 years ago
Probably the easiest fix would be to change our interpretation of complex to "(a,b)"
. This is easier to parse, does not interfer with the rest of the string parsing (we only use "["
and ";"
) and is the format we have when printing std::complex
via std::cout
(So one can easily copy printed complex numbers).
I'd be happy with the tuple notation
Moved to dune-xt.
Our convention is to interprete strings of the kind
"a+bi"
and"a-bi"
as complex numbers, ifa
andb
are string representations of real numbers. This does not work ifa
is given in scientifi notation, i.e.1e-10
.