Skip to content

Commit

Permalink
Added ideas doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Kim committed Sep 23, 2020
1 parent fdeffc1 commit 9c11c7e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MathEngine/.utils/.templates/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ bool Scanner::scan(const std::string& str, std::list<Token>& tokens) {
if (std::strncmp(c_str, "None", index) == 0 || std::strncmp(c_str, "null", index) == 0){
tokens.emplace_back(Token{"None", NONE});
}
else if (std::strncmp(c_str, "infty", index) == 0 || std::strncmp(c_str, "infinity", index) == 0){
tokens.emplace_back(Token{"infty", INF});
else if (std::strncmp(c_str, "inf", index) == 0 || std::strncmp(c_str, "infty", index) == 0){
tokens.emplace_back(Token{"inf", INF});
}
else{
tokens.emplace_back(Token{str.substr(i, index), ID});
Expand Down
4 changes: 2 additions & 2 deletions MathEngine/Scanner/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ bool Scanner::scan(const std::string& str, std::list<Token>& tokens) {
if (std::strncmp(c_str, "None", index) == 0 || std::strncmp(c_str, "null", index) == 0){
tokens.emplace_back(Token{"None", NONE});
}
else if (std::strncmp(c_str, "infty", index) == 0 || std::strncmp(c_str, "infinity", index) == 0){
tokens.emplace_back(Token{"infty", INF});
else if (std::strncmp(c_str, "inf", index) == 0 || std::strncmp(c_str, "infty", index) == 0){
tokens.emplace_back(Token{"inf", INF});
}
else{
tokens.emplace_back(Token{str.substr(i, index), ID});
Expand Down
17 changes: 17 additions & 0 deletions ideas.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#+TITLE: CalcPlusPlus Ideas

* Ideas
** TODO Add range operator
*** Possibly add a generator expression class that generates (more efficient for large ranges)
** TODO Add Polynomial function that constructs a polynomial expression from coefficients
*** Add simplify mechanims that auomatically genrates a polynomial expression from an expression
** TODO Add chained expressions using ';'
** TODO Add IQR and summary
** TODO Add BooleanExpression for clear ==, >=, <=, <
** TODO Possibly explore differential equation solving
** TODO Add Sum, Product expressions
** TODO Add normal approximation to the binomial distribution
*** https://mathcracker.com/normal-approximation-binomial-distribution
** TODO Add matrix multiplication of non numerical matrices
* Bugs
** TODO Investigate why Mac OS binary can't load dynamic libraries

0 comments on commit 9c11c7e

Please sign in to comment.