lib_xalg 0.2.1

A library for generating random formulas
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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::{NeedBrackets::False, OperatorFlag, OperatorFlag::*},
       generate,
   },
   std::collections::HashSet,
};
let hashset = [Add, Sub, Mul, Div, Pow].iter().copied().collect::<HashSet<OperatorFlag>>();
generate(5, 3, 3, &hashset).unwrap().export(False);
```