P-adic numbers

crate documentation minimum rustc 1.31

A collection of tools for p-adic numbers in Rust.

This includes a p-adic type and a rational type.

Status

This library is currently in development. It is not yet ready for use.

Usage

Add this to your Cargo.toml:

toml [dependencies] padic = "0.1.4"

rust use padic::Ratio; let ratio = Ratio::new(1, 3); let padic = r.to_padic(5, 6); assert_eq!(padic.valuation, 0); assert_eq!(padic.expansion, vec![3, 1, 3, 1, 3, 2]); assert_eq!(padic.to_string(), "...3 1 3 1 3 2");

Helpers functions

Resources

TODOs

Ratio

P-adic

Bugs

License

MIT