Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polynomials Lib

Polynomials

use rust_polynomials_lib::polynomials::Polynom;
let p1 = Polynom::<i32>::from_vector(vec![1, 2, 3]);

let x = Polynom::<i32>::x();

let const_p = Polynom::<i32>::from_constant(2)

let p2 = x.clone() * x.clone() * 7 - x.clone() * 2 + const_p.clone();

let p3 = p1.clone() * p2.clone();

// natively

Coefficients

Some custom coefficients are also implemented.

use rust_polynomials_lib::coefficients::{NaturalNumber, SquaredMatrix, RationalNumber};

// SquaredMatrix type is generated by another type and the size
// Polynomials type can be generated by other types which implement the requirements. 
// Polynoms::eval can be used with another type rather the T itself (Polynomial<T>)

About

Rust lib to work with polynomials

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages