[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/numeric/valarray/atan2 [Back]  [Original]

std::atan2<div class="t-tr-text">(STD :: valarray)<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">:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div> cppreference.com
cppreference.com

std::atan2<div class="t-tr-text">(STD :: valarray)<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">:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div>

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++17)
(C++20)
(C++11)
(C++11)
(C++17)
(C++17)
(C++20)
(C++20)
(C++11)
(C++17)
(C++20)
(C++23)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
 
 
<tbody> </tbody>
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)
y/x , .
:
Computes the inverse tangent of y/x using the signs of arguments to correctly determine quadrant.
Google.
. .
1)
y x.
:
Computes the inverse tangent of each pair of corresponding values from y and x.
Google.
. .
, x.size() != y.size().
:
The behavior is undefined if x.size() != y.size().
Google.
. .
2)
vx y .
:
Computes the inverse tangent of vx and each value in the numeric array y.
Google.
. .
3)
vy x .
:
Computes the inverse tangent of vy and each value in the numeric array x.
Google.
. .

x, y
:
numeric arrays to compute inverse tangent of
Google.
. .
vy, vx
:
values to compute inverse tangent of
Google.
. .

, .
:
A numeric array containing the results of computation of inverse tangent.
Google.
. .

(atan2) . , std::atan2 .
:
Unqualified function (atan2) is used to perform the computation. If such function is not available, std::atan2 is used due to argument dependent lookup.
Google.
. .
std::valarray. , :
:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
Google.
. .
  • const - std::valarray .
    :
    All const member functions of std::valarray are provided.
    Google.
    . .
  • std::valarray, std::slice_array, std::gslice_array, std::mask_array std::indirect_array .
    :
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.
    Google.
    . .
  • , const std::valarray& .
    :
    All functions accepting a arguments of type const std::valarray& should also accept the replacement type.
    Google.
    . .
  • const std::valarray& const std::valarray& .
    :
    All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.
    Google.
    . .

.

(C++11)(C++11)
,
() []

Web Proxy Viewer  |  New URL  |  Original Page