#include <cassert>
#include <cmath>
#include <concepts>
#include <iostream>
#include "komplex2.tcc"
Go to the source code of this file.
|
| template<typename T > |
| concept | FloatDouble = sizeof(T)>=sizeof(float) && std::floating_point<T> |
| |
◆ abs()
◆ operator+()
Addiert zu einer reellen Zahl eine komplexe Zahl
- Parameters
-
| [in] | lhs | relle Zahl |
| [in] | rhs | komplexe Zahl |
- Returns
- Sum of
lhs + rhs
◆ FloatDouble
template<typename T >
| concept FloatDouble = sizeof(T)>=sizeof(float) && std::floating_point<T> |
Template Klasse fuer komplexe Zahlen zur Demonstration.
- Warning
- Bei Templateklassen (und -funktionen) muss der Implementierungsteil, hier im File komplex.tpp, im Headerfile inkludiert werden. Das Implementierungsfile darf nicht noch einmal ueberstzt werden!
Definition at line 16 of file komplex2.h.