Comments (7)
Is this still just a wish-list item? I seem to have more and more students attempting to enter fractions.
from prairielearn.
@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.
Hmmm...Yeah, I think it is a V2 problem. In v3, does it evaluate? I'll update it and see what happens.
from prairielearn.
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.
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.
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.
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)
- Validate sync status before performing JSON edits
- Allow aliases for sharing names HOT 1
- Question authorship tracking
- Requirements for storing sharing status in JSON files
- pl-richtext-editor should have a word/character count as students type HOT 2
- pl-richtext-editor element does not mark submissions as invalid if a previous submission was valid HOT 10
- Add CI test for submission panel socket retrieval in external grading question
- Text overflow in Mobile view for pl-order-blocks component
- Add error handling if _workspace_files has invalid format
- Console error on assessment statistics page in obscure scenarios
- "Report an issue" button broken on manual grading instance question page
- Manual grading: show which questions have rubrics set up
- File processes do not handle URI decoding correctly
- Review consistency of file name restrictions in instructor file operations
- Bug: handling of line breaks in rubric item settings
- yarn install failed HOT 2
- bug: Sync code for shared questions doesn't check if question has been deleted
- bug on crash when cannot found course path and saml still try to work when disable. HOT 2
- Download all logs from assessment in CSV format as a ZIP
- node-gyp failures in some builds may warrant adding the dependency manually HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prairielearn.