# for compatibility with versions older than 0.31
math.arccosh   := arccosh;
math.arccoth   := arccoth;
math.arcsinh   := arcsinh;
math.arctan2   := arctan2;
math.arctanh   := arctanh;
math.argument  := argument;
math.besselj   := besselj;
math.bessely   := bessely;
math.binomial  := binomial;
math.ceil      := ceil;
math.conjugate := conjugate;
math.cot       := cot;
math.coth      := coth;
math.csc       := csc;
math.erf       := erf;
math.erfc      := erfc;
math.fact      := fact;
math.fma       := fma;
math.frac      := frac;
math.frexp     := frexp;
math.heaviside := heaviside;
math.hypot     := hypot;
math.irem      := irem;
math.ldexp     := ldexp;
math.log       := log;
math.log10     := log10;
math.modf      := modf;
math.roundf    := roundf;
math.sec       := sec;

# for compatibility with versions prior to 0.31.5
tables.put         := put;
tables.remove      := purge;
tables.bintersect  := bintersect;
tables.bisEqual    := bisEqual;
tables.bminus      := bminus;
tables.duplicates  := duplicates;

utils.writeCSV := utils.writecsv;

# Environment variables
_EnvEps := Eps;
if type(_Env) = table then
   _EnvMinLong := _Env.MinLong;
   _EnvMaxLong := _Env.MaxLong;
   _EnvBufferSize := _Env.BufferSize;
   _EnvPathSep := _Env.PathSep;
   _EnvMore := _Env.More;
   _EnvWithVerbose := _Env.WithVerbose;
   _EnvLongTable := _Env.LongTable;
   _EnvRelease := _Env.Release;
   _EnvGdiDefaultOptions := _Env.GdiDefaultOptions
fi;


# Backward compatibility to Agena 0.33 and earlier

isBoolean := isboolean;
isComplex := iscomplex;
isNegint := isnegint;
isNonnegint := isnonnegint;
isNumber := isnumber;
isNumeric := isnumeric;
isPair := ispair;
isPosint := isposint;
isString := isstring;
isTable := istable;
isSet := isset;
isSequence := isseq;
isStructure := isstructure;
loadClib := loadclib;
toNumber := tonumber;
toSeq := toseq;
toSet := toset;
toString := tostring;
toTable := totable
isEqual := isequal;
bisEqual := bisequal;

strings.toChars := strings.tochars;
strings.toBytes := strings.tobytes;
strings.isAbbrev := strings.isabbrev;
strings.isAlpha := strings.isalpha;
strings.isAlphaSpace := strings.isalphaspace;
strings.isAlphaNumeric := strings.isalphanumeric;
strings.isEnding := strings.isending;
strings.isFloat := strings.isfloat;
strings.isLowerLatin := strings.islowerlatin;
strings.isLowerAlpha := strings.isloweralpha;
strings.isUpperLatin := strings.isupperlatin;
strings.isUpperAlpha := strings.isupperalpha;
strings.isMagic := strings.ismagic;
strings.isLatin := strings.islatin;
strings.isLatinNumeric := strings.islatinnumeric;
strings.isNumber := strings.isnumber;
strings.isNumberSpace := strings.isnumberspace;

package.checkClib := package.checkclib;

math.isPrime := math.isprime;
math.nextPrime := math.nextprime;
math.prevPrime := math.prevprime;
math.toDecimal := math.todecimal;
math.toRadians := math.toradians;

utils.isLeapYear := utils.isleapyear;

