C++による数学プログラムスレ
■ このスレッドは過去ログ倉庫に格納されています
0066デフォルトの名無しさん
NGNG#include <float.h>
#include <stdio.h>
unsigned int_controlfp(unsigned int,unsigned int);
#define UP _controlfp(_RC_UP,_MCW_RC)
#define DOWN _controlfp(_RC_DOWN,_MCW_RC)
#define NEAE _controlfp(_RC_NEAR,_MCW_RC3)
class Interval
{
double min,max;
public:
Interval(double a= 0);
Interval(double a,double b);
void Print(void);
friend Interval operator+(const Interval &x, const Interval &y);
friend Interval operator-(const Interval &x, const Interval &y);
friend Interval operator*(const Interval &x, const Interval &y);
friend Interval operator/(const Interval &x, const Interval &y);
};
■ このスレッドは過去ログ倉庫に格納されています