Comments (4)
Thanks. not sure how often this happens in practice (2 - -3
ok, but 2 - --3
?). Anyway it is a valid mathematical expression so the parser should be just happy to evaluate it for us.
from mathjs.
I had to think - If I were writing a parser, how would I do a BNF for this?
unarysign::= '+' | '-'
unarysigns::= unarysign | unarysigns
not sure how that nil would enter into this.
but it's been 20 years and my compiler book isn't the best. would like one that isn't just a textbook or has the answers and good examples. I wouldn't mind a multi-volume set, because that's about what it takes to do a good job covering it, otherwise it's just handwaving.
from mathjs.
it could also be things like 2+-+-+-+-5 (just for fun)
from mathjs.
Ha ha, you seem to be looking for ways to create art from math expressions, like ASCII art ;)
from mathjs.
Related Issues (20)
- Support `BigNumber` as `wordSize` in function `format` HOT 2
- Cannot use `and` and `or` inside a function definition after v12.1.0 HOT 8
- Issues in documentation for parsing HOT 3
- aggregation operations on 2d arrays using axis 1 don't return an array type and return only MathScalarType HOT 3
- Incorrect Copyright and License for CSparse functions HOT 7
- When using BigNumber, toTex cannot display a large number well. HOT 2
- Inconsistent simplifying of boolean expressions HOT 6
- how to identify periods in decimals of bignumbers HOT 5
- Typescript signatures for add, multiply are incorrect HOT 2
- Unit formatting when rounding HOT 1
- Hard (impossible) to read the code HOT 1
- Precedence of the modulus operator HOT 3
- Add support for `fftshift` function from NumPy
- isNaN() returns false for a NaN unit in a matrix or array HOT 3
- Does the number only support up to 56 bits? HOT 1
- types: quantileSeq expands types unnecessarily HOT 1
- Multiplication by 100 returning unexpected results HOT 1
- Arithmetic Functions work even when not loaded HOT 5
- Uncaught TypeError: Failed to resolve module specifier "mathjs". Relative references must start with either "/", "./", or "../". HOT 6
- Matrix sum along a dimension is defined to return a `MathScalarType`, but might return higher dimension HOT 5
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 mathjs.