(x)
| 6832 | return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base); |
| 6833 | } |
| 6834 | function pow(x) { |
| 6835 | return positive ? Math.pow(base, x) : -Math.pow(base, -x); |
| 6836 | } |
| 6837 | function scale(x) { |
| 6838 | return linear(log(x)); |
| 6839 | } |