|
Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
|
stuff to make random numbers in bertini2 More...
#include "bertini2/random.hpp"Functions | |
| mpfr_float | bertini::RandomMp () |
| create a random number, at the current default precision | |
| mpfr_float | bertini::RandomMp (const mpfr_float &a, const mpfr_float &b) |
| create a random number in a given interval, at the current default precision | |
| mpfr_float | bertini::RandomMp (const mpfr_float &a, const mpfr_float &b, unsigned num_digits) |
| create a random number in a given interval, at the specified precision | |
| mpfr_float | bertini::RandomMp (unsigned num_digits) |
| create a random number, at the specified precision | |
| void | bertini::RandomMpAssign (mpfr_float &a, unsigned num_digits) |
| Set an existing mpfr_float to a random number, to a given precision. | |
stuff to make random numbers in bertini2
| mpfr_float bertini::RandomMp | ( | ) |
create a random number, at the current default precision
| mpfr_float bertini::RandomMp | ( | const mpfr_float & | a, |
| const mpfr_float & | b ) |
create a random number in a given interval, at the current default precision
| mpfr_float bertini::RandomMp | ( | const mpfr_float & | a, |
| const mpfr_float & | b, | ||
| unsigned | num_digits ) |
create a random number in a given interval, at the specified precision
| mpfr_float bertini::RandomMp | ( | unsigned | num_digits | ) |
create a random number, at the specified precision
| num_digits | the precision that you desire. |
| void bertini::RandomMpAssign | ( | mpfr_float & | a, |
| unsigned | num_digits ) |
Set an existing mpfr_float to a random number, to a given precision.
This function is how to get random numbers at a precision different from the current default.