std::exp<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
![]() |
ãã®ãã¼ã¸ã¯ãGoogle 翻訳ã使ã£ã¦è±èªçããæ©æ¢°ç¿»è¨³ããã¾ããã
翻訳ã«ã¯èª¤ããå¥å¦ãªè¨ãåããããããããã¾ãããæç« ã®ä¸ã«ãã¤ã³ã¿ãããã¨ãå ã®æç« ãè¦ãã¾ãã誤ããä¿®æ£ãã¦ç¿»è¨³ãæ¹åããæå©ãããã¦ãã ããã翻訳ã«ã¤ãã¦ã®èª¬æã¯ããããã¯ãªãã¯ãã¦ãã ããã ãã®ãã¼ã¸ã®è±èªçãè¦ãã«ã¯ãããã¯ãªãã¯ãã¦ãã ãã |
Defined in header <valarray>
|
||
template< class T > valarray<T> exp( const valarray<T>& va ); |
||
va
å
ã®è¦ç´ ãã¨ã«è¨ç®ã eã®è¦ç´ ã®å¤ã«çããåæ°ã ãç´¯ä¹.Original:
For each element in
va
computes e raised to the power equal to 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.
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
ã®å¤ã«ãã£ã¦æèµ· Eãå«ãå¤ã®é
å.Original:
Value array containing e raised by 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.
You can help to correct and verify the translation. Click here for instructions.
[ç·¨é] ãã¼ã
修飾ããã¦ããªãæ©è½ï¼expï¼è¨ç®ãå®è¡ããããã«ä½¿ç¨ããã¾ãããã®ãããªæ©è½ãå©ç¨ã§ããªãå ´åãstd::expã¯ã弿°ä¾åã®ç
§åã®ããã«ä½¿ç¨ãã.
Original:
Unqualified function (exp) is used to perform the computation. If such function is not available, std::exp 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.
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.
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::valarrayãstd::slice_arrayãstd::gslice_arrayãstd::mask_arrayã¨std::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&ã®2ã¤ã®å¼æ°ãåãå ¥ãããã¹ã¦ã®æ©è½ã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> exp( const valarray<T>& va ) { valarray<T> other = va; for (T &i : other) { i = exp(i); } return other; // proxy object may be returned } |
[ç·¨é] ä¾
ãã®ä¾ã§ã¯ããªã¤ã©ã¼ã®æçeiπ
= -1ããã³é¢é£ææ°ã示ãã¦ãã¾ã.
= -1ããã³é¢é£ææ°ã示ãã¦ãã¾ã.
Original:
This example demonstrates the Euler's identity eiπ
= -1 and the related exponents.
= -1 and the related exponents.
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.
ãã®ã³ã¼ããå®è¡ãã¾ã
#include <iostream> #include <complex> #include <valarray> int main() { const double pi = std::acos(-1); std::valarray<std::complex<double>> v = { {0, 0}, {0, pi/2}, {0, pi}, {0, 3*pi/2}, {0, 2*pi} }; std::valarray<std::complex<double>> v2 = std::exp(v); for(auto n : v2) { std::cout << std::fixed << n << '\n'; } }
åºå:
(1.000000,0.000000) (0.000000,1.000000) (-1.000000,0.000000) (-0.000000,-1.000000) (1.000000,-0.000000)
[ç·¨é] åç §
æ»ã eãä¸ããããé»åï¼exï¼ã«å¼ãä¸ãã Original: returns e raised to the given power (ex) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (颿°) | |
complex base e exponential (颿°ãã³ãã¬ã¼ã) |