• Stars
    star
    630
  • Rank 71,328 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created about 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

mathgenerator

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 the id parameter

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

More Repositories

1

stemPlayerOnline

An online stem player. Inspired by but not affiliated with YEEZY TECH X KANO Stem Player.
JavaScript
28
star
2

resume

Automatic resume building and version management with JSONresume and Github Actions. Click the link below to download the pdf
HTML
23
star
3

ghlog

Write to a logbook/journal stored in Github from the command line.
Python
12
star
4

worksheetgen

A worksheet/assessment generator for teachers who want to simplify their workflow.
Python
5
star
5

uni2db

The Unified University Database (uni2db). Tools to get information about courses offered at various colleges/universities.
Python
5
star
6

congol

Conway's game of life for 2 players
JavaScript
4
star
7

ttbot

Tiktok bot interface
Python
3
star
8

osu-rooms-api

A json API for getting information about classrooms at the Ohio State University.
Python
3
star
9

recolorbot

Reddit bot that colorizes a black and white image post on Reddit
Python
2
star
10

vid2slides

Extract a slideshow from a video presentation
Python
2
star
11

garmin-sleep-grabber

Fetches your sleep data from Garmin Connect and saves in a csv file
Python
2
star
12

ideaspot

A website where users can save and share their ideas.
JavaScript
2
star
13

beautifulvhs

A website to show off the beautiful designs of retro vhs packaging in 3d.
JavaScript
2
star
14

3cards

Flashcards on web3. Permanently stored, owned by you, and resistant to authoritative control. Powered by arweave.
TypeScript
2
star
15

ttr-typing-test-file-format

A standard for saving and replaying typing tests
1
star
16

the-osu-rec-space-availability-charts

Python
1
star
17

ttr-recorder

Javascript package to record and export .ttr typing test files
JavaScript
1
star
18

typ-player

A website to watch typing test replay files
JavaScript
1
star
19

competitive-programming

My competitive programming code
Python
1
star
20

easyrice

A tool for making your Linux setup look cooler (AKA Ricing). Enables users to easily share and switch between different setups
Python
1
star
21

domain-check

Minimal, low bandwidth, noscript domain availability checker.
Python
1
star
22

ReCrypto

A cryptocurrency rewarded application for doing good things to save the earth. Created at Hyland Hackathon 2020.
HTML
1
star