lukew3 / mathgenerator

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.
https://lukew3.github.io/mathgenerator
MIT License
680 stars 175 forks source link

Fixed the coefficient of x issue #373

Closed parthb83 closed 2 years ago

parthb83 commented 2 years ago

For issue #348.

Made the changes to fix the coefficient issue. This would generate:

y = x + b if numerator and denominator are same. y = b if numerator is zero and y-intercept is non-zero. y = 0 if numerator is zero and y-intercept is zero.