lib_xalg

Crates.iolib_xalg
lib.rslib_xalg
version0.3.1
sourcesrc
created_at2019-07-19 02:54:32.457769
updated_at2019-07-23 14:42:47.245524
descriptionA library for generating random formulas
homepage
repositoryhttps://github.com/LEXUGE/xalg
max_upload_size
id149994
size18,280
Ying Kanyang (Harry Ying) (LEXUGE)

documentation

README

A library for generating random formulas.

Features

  • Export to LaTeX.
  • Control the operators which are involved in generating process.

Getting Started

use {
   lib_xalg::{
       formula::{OperatorFlag, OperatorFlag::*},
       generate,
   },
   std::collections::HashSet,
};
let hashset = [Add, Sub, Mul, Div, Pow].iter().copied().collect::<HashSet<OperatorFlag>>();
println!("{}", generate(5, 3, 3, &hashset).unwrap());
Commit count: 11

cargo fmt