addaptic

Reference Setup

lzu_setup

Builds the shared table of high-precision constants; call it before anything else.

long lzu_setup();

The functions share a table of constants, among them π, e and the logarithm of every base, carried far wider than the default precision. This builds it. Call it once, before the first calculation and before starting any thread that will compute.

lzu_setup();
CLZNumber x( "2" ), root;
lz_root_2( &x, &root );
lzu_takedown();

See also

  • lzu_takedown Releases the shared table of constants; call it after the last calculation.
  • lzu_set_answer_limit Sets how many places an answer may need before it is refused, for the whole process.