up previous next
NewRingTwinFloat

create a new twin-float ring

Syntax
NewRingTwinFloat(Prec: INT): RING

Description
Create a new twin-float ring with bit precision Prec .

NOTE: this interface is preliminary, and may soon change.

Example
/**/ RR32 := NewRingTwinFloat(32);
/**/ Use RR32[x];
/**/ (3*x-1)/3;
x -0.3333333333333333333

/**/ RR64 := NewRingTwinFloat(64);
/**/ Use RR64[x];
/**/ (3*x-1)/3;
x -0.333333333333333333333333333333333333333

See Also