lukew3/mathgenerator
lukew3/mathgenerator has 737 GitHub stars and 184 forks. GitHot measured -1 stars in 24 hours, -2 in 7 days, and -1 in 15 days. Last checked 2026-11-20 20:50 UTC. Last push 2025-06-24.
实测星标增长
- 24小时
- -1
- 7天
- -2
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
A math problem generator, created for the purpose of giving self-studying students and teaching organizations the means to easily get access to high-quality, generated math problems to suit their needs.
学习资源README.md
原文mathgenerator
[!WARNING] I (lukew3), am no longer interested in maintaining this project. If you have a use case for this project and have the abilities to grow it and ensure/improve it's quality, email me at [email protected] and I will consider adding you as a maintainer. Thanks!
A math problem generator, created for the purpose of giving teachers and students the means to easily get access to random math exercises to suit their needs.
To try out generators, go to https://mathgenerator-demo.netlify.app
See CONTRIBUTING.md for information about how to contribute.
Table of Contents
Installation
The project can be install via pip
pip install mathgenerator
Usage
Here is an example of how you would generate an addition problem:
import mathgenerator
#generate an addition problem
problem, solution = mathgenerator.addition()
#another way to generate an addition problem using genById()
problem, solution = mathgenerator.genById(0)
You may prefer to use import mathgenerator as mg and run functions like mg.addition() so that you don't have to type as much.
Problem/solution pairs are generated with either:
mathgenerator.<generator_name>()- generates a problem, solution set from the given generator name.mathgenerator.genById(id)- generates a problem, solution set with generator id provided by theidparameter
You can also use getGenList() to return a list of all generators included in the library in the format:
[funcname, subjectname]
Documentation
Documentation can be found at https://lukew3.github.io/mathgenerator