31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

d3 rat point random d3 rat point on unit circle(int D = 16383)<br />

returns a point close to the unit circle whose coordinates<br />

are random rationals of the form i/D where i<br />

is a random integer in the range [0 .. D]. <strong>The</strong> default<br />

value of D is 2 14 − 1.<br />

void random d3 rat points on unit circle(int m, int D, list& L)<br />

returns a list L of n points . . . .<br />

void random d3 rat points on unit circle(int m, list& L)<br />

d3 rat point random d3 rat point on sphere(int R)<br />

returns a list L of n points . . . . <strong>The</strong> default value of<br />

D is used.<br />

returns a point with integer coordinates close to the<br />

sphere with radius R centered at the origin.<br />

void random d3 rat points on sphere(int m, int R, list& L)<br />

returns a list L of n points . . . .<br />

d3 rat point random d3 rat point on unit sphere(int D = 16383)<br />

returns a point close to the unit sphere whose coordinates<br />

are random rationals of the form i/D where i is a<br />

random integer in the range [0 .. D]. <strong>The</strong> default value<br />

of D is 2 14 − 1. In 2d this function is equivalent to<br />

point on unit circle.<br />

void random d3 rat points on unit sphere(int m, int D, list& L)<br />

returns a list L of n points . . . .<br />

void random d3 rat points on unit sphere(int m, list& L)<br />

returns a list L of n points . . . . <strong>The</strong> default value of<br />

D is used.<br />

d3 rat point<br />

random d3 rat point on paraboloid(int maxc)<br />

returns a point (x, y, z) with x and y random integers<br />

in the range [−maxc .. maxc], and z = 0.004 ∗ (x ∗ x +<br />

y ∗ y) − 1.25 ∗ maxc. <strong>The</strong> function does not make sense<br />

in 2d.<br />

void random d3 rat points on paraboloid(int n, int maxc, list& L)<br />

returns a list L of n points . . . .<br />

void lattice d3 rat points(int n, int maxc, list& L)<br />

returns a list L of approximately n points. <strong>The</strong> points<br />

have integer coordinates id/maxc for an appropriately<br />

chosen d and −maxc/d ≤ i ≤ maxc/d.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!