Namespace
Varianti

cpp/numeric/valarray/atan2: differenze tra le versioni

Da cppreference.com.
< cpp‎ | numeric‎ | valarray
m (r2.7.3) (Bot: Aggiungo de, en, es, fr, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Riga 2: Riga 2:
 
{{cpp/title|atan2{{small|{{tr|(Std :: valarray)|(std::valarray)}}}}}}
 
{{cpp/title|atan2{{small|{{tr|(Std :: valarray)|(std::valarray)}}}}}}
 
{{cpp/numeric/valarray/navbar}}
 
{{cpp/numeric/valarray/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list header | valarray}}
+
{{header | valarray}}
{{ddcl list item | num=1 |
+
{{| num=1 |
 
template< class T >  
 
template< class T >  
 
valarray<T> atan2( const valarray<T>& y, const valarray<T>& x );
 
valarray<T> atan2( const valarray<T>& y, const valarray<T>& x );
 
}}
 
}}
{{ddcl list item | num=2 |
+
{{| num=2 |
 
template< class T >  
 
template< class T >  
 
valarray<T> atan2( const valarray<T>& y, const T& vx );
 
valarray<T> atan2( const valarray<T>& y, const T& vx );
 
}}
 
}}
{{ddcl list item | num=3 |
+
{{| num=3 |
 
template< class T >  
 
template< class T >  
 
valarray<T> atan2( const T& vy, const valarray<T>& x );
 
valarray<T> atan2( const T& vy, const valarray<T>& x );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
 
{{tr|Calcola la tangente inversa di {{tt|y/x}} utilizzare i segni di argomenti per determinare correttamente quadrante.|Computes the inverse tangent of {{tt|y/x}} using the signs of arguments to correctly determine quadrant.}}
 
{{tr|Calcola la tangente inversa di {{tt|y/x}} utilizzare i segni di argomenti per determinare correttamente quadrante.|Computes the inverse tangent of {{tt|y/x}} using the signs of arguments to correctly determine quadrant.}}
Riga 27: Riga 27:
  
 
===Parametri===
 
===Parametri===
{{param list begin}}
+
{{begin}}
{{param list item | x, y |{{tr| matrici numeriche per calcolare tangente inversa| numeric arrays to compute inverse tangent of}}}}
+
{{| x, y |{{tr| matrici numeriche per calcolare tangente inversa| numeric arrays to compute inverse tangent of}}}}
{{param list item | vy, vx |{{tr| valori per calcolare tangente inversa| values to compute inverse tangent of}}}}
+
{{| vy, vx |{{tr| valori per calcolare tangente inversa| values to compute inverse tangent of}}}}
{{param list end}}
+
{{end}}
  
 
===Valore di ritorno===
 
===Valore di ritorno===
Riga 47: Riga 47:
  
 
===Vedi anche===
 
===Vedi anche===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/math/dcl list atan2}}
+
{{| cpp/numeric/math/atan2}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/numeric/valarray/atan2]]
 
[[de:cpp/numeric/valarray/atan2]]

Versione attuale delle 14:53, 2 lug 2013

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale (C++11)
Generici operazioni numeriche
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.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
 
Elemento definito nell'header <valarray>
template< class T >
valarray<T> atan2( const valarray<T>& y, const valarray<T>& x );
(1)
template< class T >
valarray<T> atan2( const valarray<T>& y, const T& vx );
(2)
template< class T >
valarray<T> atan2( const T& vy, const valarray<T>& x );
(3)
Calcola la tangente inversa di y/x utilizzare i segni di argomenti per determinare correttamente quadrante.
Original:
Computes the inverse tangent of y/x using the signs of arguments to correctly determine quadrant.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Calcola la tangente inversa di ogni coppia di valori corrispondenti da y e x.
Original:
Computes the inverse tangent of each pair of corresponding values from y and x.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Il comportamento è indefinito se x.size() != y.size().
Original:
The behavior is undefined if x.size() != y.size().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Calcola la tangente inversa di vx e ogni valore nella y matrice numerica.
Original:
Computes the inverse tangent of vx and each value in the numeric array y.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Calcola la tangente inversa di vy e ogni valore nella x matrice numerica.
Original:
Computes the inverse tangent of vy and each value in the numeric array x.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Parametri

x, y -
matrici numeriche per calcolare tangente inversa
Original:
numeric arrays to compute inverse tangent of
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vy, vx -
valori per calcolare tangente inversa
Original:
values to compute inverse tangent of
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Valore di ritorno

Un array numerico contenente i risultati di calcolo di tangente inversa.
Original:
A numeric array containing the results of computation of inverse tangent.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Note

Funzione non qualificato (atan2) viene utilizzato per eseguire il calcolo. Se tale funzione non è disponibile, std::atan2 viene utilizzato a causa di ricerca tesi a carico.
Original:
Unqualified function (atan2) is used to perform the computation. If such function is not available, std::atan2 is used due to argument dependent lookup.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La funzione può essere implementata con il tipo restituito diverso da std::valarray. In questo caso, il tipo di sostituzione ha le seguenti proprietà:
Original:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • Tutte le funzioni di membro const std::valarray sono forniti.
    Original:
    All const member functions of std::valarray are provided.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • std::valarray, std::slice_array, std::gslice_array, std::mask_array std::indirect_array e può essere costruito con il tipo di sostituzione.
    Original:
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Tutte le funzioni che accettano un argomento di const std::valarray& tipo devono anche accettare il tipo di sostituzione.
    Original:
    All functions accepting a arguments of type const std::valarray& should also accept the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Tutte le funzioni che accettano due argomenti di tipo const std::valarray& dovrebbe accettare ogni combinazione di const std::valarray& e il tipo di sostituzione.
    Original:
    All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

[modifica] Esempio

[modifica] Vedi anche

arco tangente, utilizzando le indicazioni per determinare quadranti
Original:
arc tangent, using signs to determine quadrants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [modifica]