Espaços nominais
Variantes
Acções

std::proj<div class="t-tr-text">(Std :: complexo)<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>

Da cppreference.com
< cpp‎ | numeric‎ | complex

 
 
Biblioteca numéricos
Funções matemáticas comuns
De ponto flutuante ambiente
Números complexos
Matrizes numéricas
Pseudo-aleatório de geração de números
Tempo de compilação aritmética racional(C++11)
Genéricos operações numéricas
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
 
Números complexos
Funções de membro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
complex::complex
complex::operator=
complex::real
complex::imag
complex::operator+=
complex::operator-=
complex::operator*=
complex::operator/=
Não-membros funções
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
proj
(C++11)
Funções exponenciais
Original:
Exponential functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funções de poder
Original:
Power functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funções trigonométricas
Original:
Trigonometric functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
Funções hiperbólicas
Original:
Hyperbolic functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
 
Definido no cabeçalho <complex>
template<class T >
complex<T> proj(const complex<T>& z );
(desde C++11)
Retorna a projeção do z número complexo para a esfera de Riemann.
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.
Para a maioria z, std::proj(z)==z, mas todos os infinitos complexos, até mesmo os números em que um componente é infinito e o outro é NaN, tornar-se positivo real infinito (INFINITY, 0) ou (INFINITY, -0). O sinal de componente (zero) imaginário é o sinal de 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.

Índice

[editar]Parâmetros

z -
valor complexo
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.

[editar]Valor de retorno

a projeção de z para a esfera de Riemann
Original:
the projection of 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.

[editar]Exemplo

#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';}

Saída:

proj(1,2) = (1,2) proj(inf,-1) = (inf,-0) proj(0,-inf) = (inf,-0)

[editar]Veja também

retorna a magnitude de um número complexo
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.

(modelo de função)[edit]
retorna a magnitude ao quadrado
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.

(modelo de função)[edit]
constrói um número complexo de magnitude e ângulo de fase
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.

(modelo de função)[edit]
close