From 9c11c7ec30a1a42ec358f8694aa46fb5867c6ea1 Mon Sep 17 00:00:00 2001 From: Antonio Kim Date: Tue, 22 Sep 2020 22:50:45 -0400 Subject: [PATCH] Added ideas doc --- MathEngine/.utils/.templates/scanner.cc | 4 ++-- MathEngine/Scanner/scanner.cc | 4 ++-- ideas.org | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 ideas.org diff --git a/MathEngine/.utils/.templates/scanner.cc b/MathEngine/.utils/.templates/scanner.cc index 1e6d7f8..bc9aea5 100644 --- a/MathEngine/.utils/.templates/scanner.cc +++ b/MathEngine/.utils/.templates/scanner.cc @@ -237,8 +237,8 @@ bool Scanner::scan(const std::string& str, std::list& 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}); diff --git a/MathEngine/Scanner/scanner.cc b/MathEngine/Scanner/scanner.cc index 527ff08..c8795b8 100644 --- a/MathEngine/Scanner/scanner.cc +++ b/MathEngine/Scanner/scanner.cc @@ -244,8 +244,8 @@ bool Scanner::scan(const std::string& str, std::list& 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}); diff --git a/ideas.org b/ideas.org new file mode 100644 index 0000000..d45d81e --- /dev/null +++ b/ideas.org @@ -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