#include <ball_rounded.hpp>
Definition at line 270 of file ball_rounded.hpp.
typedef implementation<ball_rounding,W> Rnd |
Definition at line 271 of file ball_rounded.hpp.
static void hypot | ( | ball< C, R, V > & | d, | |
const ball< C, R, V > & | x, | |||
const ball< C, R, V > & | y | |||
) | [inline, static] |
Definition at line 287 of file ball_rounded.hpp.
References mmx::center(), mmx::hypot(), hypot_op::op(), R, mmx::radius(), Round_up, and Up.
Definition at line 274 of file ball_rounded.hpp.
References Ball, mmx::center(), mmx::div(), Down, Nan, sqrt_op::op(), R, mmx::radius(), Round_down, Round_up, mmx::sqrt(), and Up.
00274 { 00275 typedef Round_up(R) Up; 00276 typedef Round_down(R) Down; 00277 if (is_negative_or_zero (z)) d= Nan (Ball); 00278 else { 00279 R aux= Down::sqrt (Rnd::abs_down (z)); 00280 center (d)= sqrt_op::op (center (z)); 00281 radius (d)= Up::div (radius (z), aux + aux); 00282 Rnd::add_multiplicative_error (d); 00283 } 00284 }