blob: 2633ed8d11dc9b4ac2a95611a6e1640f8120566c (
plain) (
tree)
|
|
#ifndef BUILTIN_H
#define BUILTIN_H
#include "model.h"
#include <string>
#include <gmpxx.h>
using std::string;
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
|