#include <complex>
Go to the source code of this file.
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & |
file, |
|
|
const Cubic & |
f |
|
) |
| |
Definition at line 150 of file cubic.cpp.
150 {
157 Ifile <<
"Cubic: a=" << f.
a() <<
" b=" << f.
b() <<
" c=" << f.
c()
158 <<
" d=" << f.
d() <<
'\n';
159 file << " z1,2,3=" << z1 << ' ' << z2 << ' ' << z3 << '\n';
160 double r[3];
161 int q;
163 Ifile <<
"The number of real zeros =" << q <<
'\n';
164 int n;
165 Ifile <<
"Solutions=";
166 for (n = 0; n < q; n++)
167 file << ' ' << r[n];
168 file << '\n';
169 double xmm[2];
170 double ymm[2];
171 int s_mm[2];
173 Ifile <<
"Max/Min, q=" << q <<
'\n';
175 for (n = 0; n < q; n++) {
176 Ifile <<
"n=" << n <<
" xmm[n]=" << std::setw(13) << xmm[n]
177 << " ymm[n]=" << std::setw(13) << ymm[n]
178 << " s_mm[n]=" << std::setw(13) << s_mm[n] << '\n';
179 }
182
183 return file;
184}
double s_xzero(void) const
int find_maxmin(double xmm[2], double ymm[2], int s_mm[2]) const
int find_real_zero(double z[3]) const
void find_zero(double_complex &z1, double_complex &z2, double_complex &z3) const
std::complex< double > double_complex