名前空間
変種
操作

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

提供: cppreference.com
< cpp‎ | numeric‎ | math
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
(Use {{lc}}. Update links. Various fixes.)
2行: 2行:
 
{{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|
+
{{| =c++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 );
 
Promoted    remquo( Arithmetic x, Arithmetic 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}}.}}
 
{{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}}.}}
22行: 22行:
 
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}}}}
 
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}}}}
 
===パラメータ===
 
===パラメータ===
{{param list begin}}
+
{{begin}}
{{param list item | x, y |{{tr| 浮動小数点値| floating point values}}}}
+
{{| x, y |{{tr| 浮動小数点値| floating point values}}}}
{{param list item | quo |{{tr| 整数へのポインタの{{c|x/y}}インチ | pointer to an integer value to store some bits of {{c|x/y}} in }}}}
+
{{| quo |{{tr| 整数へのポインタの{{c|x/y}}インチ | pointer to an integer value to store some bits of {{c|x/y}} in }}}}
{{param list end}}
+
{{end}}
  
 
===値を返します===
 
===値を返します===
31行: 31行:
  
 
===ノート===
 
===ノート===
{{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.}}
+
{{tr|、非常に大規模な{{tt|sin(πx)}}ため{{tt|x}}を計算するとき、{{|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 {{|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.}}
  
 
===も参照してください===
 
===も参照してください===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/math/dcl list remainder}}
+
{{| cpp/numeric/math/remainder}}
{{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/div}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/numeric/math/remquo]]
 
[[de:cpp/numeric/math/remquo]]

2013年7月2日 (火) 14:41時点における版

 
 
 
一般的な数学関数
関数
基本的な演算
(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)
三角関数と双曲線関数
(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)(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)
(C++11)
(C++11)
マクロ定数
(C++11)(C++11)(C++11)(C++11)(C++11)
 
ヘッダ <cmath> で定義
float       remquo( float x, float y, int *quo );
(1) (C++11以上)
double      remquo( double x, double y, int *quo );
(2) (C++11以上)
long double remquo( long double x, long double y, int *quo );
(3) (C++11以上)
Promoted    remquo( Arithmetic x, Arithmetic y, int *quo );
(4) (C++11以上)
いくつかのビットを格納する値がx/y関数が行うように、浮動小数点除算演算remainderの余りを計算します。また、記号とx/yの最後のビットのうちの少なくとも3がquo.
Original:
Computes the remainder of the floating point division operation x/y as the remainder function does. Additionally, the sign and at least the three of the last bits of x/y will be stored in quo.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
いずれかの引数が整数型を持つ場合、それはdoubleにキャストされます。他の引数はlong doubleあれば、戻り値の型はlong double、それ以外の場合はdoubleです
Original:
If any argument has integral type, it is cast to double. If any other argument is long double, then the return type is long double, otherwise it is double
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

パラメータ

x, y -
浮動小数点値
Original:
floating point values
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
quo -
整数へのポインタのx/yインチ
Original:
pointer to an integer value to store some bits of x/y in
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

値を返します

割っ残りの引数
Original:
remainder of dividing arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

ノート

、非常に大規模なsin(πx)ためxを計算するとき、std::sinを直接呼び出す方法は大きな誤差になる場合がありますが、関数の引数は、最初std::remquoで還元されている場合:この関数は、浮動小数点値として正確に表現周期で周期関数を実装する際に便利です商の下位ビットは符号を決定するために使用することができ、残りは高精度で値を計算するために使用されるかもしれません.
Original:
This function is useful when implementing periodic functions with the period exactly representable as a floating-point value: when calculating sin(πx) for a very large x, calling std::sin directly may result in a large error, but if the function argument is first reduced with 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.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

も参照してください

(C++11)(C++11)(C++11)
除算の符号付きの余りを計算します
(関数) [edit]
(C++11)(C++11)
浮動小数点除算の余りを計算します
(関数) [edit]
整数除算の商と余りを計算します
(関数) [edit]