Mathgenerator

Github
pip install mathgenerator

mathgenerator is a python package that enables users to easily generate a variety of math problems, with customizable settings.


Demo

Below are some pre-generated samples of generator output. If you would like to generate problems with the actual library, visit the WebAssembly version of this page. Note that it will take about 30 seconds to load

Addition

function name:

addition

subject:

basic_math

kwargs:

maxSum=99, maxAddend=50

id:

0

Problem:

2+2=

Solution:

4

Available Generators

Click a generator to show a sample problem and more info

Addition

Subtraction

Multiplication

Division

Binary Complement 1s

Modulo Division

Square Root

Power Rule Differentiation

Square

LCM (Least Common Multiple)

GCD (Greatest Common Denominator)

Basic Algebra

Logarithm

Fraction to Decimal

Decimal to Binary

Binary to Decimal

Fraction Division

Integer Multiplication with 2x2 Matrix

Area of Triangle

Triangle exists check

Midpoint of the two point

Factoring Quadratic

Third Angle of Triangle

Solve a System of Equations in R^2

Distance between 2 points

Pythagorean Theorem

Linear Equations

Prime Factorisation

Fraction Multiplication

Angle of a Regular Polygon

Combinations of Objects

Factorial

Surface Area of Cube

Surface Area of Cuboid

Surface Area of Cylinder

Volume of Cube

Volume of Cuboid

Volume of cylinder

Surface Area of cone

Volume of cone

Common Factors

Intersection of Two Lines

Permutations

Cross Product of 2 Vectors

Compare Fractions

Simple Interest

Multiplication of two matrices

Cube Root

Power Rule Integration

Fourth Angle of Quadrilateral

Quadratic Equation

HCF (Highest Common Factor)

Probability of a certain sum appearing on faces of dice

Exponentiation

Confidence interval For sample S

Comparing surds

Fibonacci Series

Trigonometric Values

Sum of Angles of Polygon

Mean,Standard Deviation,Variance

Surface Area of Sphere

Volume of Sphere

nth Fibonacci number

Profit or Loss Percent

Binary to Hexidecimal

Multiplication of 2 complex numbers

Geometric Progression

Geometric Mean of N Numbers

Harmonic Mean of N Numbers

Euclidian norm or L2 norm of a vector

Angle between 2 vectors

Absolute difference between two numbers

Dot Product of 2 Vectors

Binary 2's Complement

Inverse of a Matrix

Area of a Sector

Mean and Median

Determinant to 2x2 Matrix

Compound Interest

Decimal to Hexadecimal

Percentage of a number

Celsius To Fahrenheit

AP Term Calculation

AP Sum Calculation

Converts decimal to octal

Converts decimal to Roman Numerals

Degrees to Radians

Radians to Degrees

Differentiation

Definite Integral of Quadratic Equation

isprime

Binary Coded Decimal to Integer

Complex To Polar Form

Union,Intersection,Difference of Two Sets

Base Conversion

Curved surface area of a cylinder

Perimeter of Polygons

Power of Powers

Quotient of Powers with Same Base

Quotient of Powers with Same Power

complex Quadratic Equation

Leap Year or Not

Minute to Hour conversion

Decimal to Binary Coded Decimal

Circumference

Combine Like terms

signum function

Conditional Probability

Arc length of Angle

Binomial distribution

Stationary Points

Expanding Factored Binomial

Area of Circle

Volume of frustum

Equation of line from two points

Area of Circle given center and a point on circle

Factors of a number

Volume of Hemisphere

Percentage difference

Percentage error

Greatest Common Divisor of N Numbers

Product of scientific notations

Volume of pyramid

Surface area of pyramid

Is Composite