浮動小数点数
「浮動小数点数」を扱った32問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Haskell / WRITE · 2026-11-15 補正付きの和をつなぐ Kahanの加算, 補正付き総和, 補正値, 和の結合, 浮動小数点数, 丸め誤差, compensated summation, Kahan summation, merge
- Haskell / READ · 2026-11-15 足す順で変わる総和 浮動小数点数, 丸め誤差, 情報落ち, 足す順序, sum, foldl, Double, floating point rounding, summation order
- C++ / WRITE · 2026-11-14 大きい値が後から来る総和 Kahanの加算, Neumaierの加算, 補正付き総和, 丸め誤差, 情報落ち, compensated summation, Kahan summation, Neumaier summation
- C++ / READ · 2026-11-14 1e16に1を4回足す 浮動小数点数の加算, 情報落ち, 丸め, 足す順序, double の仮数部, floating-point addition, absorption, rounding error
- C++ / DEBUG · 2026-11-14 0で推論した補正の型 auto の型推論, 整数リテラル 0, double から int への変換, 切り捨て, Kahanの加算, auto deduction, floating-integral conversion, compensated summation
- C / READ · 2026-11-02 printfとroundの丸め 偶数への丸め, 四捨五入, round関数, printf の %.0f, round half to even, round half away from zero, banker's rounding
- C / DEBUG · 2026-11-02 負の数の四捨五入 四捨五入, 負の数の丸め, 0方向への切り捨て, キャスト, round half away from zero, truncation toward zero, float to int conversion
- Haskell / DEBUG · 2026-11-01 保存した平均が読めない read, show, 型注釈, 型推論, 往復変換, no parse, round trip, Prelude.read
- C / DEBUG · 2026-10-29 初期値で決まる収束先 Newton法, 初期値, 収束先の根, 放物線の頂点, Newton's method, initial guess, root finding
- C / WRITE · 2026-10-24 doubleに正確に入る整数 2^53, 倍精度で表せる整数, 仮数部53ビット, INT64_MIN の符号反転, exactly representable integer, double precision, significand
- C / READ · 2026-10-24 2^53+1の往復 2^53, 倍精度で表せる整数, 通常の算術型変換, 最近接偶数丸め, usual arithmetic conversions, round half to even, double precision integer
- C / DEBUG · 2026-10-24 ナノ秒の差をdoubleで 2^53, 倍精度で表せる整数, 桁落ち, ナノ秒タイムスタンプ, nanosecond timestamp, catastrophic cancellation, int64 to double
- C / WRITE · 2026-10-22 負の0を正の0に揃える 負のゼロの正規化, 符号付きゼロ, -0.0と+0.0, 浮動小数点数の比較, normalize negative zero, signed zero
- C / READ · 2026-10-22 下限0で止めたはずの値 負のゼロ, 符号付きゼロ, -0.0と+0.0, 浮動小数点数の比較, printfの%g, negative zero, signed zero, IEEE 754
- C / DEBUG · 2026-10-22 見つからない鏡像の点 負のゼロ, 符号付きゼロ, memcmpによる構造体の比較, 浮動小数点数のビット表現, negative zero, memcmp struct comparison, signed zero
- C / WRITE · 2026-10-21 相対誤差で比べるテスト 浮動小数点数の比較, 相対誤差, 許容誤差, 単体テストの期待値, relative tolerance, floating point comparison, approximately equal
- C / DEBUG · 2026-10-20 0で始めた合計 C23 auto, 型推論, 複合代入の型変換, 小数部の切り捨て, 整数除算, type inference, implicit conversion, integer division
- C++ / DEBUG · 2026-10-12 右から伝わる切り捨て 連鎖代入, 代入演算子の右結合, 代入式の値, double から int への切り捨て, chained assignment, right associativity, floating-integral conversion
- C / DEBUG · 2026-10-11 変化の回数が多すぎる 代入による型変換, float と double の比較, 0.1 の丸め, 通常の算術変換, assignment conversion, float double comparison, usual arithmetic conversions
- C / WRITE · 2026-10-05 floatのビット列を取り出す memcpyによる型の読み替え, 厳密な別名規則, floatのビット表現, IEEE 754, type punning with memcpy, strict aliasing
- Haskell / DEBUG · 2026-10-02 0.1を経由した分数 Rational, 浮動小数点の誤差, toRational, 小数リテラル, fractional literal, exact arithmetic
- C++ / DEBUG · 2026-09-29 0.1刻みのループ 浮動小数点数の誤差, 0.1の足し算, 浮動小数点数の等値比較, 無限ループ, floating point error, float loop counter, infinite loop
- Haskell / WRITE · 2026-09-28 HLLの線形カウント HyperLogLog, 線形カウント, fromIntegral, Int から Double, 小さい範囲の補正, linear counting, small range correction, numeric conversion
- Haskell / WRITE · 2026-09-22 整数で小数を表す 固定小数点, 整数演算, 金額, fixed point
- Haskell / DEBUG · 2026-09-22 truncateとround 切り捨て, 四捨五入, 固定小数点, truncate round
- Rust / READ · 2026-09-11 0除算とinf ゼロ除算, inf, NaN, floating point division
- Rust / DEBUG · 2026-09-08 ドルをセントへ変換 固定小数点数, 浮動小数点数, as キャスト, 切り捨て, 丸め, float to int cast, fixed-point, rounding
- Haskell / DEBUG · 2026-09-03 止まらない三分探索 浮動小数点数の間隔, 終了条件の誤差, 三分探索が止まらない, ulp, floating point precision, ternary search termination
- Rust / WRITE · 2026-09-02 符号で挟んで解を絞る 二分法, 中間値の定理, 符号の比較, アンダーフロー, bisection method, intermediate value theorem, floating-point underflow
- Rust / READ · 2026-09-02 4回で狭めた区間 二分法, 区間の縮小, fold, 平方根の近似, bisection method, square root approximation
- Rust / DEBUG · 2026-09-02 幅の判定が終わらない 二分法, 浮動小数点数の間隔, 停止条件, 無限ループ, bisection method, ulp, floating-point spacing
- Rust / DEBUG · 2026-08-30 平均は2倍にならない メタモルフィックテスト, 平均, 検査の誤り, 偽陽性, metamorphic relation, mean, false alarm