std::atan<div class="t-tr-text">(性病:: 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">Original:</div><div class="t-tr-dropdown-orig">(std::valarray)</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>

来自cppreference.com

 
 
Numerics的圖書館
常見的數學函數
浮點環境
複數
數字陣列
偽隨機數生成
編譯時合理的演算法 (C++11)
通用的數值運算
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
 
 
Defined in header <valarray>
template< class T >
valarray<T> atan( const valarray<T>& va );
對於va計算的元素的值的反正切值中的每個元素.
Original:
For each element in va computes arc tangent of the value of the element.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目錄

[编辑] 參數

va -
值的數組的操作
Original:
value array to apply the operation to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 返回值

值數組中的值的圓弧切線va.
Original:
Value array containing arc tangents of the values in va.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 注釋

碎末功能(atan)是用來執行計算。如果這種功能是不可用的,std::atan由於參數依賴查找.
Original:
Unqualified function (atan) is used to perform the computation. If such function is not available, std::atan 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.
該功能可以實現從std::valarray不同的返回類型。在這種情況下,替換類型具有以下屬性:
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.
  • const提供的所有std::valarray成員函數.
    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::valarraystd::slice_arraystd::gslice_arraystd::mask_arraystd::indirect_array可以由更換型.
    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.
  • 所有的函數接受一個參數的類型const std::valarray&也應接受替換類型.
    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.
  • 接受兩個參數的類型const std::valarray&應該接受所有的功能const std::valarray&的每個組合和置換型.
    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.

[编辑] 可能的實現

template<class T>
valarray<T> atan(const valarray<T>& va)
{
    valarray<T> other = va;
    for (T &i : other) {
        i = atan(i);
    }
}

[编辑] 為例