removed norm as abs synonym (a norm is squared abs)

This commit is contained in:
Louis Rubet 2022-02-20 23:51:33 +01:00
parent b90c382b24
commit e0c862eaaa
2 changed files with 1 additions and 7 deletions

View file

@ -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

View file

@ -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