(a)
| 9 | |
| 10 | // adapted from Mike Bostock's https://observablehq.com/@mbostock/smith-chart |
| 11 | function smith(a) { |
| 12 | var R = a[0]; |
| 13 | var X = a[1]; |
| 14 | |
| 15 | 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]; |
| 19 | } |
| 20 | |
| 21 | function transform(subplot, a) { |
| 22 | var x = a[0]; |
no outgoing calls
no test coverage detected
searching dependent graphs…