From 3b0c7c8dc0c359d9272e5b0b45e5e57bc1a061ae Mon Sep 17 00:00:00 2001 From: Minh Date: Fri, 27 Dec 2024 01:00:47 +0900 Subject: [PATCH] Fixed negative rho crashing --- theory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theory.js b/theory.js index 5bed01b..5c6fe04 100644 --- a/theory.js +++ b/theory.js @@ -1608,7 +1608,7 @@ var getQuaternaryEntries = () => return quaternaryEntries; } -var getTau = () => normCurrency.value.pow(tauRate); +var getTau = () => normCurrency.value.abs().pow(tauRate); var getCurrencyFromTau = (tau) => [