zeckendorf__doc

Knuth Fibonacci multiplication, Zeckendorf and Bergman representations of big integers

Version:
0.9d
Copyright:
Jean-François Burnol
License:
lppl1.3c
Packaged on:
11/23/2025 12:10:20
Number of files:
2
Size on disk:
189.47 kB

This package extends the \xinteval syntax to do algebra in Q(phi) (where phi is the golden ratio), and compute Fibonacci numbers, Zeckendorf representations of positive integers and Bergman phi-representations of the positive elements of Z[phi]. The $ character is used to compute the Knuth Fibonacci multiplication. The package can be used either in a LaTeX document, or with Plain eTeX, or on the command line in an interactive session using eTeX. Being based upon xintexpr, it allows to compute with “arbitrarily” big integers, the reasonable use being with integers of at most a few hundreds of digits.