Code Monkey home page Code Monkey logo

Comments (11)

akashsara avatar akashsara commented on June 1, 2024

I'll take this up, please assign it to me.

Also it's possible that the generated lines are parallel and so have no intersection, what should be done in this case? Should we regenerate the problem or should the solution be something like "No Intersection"?

from mathgenerator.

SubahanM avatar SubahanM commented on June 1, 2024

i would like to contribute

from mathgenerator.

lukew3 avatar lukew3 commented on June 1, 2024

@akashsara I think that there should be the possibility of parallel lines included. "No Intersection" would be a good way to express the solution.

from mathgenerator.

akashsara avatar akashsara commented on June 1, 2024

Alright. Another question - does this require fractions as well? While I think it'll make things a bit more complicated, you've given a fraction in the example. If fractions are allowed for either m, b or both, what are the restrictions on the fractions?

On another note, is it maybe time to consider separating out the mathgen.py file? As more and more generators are added, it'll get a bit messy. In addition, submitting PRs might be an issue since any PR that is merged would cause conflicts with other PRs since they're all modifying the same file.

from mathgenerator.

lukew3 avatar lukew3 commented on June 1, 2024

does this require fractions as well?

I think that m should contain fractions, not b though. Fractional slopes are often found in this type of problem. Plus, if slopes were only integers, the point of intersections would be very far from the origin. I'd say limit the denominator to 6 perhaps.

On another note, is it maybe time to consider separating out the mathgen.py file?

I was thinking about this too. Do you have any suggestions? Maybe it could be modularized by subject like algebra, geometry, early math, calculus, etc.

from mathgenerator.

akashsara avatar akashsara commented on June 1, 2024

I think that m should contain fractions, not b though. Fractional slopes are often found in this type of problem. Plus, if slopes were only integers, the point of intersections would be very far from the origin. I'd say limit the denominator to 6 perhaps.

Alrighty, then I'll keep a 50% chance of m being a fraction where the denominator is from 1-6 and the numerator is -10 to 10. I'll just let it choose a denominator from 1-6, if it's 1 it just becomes a whole number.

I was thinking about this too. Do you have any suggestions? Maybe it could be modularized by subject like algebra, geometry, early math, calculus, etc.

I was thinking more of having one file per generator and then group the generators (files) in some way. The subject-wise method you mentioned is one possible option. Since the user will obviously know what kind of problem they want, subject-wise organization also means the user will be able to do a sort of search where they choose their subject and then problem.

from mathgenerator.

lukew3 avatar lukew3 commented on June 1, 2024

@akashsara Okay. I'm open to either of those. I'll open this as an issue and see if anybody else has any input.

from mathgenerator.

lukew3 avatar lukew3 commented on June 1, 2024

Issue #99 opened

from mathgenerator.

prajjval30-zz avatar prajjval30-zz commented on June 1, 2024

I would like to contribute

from mathgenerator.

helplessThor avatar helplessThor commented on June 1, 2024

I would like to contribute, please assign it to me, i'm an advanced python coder

from mathgenerator.

akashsara avatar akashsara commented on June 1, 2024

@prajjval30 @helplessThor the issue has been resolved and the PR merged. Do take a look at the other open issues in the repo though.

from mathgenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.