https://github.com/stackotter/maths-problem-gen
A maths problem generator written in Rust
https://github.com/stackotter/maths-problem-gen
maths rust
Last synced: about 1 month ago
JSON representation
A maths problem generator written in Rust
- Host: GitHub
- URL: https://github.com/stackotter/maths-problem-gen
- Owner: stackotter
- Created: 2022-08-30T12:51:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-04T00:22:18.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T06:16:38.877Z (3 months ago)
- Topics: maths, rust
- Language: Rust
- Homepage:
- Size: 78.1 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Maths Problem Gen
A maths problem generator aiming to be lightweight and fast. Creating it for maths revision and to
integrate into my friend's Discord bot## Goals
- [x] Expressive system for representing maths in Rust
- [x] Automatic exact arithmetic solver
- [x] Render the maths problems to images (for Discord bot and usability)
- [ ] Generate simple maths problems
- [ ] Generate non-obvious multiple choice options for the problems
- [ ] Generate more complex maths problems (e.g. derivatives, integrals, exact trigonometric values
etc.)## Improvements
- [ ] Use a native maths renderer to avoid the performance issues with the current node-based maths
rendering API that we're using.## Dependencies
### Install on macOS
```sh
brew install pkg-config librsvg
```### Other platforms
You're on your own.
## Running
### First times
```sh
git submodule update --init --recursive
```### Start the rendering API
```sh
cd math-api
npm i
npm run start
```### Run the program
```sh
cargo run
```