We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4245d0 commit 475a6f1Copy full SHA for 475a6f1
src/plots/smith/helpers.js
@@ -12,7 +12,7 @@ function smith(a) {
12
var R = a[0];
13
var X = a[1];
14
15
- if(R === Infinity || Math.abs(X) === Infinity) return [1, 0];
+ if(!isFinite(R) || !isFinite(X)) return [1, 0];
16
17
var D = (R + 1) * (R + 1) + X * X;
18
return [(R * R + X * X - 1) / D, 2 * X / D];
0 commit comments