blob: 3f6fa29f6f6b7df7790e92b074ca6e58638fe388 (
plain) (
tree)
|
|
#ifndef BUILTIN_H
#define BUILTIN_H
#include "model.h"
#include <string>
#include <gmpxx.h>
using std::string;
const int EQUAL_QUEUE_SIZE = 262144;
bool is_list(Pair *ptr);
/** @class InexactNumObj
* Inexact number implementation (using doubles)
*/
class InexactNumObj: public NumObj {
public:
InexactNumObj(NumLvl level);
};
/** @class CompNumObj
* Complex numbers
*/
class CompNumObj: public InexactNumObj {
public:
double real, imag;
/** Construct a complex number */
CompNumObj(double _real, double _imag);
/** Try to construct an CompNumObj object
* @return NULL if failed
*/
static
|