|
BWAPI
|
#include <CGAL/CORE/BigFloatRep.h>

Go to the source code of this file.
Classes | |
| class | BigFloat |
| BigFloat is a class of Float-Point number with error bounds. More... | |
Typedefs | |
| typedef RCImpl< BigFloatRep > | RCBigFloat |
Functions | |
| BigFloat | operator+ (const BigFloat &x, const BigFloat &y) |
| operator+ | |
| BigFloat | operator- (const BigFloat &x, const BigFloat &y) |
| operator- | |
| BigFloat | operator* (const BigFloat &x, const BigFloat &y) |
| operator* | |
| BigFloat | operator/ (const BigFloat &x, const BigFloat &y) |
| operator/ | |
| bool | operator== (const BigFloat &x, const BigFloat &y) |
| operator== | |
| bool | operator!= (const BigFloat &x, const BigFloat &y) |
| operator!= | |
| bool | operator>= (const BigFloat &x, const BigFloat &y) |
| operator>= | |
| bool | operator> (const BigFloat &x, const BigFloat &y) |
| operator> | |
| bool | operator<= (const BigFloat &x, const BigFloat &y) |
| operator<= | |
| bool | operator< (const BigFloat &x, const BigFloat &y) |
| operator< | |
| int | sign (const BigFloat &x) |
| sign | |
| BigFloat | div2 (const BigFloat &x) |
| div2 | |
| BigFloat | abs (const BigFloat &x) |
| abs | |
| int | cmp (const BigFloat &x, const BigFloat &y) |
| cmp | |
| BigFloat | pow (const BigFloat &, unsigned long) |
| pow | |
| BigFloat | power (const BigFloat &x, unsigned long p) |
| power | |
| BigFloat | root (const BigFloat &, unsigned long k, const extLong &, const BigFloat &) |
| BigFloat | root (const BigFloat &x, unsigned long k) |
| BigFloat | sqrt (const BigFloat &x) |
| sqrt to defAbsPrec: | |
| BigFloat | centerize (const BigFloat &a, const BigFloat &b) |
| convert an BigFloat Interval to a BigFloat with error bits | |
| long | minStar (long m, long n) |
| minStar(m,n) returns the min-star of m and n | |
File I/O Functions | |
| void | readFromFile (BigFloat &bf, std::istream &in, long maxLength=0) |
| read from file | |
| void | writeToFile (const BigFloat &bf, std::ostream &in, int base=10, int charsPerLine=80) |
| write to file | |
| std::ostream & | operator<< (std::ostream &o, const BigFloat &x) |
| IO stream operator<<. | |
| std::istream & | operator>> (std::istream &i, BigFloat &x) |
| IO stream operator>> | |
Functions for Compatibility with BigInt (needed by Poly, Curves) | |
| bool | isDivisible (const BigFloat &a, const BigFloat &b) |
| isDivisible(a,b) = "is a divisible by b" | |
| bool | isDivisible (double x, double y) |
| BigFloat | div_exact (const BigFloat &x, const BigFloat &y) |
| div_exact(x,y) returns the BigFloat quotient of x divided by y | |
| BigFloat | div_exact (double x, double y) |
| BigFloat | gcd (const BigFloat &a, const BigFloat &b) |
| gcd(a,b) = BigFloat(gcd(a.mantissa,b.matissa), min(a.exp(), b.exp()) ) | |
| typedef RCImpl<BigFloatRep> RCBigFloat |
cmp


div2


div_exact(x,y) returns the BigFloat quotient of x divided by y
This is defined only if isDivisible(x,y).


gcd(a,b) = BigFloat(gcd(a.mantissa,b.matissa), min(a.exp(), b.exp()) )


| bool isDivisible | ( | const BigFloat & | a, |
| const BigFloat & | b | ||
| ) | [inline] |
isDivisible(a,b) = "is a divisible by b"
Assuming that a and b are in coanonized forms. Defined to be true if mantissa(b) | mantissa(a) && exp(b) = min*(exp(b), exp(a)). This concepts assume a and b are exact BigFloats.


| bool isDivisible | ( | double | x, |
| double | y | ||
| ) | [inline] |

| long minStar | ( | long | m, |
| long | n | ||
| ) | [inline] |
minStar(m,n) returns the min-star of m and n


operator!=

operator*

operator+

operator-

operator/

operator<

| std::ostream& operator<< | ( | std::ostream & | o, |
| const BigFloat & | x | ||
| ) | [inline] |
operator<=

operator==

operator>

operator>=

| std::istream& operator>> | ( | std::istream & | i, |
| BigFloat & | x | ||
| ) | [inline] |
power


| void readFromFile | ( | BigFloat & | bf, |
| std::istream & | in, | ||
| long | maxLength = 0 |
||
| ) |
read from file
root(x,k,prec,xx) returns the k-th root of x to precision prec. The argument x is an initial approximation.


sqrt to defAbsPrec:

| void writeToFile | ( | const BigFloat & | bf, |
| std::ostream & | in, | ||
| int | base = 10, |
||
| int | charsPerLine = 80 |
||
| ) |
write to file
1.7.6.1