From e0c862eaaa94f041cb99874050b6aea425e4f8f9 Mon Sep 17 00:00:00 2001 From: Louis Rubet Date: Sun, 20 Feb 2022 23:51:33 +0100 Subject: [PATCH] removed norm as abs synonym (a norm is squared abs) --- Changelog.md | 7 +------ src/program.cpp | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Changelog.md b/Changelog.md index ced12be..ef06fb3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -22,7 +22,6 @@ cf https://www.geeksforgeeks.org/overloading-new-delete-operator-c/ New - `«` and `»` are now valid as program delimiters. `<<` and `>>` are still valid -- added `norm` as a synonym of `abs` - `test` command can also take a symbol as a parameter ; if the symbol contains a valid - entering the sign after the base (ex: 0x-1e2) is allowed @@ -44,10 +43,6 @@ Compatibility is broken on these points - signed zero is the sign of zero is subject to change compared to previous version, for example `-3 sqrt` now equals `(0.000000,1.732051)` instead of `(-0.000000,1.732051)` missing tests / problems -- nested loops / if / while / do + access to local variables -- les arguments d'une fonction en erreur doivent ils êre consommés ? +- les arguments d'une fonction en erreur doivent ils être consommés ? ex embettant : sto+ -- sto+ * - / : ajouter des cas de test avec type incorrects -- `10 -> n << n >>` plante - `1 'i' sto while i <= 2 repeat 0 'j' sto while j <= 1 repeat i (1,0) * j (0,1) * + 1 'j' sto+ end 1 'i' sto+ end` plante -- real: ln, lnp1, log, log10, log2, exp, expm, alog2, alog10, sinh, asinh, cosh, acosh, tanh, atanh diff --git a/src/program.cpp b/src/program.cpp index 7ff07cc..b681af2 100644 --- a/src/program.cpp +++ b/src/program.cpp @@ -33,7 +33,6 @@ program::keyword_t program::s_keywords[] = { {cmd_keyword, "sqrt", &program::rpn_squareroot, "rpn_square root"}, {cmd_keyword, "sq", &program::rpn_square, "rpn_square"}, {cmd_keyword, "abs", &program::rpn_abs, "absolute value (norm for a complex)"}, - {cmd_keyword, "norm", &program::rpn_abs, ""}, {cmd_keyword, "sign", &program::rpn_sign, "sign of a number or z/|z| for a complex"}, // OPERATIONS ON REALS