User:Stephen J. Brooks/algebraics/src

Here's the source code. OpenGL graphics stuff is mixed in with maths stuff. The mathematical routines are findroots_inner (arguments given in findroots) and precalc (returns a set of algebraic numbers in the Point structure, x+iy is the value, o is the order of the polynomial that produced them and h is the complexity measure of the polynomial). LSet is just a container object (like Vector or Vector in C++). I is the complex number i. frnd(x) produces a random double-precision number on the interval [0,x). Blocks with   are logfiles, can be removed if necessary.