From 8628d8fb1dced5f0b1bddfff2192db3476692a7f Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 21 Nov 2021 13:46:05 -0500 Subject: =?UTF-8?q?Skip=20checking=20for=20double-inverse=20of=20+-=C3=B7?= =?UTF-8?q?=E2=8B=86=E2=88=9A=C2=AC=20to=20avoid=20some=20precision-based?= =?UTF-8?q?=20failures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/r1.bqn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/r1.bqn b/src/r1.bqn index f2330b2b..5d280c0e 100644 --- a/src/r1.bqn +++ b/src/r1.bqn @@ -860,8 +860,9 @@ SwapInverse ← INF _lookup_ ⟨ ⟩ ⌜ ↩ _table ¨ ↩ _each +CheckInv ← (4=0⊸⊑)◶⟨"+-÷⋆√¬"_glyphLookup_(6=↕7)1⊸⊑,¬·'⁼'_isGlyph 2⊸⊑⟩Decompose Mod1Inverse ← INF˙ _lookup_ ⟨ - '⁼', {𝕏_invChk_(𝕏{i←Inverse𝕗⋄𝕨I𝕩})}⍟((4=0⊸⊑)◶⟨1,¬·'⁼'_isGlyph 2⊸⊑⟩Decompose) + '⁼', {𝕏_invChk_(𝕏{i←Inverse𝕗⋄𝕨I𝕩})}⍟CheckInv '˜', {SwapInverse𝕩} '¨', {𝕏⁼¨ ⊣·IX 0<≡∘⊢} '⌜', {𝕏⁼⌜⊘(IA∘0) ⊣·IX 0<≡∘⊢} -- cgit v1.2.3