名前空間
変種
操作

「cpp/numeric/math/remquo」の版間の差分

提供: cppreference.com
< cpp‎ | numeric‎ | math
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
 
(2人の利用者による、間の8版が非表示)
1行: 1行:
{{tr_note}}
+
{{cpp/title|remquo}}
{{cpp/title|remquo}}
+
 
{{cpp/numeric/math/navbar}}
 
{{cpp/numeric/math/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list header | cmath}}
+
{{header | cmath}}
{{ddcl list item | notes={{mark since c++11}} |num=1|
+
{{| sincec++11 |num=1|
float      remquo( float x, float y, int *quo );
+
float      remquo
 +
( float x, float y, int* quo );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |num=2|
+
{{| sincec++11 |num=2|
double      remquo( double x, double y, int *quo );
+
double      remquo ( double x, double y, int* quo );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} |num=3|
+
{{| sincec++11 |num=3|
long double remquo( long double x, long double y, int *quo );
+
long double remquo
 +
( long double x, long double y, int* quo );
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} | num=4|
+
{{| sincec++11 | num=4|
Promoted   remquo( Arithmetic x, Arithmetic y, int *quo );
+
  remquo ( x, y, int* quo );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
{{tr|いくつかのビットを格納する値が{{c|x/y}}関数が行うように、浮動小数点除算演算{{rlpt|remainder}}の余りを計算します。また、記号と{{c|x/y}}の最後のビットのうちの少なくとも3が{{c|quo}}.|Computes the remainder of the floating point division operation {{c|x/y}} as the {{rlpt|remainder}} function does.  Additionally, the sign and at least the three of the last bits of {{c|x/y}} will be stored in {{c|quo}}.}}
+
{{|{{c|x/y}} {{c|x/y}} {{c|quo}}
 +
|{{c|}} {{|}} {{c|}} {{c|}}
  
4) {{tr|いずれかの引数が整数型を持つ場合、それは{{c|double}}にキャストされます。他の引数は{{c|long double}}あれば、戻り値の型は{{c|long double}}、それ以外の場合は{{c|double}}です|If any argument has integral type, it is cast to {{c|double}}. If any other argument is {{c|long double}}, then the return type is {{c|long double}}, otherwise it is {{c|double}}}}
+
======
===パラメータ===
+
{{begin}}
{{param list begin}}
+
{{| x, y | }}
{{param list item | x, y |{{tr| 浮動小数点値| floating point values}}}}
+
{{| quo | {{c|x/y}} }}
{{param list item | quo |{{tr| 整数へのポインタの{{c|x/y}}インチ | pointer to an integer value to store some bits of {{c|x/y}} in }}}}
+
{{end}}
{{param list end}}
+
  
===値を返します===
+
======
{{tr|割っ残りの引数|remainder of dividing arguments}}
+
{{|remainder}}
 +
 
 +
 +
 
 +
 +
 
 +
 +
 
 +
 +
 
 +
 +
 +
 
 +
 +
 
 +
 +
 +
 +
 +
 +
  
 
===ノート===
 
===ノート===
{{tr|、非常に大規模な{{tt|sin(πx)}}ため{{tt|x}}を計算するとき、{{c|std::sin}}を直接呼び出す方法は大きな誤差になる場合がありますが、関数の引数は、最初{{tt|std::remquo}}で還元されている場合:この関数は、浮動小数点値として正確に表現周期で周期関数を実装する際に便利です商の下位ビットは符号を決定するために使用することができ、残りは高精度で値を計算するために使用されるかもしれません.|This function is useful when implementing periodic functions with the period exactly representable as a floating-point value: when calculating {{tt|sin(πx)}} for a very large {{tt|x}}, calling {{c|std::sin}} directly may result in a large error, but if the function argument is first reduced with {{tt|std::remquo}}, the low-order bits of the quotient may be used to determine the sign and the remainder may be used to calculate the value with high precision.}}
+
{{|{{tt|}}
 +
 
 +
{{tt|x}} を計算するとき、 {{|std::sin}} {{tt|std::remquo}}
 +
 
 +
{{tt|}}
 +
 
 +
 +
{{|
 +
 +
 +
 +
 
 +
 +
 +
x}
 +
,
 +
 +
{
 +
 +
 +
 +
{
 +
std::
 +
 +
}
 +
}
 +
 +
{
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
std::remquo,
 +
 +
 +
 +
 +
 +
-
 +
 +
 +
 +
 +
 +
 +
 +
and .
 +
 +
 +
}}
  
===も参照してください===
+
======
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/math/dcl list remainder}}
+
{{| cpp/numeric/math/}}
{{dcl list template | cpp/numeric/math/dcl list fmod}}
+
{{| cpp/numeric/math/fmod}}
{{dcl list template | cpp/numeric/math/dcl list div}}
+
{{| cpp/numeric/math/
{{dcl list end}}
+
}}
 +
{{end}}
  
[[de:cpp/numeric/math/remquo]]
+
deenesfritptruzh
[[en:cpp/numeric/math/remquo]]
+
[[es:cpp/numeric/math/remquo]]
+
[[fr:cpp/numeric/math/remquo]]
+
[[it:cpp/numeric/math/remquo]]
+
[[pt:cpp/numeric/math/remquo]]
+
[[ru:cpp/numeric/math/remquo]]
+
[[zh:cpp/numeric/math/remquo]]
+

2018年12月5日 (水) 14:58時点における最新版

 
 
 
一般的な数学関数
関数
基本的な演算
(C++11)
remquo
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
指数関数
(C++11)
(C++11)
(C++11)
(C++11)
冪関数
(C++11)
(C++11)
三角関数と双曲線関数