Polycode: Encode a binary file as a rational polynomial function

3 months ago 3

Usage

$ echo -n "meow" | polycode --verbose --file /dev/stdin (109) * 1 + (-8) * 1 * (x - 0) + (9) * 1 * (x - 0) * (x - 1) + (-10/3) * 1 * (x - 0) * (x - 1) * (x - 2)

About

polycode is a program that allows you to encode arbitrary binary files as a rational polynomial function, using Newton's interpolation and divided differences.

Requirements

  • A decently modern Rust toolchain.
  • gmp
  • mpfr
  • mpc

Build Instructions

cargo build --release
Read Entire Article