View Code? Open in Web Editor
NEW
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.
Home Page: https://lukew3.github.io/mathgenerator
License: MIT License
Python 99.63%
Makefile 0.29%
Shell 0.08%
mathgenerator's People
mathgenerator's Issues
Example Problem:
What is the value of sin((2pi)/3)?
Example Solution:
sqrt(3)/2
Inside of trig function should be values found on unit circle. This includes pi/6, pi/4, pi/3, pi/2 and equivalents in other quadrants.
Example Problem:
sqrt(16)
Example Solution:
4
Solutions should be integers 1-12.
Example Problem:
2x+4=8
Example Solution:
x=2
Variable should not have multiple degrees. Only 1 solution. Other generators can be made for more complex problems.
Example Problem:
f(x)=x^3-3x
Example Solution:
(-1, 2), (1, -2)
Problem Example:
(1/2)*(2/5)=
Problem Solution:
1/5
Dividing two fractions :
Example Problem
(1/3)
-------
(2/3)
Example solution : 0.5
Example Problem:
5^2=
Example Solution:
25
Add a function that gets the output of a function when you input an Id. A function that gives you the title of a function when you input an Id would also be useful.
Example problem:
2x^2+x+3x^2+5x
Example solution:
5x^2+6x
Example Problem:
A triangle has internal angles of 32 degrees, 63 degrees, and x degrees. Find the value of x.
Example Solution:
85
Example Problem:
Simplify the radical expression sqrt(72).
Example Solution:
6sqrt(2)
At least one perfect square should be able to be removed from the radical.
Problem - Two numbers are given ,example 36 and 23 and we have to find their highest common factor.
Solution - The HCF of 36 and 24 is 12
Example Problem:
8/2=
Example Solution:
4
Example Problem:
Which symbol represents this relationship 3/2 O 5/6?
Example Solution:
>
I don't really like how this problem is formatted but I like the concept. If you have a better idea of what the problem/solution should look like please comment below.
Example Problem:
3*[[5,0],[1,3]]=
Example Solution:
[[15,0],[3,9]]
The matrice [[5,0],[1,3]] looks like this:
| 5 , 0 |
| 1 , 3 |
Cylinder, Cube, Cubiod, Cone and so on.
@lukew3 Can you assign this to me, I'd like to work on this?
Example problem:
Find the solution to the following system of equations: x-7y = -11, 5x+2y=-18.
Example solution:
(-4, 1)
Problem should be generated backwards so that the solution is a set of integers, not fractions or decimals.
Check the table in README.md to determine if your generator has already been implemented.
Example Problem:
(5/8)/(2/4)=
Example Solution:
(5/4)
Example Problem:
Find the midpoint between the points (-3,2) and (7,-12).
Eample Solution:
(2, -5)
Default range should be between -20 and 20 for x and y values.
Example: cuberoot(25) and squareroot(37).
Solution: cuberoot(25) < squareroot(37).
Ranges: Values from 0 to 100
Roots: 2 to 10
Assign this to me if this is fine.
Some functions have parameters that don't do what they are supposed to. These need to be fixed before next release.
I want to add the function that gives Sine,Cosine,Tangent of only the standard Angles which includes 0,30,45,60 & 90 degrees.
Sample problem:- What is the Sin(30)?
Solutions:- 1/2
Just a basic idea of the function.Can add the remaining functions too if required.
Problem: 3+2i, 1-i
Solution: 5-i
Range for Real and Imaginary numbers between -20, 20
Example Problem:
Can a triangle with side lengths of 3, 2, and 6 exist?
Example Solution:
No
One side of a triangle cannot be greater than the sum of the other two.
Side lengths should be between 1 and 50.
Generate random number a and calculate cube root (cbrt) with two arguments: minNo and maxNo like in sqrt function.
Just like the power rule differentiation function, add a power rule integration function.
would be easy to build a generator to solve for ax^2+bx+c=0, maybe phrase it like some operation on its roots.
Example Problem:
Find the derivative of 5x^4
Example Solution:
20x^3
Sample problem
Given principle amount is Rs.1000, rate of interest 5% and time period is 5 years. Calculate the simple interest.
Solution
SI = (p * r * t)/100 = 250
Generate two random matrices A and B such that cols of A == rows of B, then compute the resultant matrix multiplication and display the output.
I want to add the function that gives number of combinations for picking x objects at a time from y different objects.
Sample problem:- Number of combinations for picking 4 objects at a time from 6 objects.
Solutions:- There are 15 different combinations available.
Correct class instances with the same id so that they have seperate id's, with the next being 1 greater than the last.
Example Problem:
Find the distance between the points (1,2) and (4,-6).
Eample Solution:
sqrt(73)
Default range should be between -20 and 20 for x and y values.
Example Problem:
A quadrilateral has internal angles of 41 degrees, 104 degrees, 91 degrees, and x degrees. Find the value of x.
Example Solution:
124
The idea is to generate docstrings for each and every function which can be returned by the generator class using help {generatorName}
by adding a doc to Generator class. This will assist those who use this library.
Example Problem -
Find the angle of a regular polygon with 6 sides
Solution -
120
Problem
Find the factorial of an integer i.
Solution
Creating a recursive function fact(int i) that returns factorial of.
Advantage
Function fact(int i) can also used for creating function for permutation and combination
It will be able to generate linear equations in n variables. (n will be passed to the function)
I want to add the function that gives number of permutations for picking x objects at a time from y different objects.
Sample problem:- Number of permutations for picking 4 objects at a time from 6 objects.
Solutions:- There are 360 different permutations available.
@lukew3 the project lacks decimal to binary conversion questions, I was just wondering if I can make a function that does that?
For example:
Binary of 61 = 111101
Example Problem:
Find the the length of the hypotenuse given the other two sides, 7 and 9.
Example Solution:
sqrt(130)
The range could be 1:20.
I can submit a pull request for this if the idea works!
Problem should be "Find the derivative of " + + " ".
Example Problem:
Find the area of a triangle with side lengths 3, 4, and 5.
Example Solution:
6
Side lengths should be less than 20.
Example Problem:
Find the point of intersection of these two lines: y = (1/2)x + 6, y = 2x-2.
Example Solution:
((16/3),(26/3))
Given the form y = mx + b, m and b should be between -10 and 10.
This project has grown a lot and it seems like it is time for a new structure, better suited to the size of this project. I'm currently looking for ideas on how to better restructure this project. This comment will be edited as new ideas are proposed.
Current Ideas are:
Place each generator into a seperate file. Organize files by type of problem.
Group generators into class-level like Algebra, Calculus, or Geometry. Multiple generators are still stored in the same file.
Non-exclusive ideas:
Make a module for common functions that might be used in multiple generators. Could be called utils.py
.
Consider adding docstrings to generator class so that users can understand what the generator does. See #77 .
Example Problem:
4*6=
Example Solution:
24
Example Problem:
x^2+x-6
Example Solution:
(x-2)(x+3)