Comments (5)
Here's some of the replacements we want:
conj(...)
->{:(...)^*:}
with option settrans(...)
->{:(...)^T:}
adj(...)
->{:(...)^dagger:}
ctrans(...)
->{:(...)^dagger:}
cross(..., ...)
->(...) times (...)
[a,b,c]
->[[a],[b],[c]]
with option set if a, b, and c don't have square brackets in themfact(...)
andfactorial(...)
->factorialAsciiMath((...))
Here's the dagger symbol definition:
// Add the dagger symbol, used in Hermitian conjugate/adjoint
AM.newsymbol({input:"dagger", tag:"mi", output:"\u2020", tex:null, ttype:AM.TOKEN.CONST});
In all cases, single character entries should not have parentheses. That includes all entries in this list:
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'alpha', 'beta', 'chi', 'delta', 'Delta', 'epsi', 'varepsilon', 'eta', 'gamma', 'Gamma', 'iota', 'kappa', 'lambda', 'Lambda', 'lamda', 'Lamda', 'mu', 'nu', 'omega', 'Omega', 'phi', 'varphi', 'Phi', 'pi', 'Pi', 'psi', 'Psi', 'rho', 'sigma', 'Sigma', 'tau', 'theta', 'vartheta', 'Theta', 'upsilon', 'xi', 'Xi', 'zeta']
Note that we should also let hat
or vec
prepend any item in this list.
from mitx-grading-library.
After #116, the only features I don't have a good way to implement are the following two:
cross(..., ...)
->(...) times (...)
[a,b,c]
->[[a],[b],[c]]
with option set if a, b, and c don't have square brackets in them
Both of these need splitList
to work.
from mitx-grading-library.
I'll work on splitList
. Another thing I have been thinking about is some minor validation. In particular, I think that the callback actions toreplaceFunctionCall
should verify that they have received the correct number of arguments.
This isn't an issue now (since with splitList
not implemented, args
is always a list of length 1). But once we have splitList
, our current implementation of factorial
would render fact(3, 4)
as 3!
(completely ignoring the 4). So I want to throw errors unless the correct number of arguments has been received. That way:
fact(5) ---> 5!
fact(5, 6) ---> fact(5, 6)
from mitx-grading-library.
That sounds look a good idea.
from mitx-grading-library.
from mitx-grading-library.
Related Issues (20)
- Bump version & changelog HOT 1
- Remove unnecessary parens from DiscreteSet constructor HOT 3
- Update to pytest 4.6.4 HOT 1
- Fix unicode issue with schemas HOT 4
- fix warnings in pytest 3.7 HOT 3
- All or nothing in a ListGrader
- Expanded answer structures for SingleListGrader HOT 3
- Make a plugin structure to set course-wide defaults
- Report modified defaults in debug log
- Add a default plugin example to set MatrixGrader comparer options
- Upgrading DependentSampler
- Allow for tuples in expect values in a dictionary for itemgraders HOT 2
- Preprocessor wrapping and sqrt HOT 1
- Math debug info not working
- How can I add this library (mitxgraders) for my edX platform? HOT 1
- Allow for forbidden strings in IntegralGrader and SumGrader
- Upgrade numpy? HOT 1
- I am installing this plugins with Tutor 13.2.2 on maple but getting this error HOT 1
- Implicit product for terms ? HOT 7
- Import time optimization to prevent formatting error. HOT 3
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 mitx-grading-library.