(exponent)
| 15375 | } |
| 15376 | |
| 15377 | function transformPow(exponent) { |
| 15378 | return function(x) { |
| 15379 | return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); |
| 15380 | }; |
| 15381 | } |
| 15382 | |
| 15383 | function transformSqrt(x) { |
| 15384 | return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x); |