名前空間
変種
操作

std::remquo

提供: cppreference.com
< cpp‎ | numeric‎ | math
2012年10月26日 (金) 07:00時点におけるTranslationBot (トーク | 投稿記録)による版

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)

 
 
 
一般的な数学関数
関数
基本的な演算
(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)
 
Defined in header <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.

も参照してください

テンプレート:cpp/numeric/math/dcl list remainderテンプレート:cpp/numeric/math/dcl list fmodテンプレート:cpp/numeric/math/dcl list div