Code Monkey home page Code Monkey logo

Comments (7)

cdschmit avatar cdschmit commented on June 21, 2024

Is this still just a wish-list item? I seem to have more and more students attempting to enter fractions.

from prairielearn.

mwest1066 avatar mwest1066 commented on June 21, 2024

@cdschmit are the students doing this on v2 or v3 questions? We've tried to mitigate the issue in v3, but I'm open to revisiting this issue if it's still a problem.

from prairielearn.

cdschmit avatar cdschmit commented on June 21, 2024

Hmmm...Yeah, I think it is a V2 problem. In v3, does it evaluate? I'll update it and see what happens.

from prairielearn.

mwest1066 avatar mwest1066 commented on June 21, 2024

In v3 it currently doesn't evaluate, but it tells students that it's invalid and it lets them try again with no penalty (doesn't count as a grading attempt).

from prairielearn.

tbretl avatar tbretl commented on June 21, 2024

On the one hand, this is a small change to eliminate a pain point.

On the other hand, if you allow fractions, then why not other mathematical expressions like cos(1) or exp(-2) or 3^4 (equivalently 3**4)?

I think we'd have to implement even fractions in a similar way to how pl-symbolic-input works - safe evaluation by walking the AST.

from prairielearn.

tbretl avatar tbretl commented on June 21, 2024

Maybe an easy option would be for pl-number-input to allow both floating-point and rational numbers, where the format for a rational number must be of the form m / n. Maybe that's already what you were thinking. That's a trivial change.

from prairielearn.

mwest1066 avatar mwest1066 commented on June 21, 2024

For some reason (experience with other platforms) it does seem that some students expect to be able to type fractions into numeric answer boxes. Is it easy to implement this without pulling in all of sympy? Just special-casing strings with a / in them?

from prairielearn.

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.