{"_id":"math-power","_rev":"4-944ad1222da840f16b3792554404e21b","name":"math-power","description":"Exponential function.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"math-power","version":"0.0.0","description":"Exponential function.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"if [ \"${TRAVIS}\" ]; then npm run test-ci; else npm run test-local; fi","test-local":"tape \"./test/*.js\" | tap-spec","test-ci":"npm run test-local && xvfb-run npm run test-browsers","test-cov":"istanbul cover --dir ./reports/coverage --report lcov tape -- \"./test/*.js\"","test-browsers":"browserify ./test/*.js | testling | tap-spec","coverage":"istanbul cover --dir ./reports/codecov/coverage --report lcovonly tape -- \"./test/*.js\" && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov"},"main":"./lib","repository":{"type":"git","url":"git://github.com/math-io/pow.git"},"keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.pow","pow","power","natural","exponential","function","power","number"],"bugs":{"url":"https://github.com/math-io/pow/issues"},"dependencies":{},"devDependencies":{"browserify":"12.x.x","codecov":"1.x.x","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","math-abs":"^1.0.2","tap-spec":"4.x.x","tape":"4.x.x","testling":"1.x.x"},"testling":{"files":["test/*.js"],"browsers":["ipowlore/6.0..latest","firefox/3.0..latest","firefox/nightly","chrome/4.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"license":"MIT","gitHead":"846843e7f2730370da6bee931cc68d8f62288072","homepage":"https://github.com/math-io/pow#readme","_id":"math-power@0.0.0","_shasum":"f46be3a23c555bd9c7b173edeafc459745bc92b1","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"f46be3a23c555bd9c7b173edeafc459745bc92b1","tarball":"https://registry.npmjs.org/math-power/-/math-power-0.0.0.tgz","integrity":"sha512-qMvVPdyeUjHZ8emUhJ8ljf8AxHAWgyCT27JwGBLggeZE07Lbv27PZwgxYK+DkvC/4dh9jkQ1WQ0CWFBrK6Q+Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkKdMb0tSoY6pKiESB/E9xKFGs/XnYiN4oZf7BaGG3YQIgFP6J5qu+iMlkgHnzoO/bvodUHk8GoipGE7PDmbDiIdc="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"math-power","version":"1.0.0","description":"Exponential function.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"if [ \"${TRAVIS}\" ]; then npm run test-ci; else npm run test-local; fi","test-local":"tape \"./test/*.js\" | tap-spec","test-ci":"npm run test-local && xvfb-run npm run test-browsers","test-cov":"istanbul cover --dir ./reports/coverage --report lcov tape -- \"./test/*.js\"","test-browsers":"browserify ./test/*.js | testling | tap-spec","coverage":"istanbul cover --dir ./reports/codecov/coverage --report lcovonly tape -- \"./test/*.js\" && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov"},"main":"./lib","repository":{"type":"git","url":"git://github.com/math-io/pow.git"},"keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.pow","pow","power","natural","exponential","function","power","number"],"bugs":{"url":"https://github.com/math-io/pow/issues"},"dependencies":{},"devDependencies":{"browserify":"12.x.x","codecov":"1.x.x","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","math-abs":"^1.0.2","tap-spec":"4.x.x","tape":"4.x.x","testling":"1.x.x"},"testling":{"files":["test/*.js"],"browsers":["ipowlore/6.0..latest","firefox/3.0..latest","firefox/nightly","chrome/4.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"license":"MIT","gitHead":"295af0d9c5f09eff18a17a7d1641c0cde4c2b7d7","homepage":"https://github.com/math-io/pow#readme","_id":"math-power@1.0.0","_shasum":"d9613e549961c2a00f14fc4d67fa52d0850178cf","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"d9613e549961c2a00f14fc4d67fa52d0850178cf","tarball":"https://registry.npmjs.org/math-power/-/math-power-1.0.0.tgz","integrity":"sha512-uL8QmIVVX1o0NDC8fdZZrpHizocgoke/FqBEzPUxas4nHpZvbAkCq64IczWDoe9urznu0r32nsrk0r2FS0+q0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmj38rDuZGmeTyxT/mdhefwcAXljvVoCEos5OU8QQY8wIhALtrCAkr5KR4TbtO9N+lZ/4GjjNSEPOEP2d18B4QbxmY"}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"Exponential Function\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> [Exponential function][exponential-function].\n\nThe [exponential function][exponential-function] is defined as\n\n<div class=\"equation\" align=\"center\" data-raw-text=\"y = b^x\" data-equation=\"eq:exponential_function\">\n\t<img src=\"https://cdn.rawgit.com/math-io/power/c5ea39264975847f4b71f268e7d5a678c2172f05/docs/img/eqn.svg\" alt=\"Exponential function definition.\">\n\t<br>\n</div>\n\nwhere `b` is the __base__ and `x` is the __exponent__.\n\n\n## Installation\n\n``` bash\n$ npm install math-power\n```\n\n\n## Usage\n\n``` javascript\nvar pow = require( 'math-power' );\n```\n\n#### pow( base, exponent )\n\nEvaluates the [exponential function][exponential-function].\n\n``` javascript\nvar val = pow( 2, 3 );\n// returns 8\n\nval = pow( 4, 0.5 );\n// returns 2\n\nval = pow( 100, 0 );\n// returns 1\n\nval = pow( Math.PI, 5 );\n// returns ~306.0197\n\nval = pow( Math.PI, -1/5 );\n// returns ~0.7954\n\nval = pow( NaN, 3 );\n// returns NaN\n\nval = pow( 5, NaN );\n// returns NaN\n```\n\n\n## Examples\n\n``` javascript\nvar pow = require( 'math-power' );\n\nvar b;\nvar x;\nvar i;\n\nfor ( i = 0; i < 100; i++ ) {\n\tb = Math.round( Math.random()*10 );\n\tx = Math.round( Math.random()*10 ) - 5;\n\tconsole.log( '%d^%d = %d', b, x, pow( b, x ) );\n}\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n---\n## Tests\n\n### Unit\n\nThis repository uses [tape][tape] for unit tests. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul][istanbul] as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n### Browser Support\n\nThis repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-browsers\n```\n\nTo view the tests in a local web browser,\n\n``` bash\n$ make view-browser-tests\n```\n\n<!-- [![browser support][browsers-image]][browsers-url] -->\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT).\n\n\n## Copyright\n\nCopyright &copy; 2016. The [Compute.io][compute-io] Authors.\n\n\n[npm-image]: http://img.shields.io/npm/v/math-power.svg\n[npm-url]: https://npmjs.org/package/math-power\n\n[build-image]: http://img.shields.io/travis/math-io/power/master.svg\n[build-url]: https://travis-ci.org/math-io/power\n\n[coverage-image]: https://img.shields.io/codecov/c/github/math-io/power/master.svg\n[coverage-url]: https://codecov.io/github/math-io/power?branch=master\n\n[dependencies-image]: http://img.shields.io/david/math-io/power.svg\n[dependencies-url]: https://david-dm.org/math-io/power\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/math-io/power.svg\n[dev-dependencies-url]: https://david-dm.org/dev/math-io/power\n\n[github-issues-image]: http://img.shields.io/github/issues/math-io/power.svg\n[github-issues-url]: https://github.com/math-io/power/issues\n\n[tape]: https://github.com/substack/tape\n[istanbul]: https://github.com/gotwarlost/istanbul\n[testling]: https://ci.testling.com\n\n[compute-io]: https://github.com/compute-io/\n[exponential-function]: https://en.wikipedia.org/wiki/Exponential_function\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-19T16:39:52.030Z","created":"2016-01-13T01:19:09.567Z","0.0.0":"2016-01-13T01:19:09.567Z","1.0.0":"2016-01-13T01:19:34.235Z"},"homepage":"https://github.com/math-io/pow#readme","keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.pow","pow","power","natural","exponential","function","power","number"],"repository":{"type":"git","url":"git://github.com/math-io/pow.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/math-io/pow/issues"},"license":"MIT","readmeFilename":"README.md"}