std::proj<div class="t-tr-text">(Std :: complex)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::complex)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <complex> | ||
template<class T > complex<T> proj(const complex<T>& z ); | (seit C++11) | |
Gibt die Projektion der komplexen Zahl
z
auf die Riemannsche .Original:
Returns the projection of the complex number
z
onto the Riemann sphere.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Für die meisten
z
, std::proj(z)==z, aber alle komplexen Unendlichkeiten, selbst wenn die Zahl eine Komponente unendlich ist und das andere ist NaN, positive reelle Unendlichkeit (INFINITY, 0) oder (INFINITY, -0) geworden. Das Vorzeichen der imaginären (Null)-Komponente ist das Zeichen std::imag(z) . Original:
For most
z
, std::proj(z)==z, but all complex infinities, even the numbers where one component is infinite and the other is NaN, become positive real infinity, (INFINITY, 0) or (INFINITY, -0). The sign of the imaginary (zero) component is the sign of std::imag(z). The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten]Parameter
z | - | komplexen Wert Original: complex value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten]Rückgabewert
die Projektion des
z
auf der Riemannschen KugelOriginal:
the projection of
z
onto the Riemann sphereThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]Beispiel
#include <iostream>#include <complex> int main(){std::complex<double> c1(1, 2);std::cout<<"proj"<< c1 <<" = "<< std::proj(c1)<<'\n'; std::complex<double> c2(INFINITY, -1);std::cout<<"proj"<< c2 <<" = "<< std::proj(c2)<<'\n'; std::complex<double> c3(0, -INFINITY);std::cout<<"proj"<< c3 <<" = "<< std::proj(c3)<<'\n';}
Output:
proj(1,2) = (1,2) proj(inf,-1) = (inf,-0) proj(0,-inf) = (inf,-0)
[Bearbeiten]Siehe auch
liefert den Betrag einer komplexen Zahl Original: returns the magnitude of a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) | |
gibt die quadrierte Größe Original: returns the squared magnitude The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) | |
konstruiert eine komplexe Zahl von Betrag und Phasenwinkel Original: constructs a complex number from magnitude and phase angle The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |