diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inferred.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/inferred.md b/spec/inferred.md index 680f75b9..0be0cc6c 100644 --- a/spec/inferred.md +++ b/spec/inferred.md @@ -62,7 +62,7 @@ Fill elements of iteration modifiers such as `Β¨β` are not specified. It is re The Undo 1-modifier `βΌ`, given an operand `π½` and argument `π©`, and possibly a left argument `π¨`, finds a value `y` such that `π©β‘π¨π½y`, that is, an element of the pre-image of `π©` under `π½` or `π¨π½β’`. Thus it satisfies the constraint `π© β‘ π¨π½π¨π½βΌπ©` (`π¨π½βΌβ’` is a *right inverse* of `π¨π½β’`) provided `π½βΌ` and `π½` both complete without error. `π½βΌ` should of course give an error if no inverse element exists, and can also fail if no inverse can be found. It is also preferred for `π½βΌ` to give an error if there are many choices of inverse with no clear way to choose one of them: for example, `0βΏ0βm` returns the diagonal of matrix `m`; `0βΏ0ββΌ2βΏ3` requires values to be chosen for the off-diagonal elements in its result. It is better to give an error, encouraging the programmer to use a fully-specified approach like `2βΏ3βΎ(0βΏ0βΈβ)` applied to a matrix of initial elements, than to return a result that could be very different from other implementations. -If a value `π©` isn't in the range of `π½`, then no result satisfies the rule for `π½βΌπ©`. As `π½βΌπ©` would then always give an error by the above rules, a BQN implementation with extensions could define it in any way. However, two such extensions are specified: `FβΌβΌ` and `Fβ(-n)βΌ` are extended to the full domain of `F` and `/βΌ` to any list of natural numbers, as noted below. +If a value `π©` isn't in the range of `π½`, then no result satisfies the rule for `π½βΌπ©`. As `π½βΌπ©` would then always give an error by the above rules, a BQN implementation with extensions could define it in any way. However, a few such extensions are specified: `ββΌ` is defined on all numbers, and `FβΌβΌ` and `Fβ(-n)βΌ` are extended to the full domain of `F` and `/βΌ` to any list of natural numbers, as noted below. When working with limited-precision numbers, it may be difficult or impossible to exactly invert the operand function. Instead, it is generally acceptable to perform a computation that, if done with unlimited precision, would exactly invert `π½` computed with unlimited precision. This principle is the basis for the numeric inverses specified below. It is also acceptable to find an inverse by numeric methods, provided that the error in the inverse value found relative to an unlimited-precision inverse can be kept close to the inherent error in the implementation's number format. |
