#include "./angle.hpp"
#include "../util/is_number.hpp"
#include "../units/scalar_unit.hpp"
#include "../util/types.hpp"
#include "boost/algorithm/string.hpp"
#include <cmath>
#include <string>
Go to the source code of this file.
|
namespace | scifir |
| The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
|
|
|
template<typename T > |
string | scifir::to_string (const complex_number< T > &x) |
|
bool | scifir::is_complex (const string &init_complex_number) |
|
template<typename T > |
T | scifir::abs (const complex_number< T > &x) |
|
template<typename T > |
complex_number< scalar_unit > | scifir::sqrt (const complex_number< T > &x) |
|
template<typename T , typename U > |
bool | operator== (const scifir::complex_number< T > &x, const scifir::complex_number< U > &y) |
|
template<typename T , typename U > |
bool | operator!= (const scifir::complex_number< T > &x, const scifir::complex_number< U > &y) |
|
template<typename T > |
bool | operator== (const scifir::complex_number< T > &x, const string &init_complex_number) |
|
template<typename T > |
bool | operator!= (const scifir::complex_number< T > &x, const string &init_complex_number) |
|
template<typename T > |
bool | operator== (const string &init_complex_number, const scifir::complex_number< T > &x) |
|
template<typename T > |
bool | operator!= (const string &init_complex_number, const scifir::complex_number< T > &x) |
|
template<typename T > |
void | operator+= (string &x, const scifir::complex_number< T > &y) |
|
template<typename T > |
string | operator+ (const string &x, const scifir::complex_number< T > &y) |
|
template<typename T > |
string | operator+ (const scifir::complex_number< T > &x, const string &y) |
|
template<typename T > |
ostream & | operator<< (ostream &os, const scifir::complex_number< T > &x) |
|
template<typename T > |
istream & | operator>> (istream &is, scifir::complex_number< T > &x) |
|
◆ operator!=() [1/3]
template<typename T , typename U >
◆ operator!=() [2/3]
◆ operator!=() [3/3]
◆ operator+() [1/2]
Definition at line 275 of file complex_number.hpp.
276{
278}
string to_string(const aid &x)
Creates a string representation of aid, it's for aid equivalent to the display() function of aid.
◆ operator+() [2/2]
◆ operator+=()
◆ operator<<()
◆ operator==() [1/3]
template<typename T , typename U >
Definition at line 220 of file complex_number.hpp.
221{
222 if (x.real == y.real and x.imaginary == y.imaginary)
223 {
224 return true;
225 }
226 else
227 {
228 return false;
229 }
230}
◆ operator==() [2/3]
◆ operator==() [3/3]
◆ operator>>()
Definition at line 287 of file complex_number.hpp.
288{
289 char a[256];
290 is.getline(a, 256);
291 string b(a);
293 return is;
294}