{"_id":"math-exp","_rev":"4-69693d16709663477fbe249318025614","name":"math-exp","description":"Natural exponential function.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"math-exp","version":"0.0.0","description":"Natural 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/exp.git"},"keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.exp","exp","natural","exponential","function","euler","power","number"],"bugs":{"url":"https://github.com/math-io/exp/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":["iexplore/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":"a1f5e0e337771f9d987c273fe39cd13e9fdbe897","homepage":"https://github.com/math-io/exp#readme","_id":"math-exp@0.0.0","_shasum":"4afb855ebef0fa0f2c928dcd709f3bedb49b0f5a","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"4afb855ebef0fa0f2c928dcd709f3bedb49b0f5a","tarball":"https://registry.npmjs.org/math-exp/-/math-exp-0.0.0.tgz","integrity":"sha512-ntLOcOWcyu31VfVmpurXxhQ18n6MDqzgIy0TyPLXboU6CJhIGnyJKvxsleTmijy2qr0HR4tFLSgqOD8SHI44kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6ivIk8QG9ElK8ZeYQZEbU7Trn0WTS1HQnV72IU6RVOAIhAN+DLtZifGMgDZ4RV1+AKUEavWKEDDm11U7oXk999xfO"}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"math-exp","version":"1.0.0","description":"Natural 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/exp.git"},"keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.exp","exp","natural","exponential","function","euler","power","number"],"bugs":{"url":"https://github.com/math-io/exp/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":["iexplore/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":"bc9db92fa45f10c24f53c0220015b5846a8fd05d","homepage":"https://github.com/math-io/exp#readme","_id":"math-exp@1.0.0","_shasum":"52e8b8b4001fb03942771c9908fa4059ee8dc06f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"52e8b8b4001fb03942771c9908fa4059ee8dc06f","tarball":"https://registry.npmjs.org/math-exp/-/math-exp-1.0.0.tgz","integrity":"sha512-tNer/uBYIr7z6uBMJmRf3hkoNtQPo2RVD7NbawqPC2mpfDNWDV5ucfVuTVrPvWbEdPe99Pfy4OWe05Biyk6EPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGKnv0wBA3t/f4V3rve/I6UcbXXTEV4aia5pmjAGiB/AiBuN3nBTM/UMZaoN/wq1DYKzTYGhtgk063j7wRG60vi9g=="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"Natural 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> Natural [exponential function][exponential-function].\n\nThe natural [exponential function][exponential-function] is defined as\n\n<div class=\"equation\" align=\"center\" data-raw-text=\"y = e^x\" data-equation=\"eq:natural_exponential_function\">\n\t<img src=\"https://cdn.rawgit.com/math-io/exp/1ecfe1ee0dc303c2ebb2b0471f0328106eb915cd/docs/img/eqn.svg\" alt=\"Natural exponential function definition.\">\n\t<br>\n</div>\n\nwhere `e` is [Euler's][eulers-number] number.\n\n\n## Installation\n\n``` bash\n$ npm install math-exp\n```\n\n\n## Usage\n\n``` javascript\nvar exp = require( 'math-exp' );\n```\n\n#### exp( x )\n\nEvaluates the natural [exponential function][exponential-function].\n\n``` javascript\nvar val = exp( 4 );\n// returns ~54.5982\n\nval = exp( -9 );\n// returns ~1.234e-4\n\nval = exp( 0 );\n// returns 1\n\nval = exp( NaN );\n// returns NaN\n```\n\n\n## Examples\n\n``` javascript\nvar exp = require( 'math-exp' );\n\nvar x;\nvar i;\n\nfor ( i = 0; i < 100; i++ ) {\n\tx = Math.random()*100 - 50;\n\tconsole.log( 'e^%d = %d', x, exp( 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-exp.svg\n[npm-url]: https://npmjs.org/package/math-exp\n\n[build-image]: http://img.shields.io/travis/math-io/exp/master.svg\n[build-url]: https://travis-ci.org/math-io/exp\n\n[coverage-image]: https://img.shields.io/codecov/c/github/math-io/exp/master.svg\n[coverage-url]: https://codecov.io/github/math-io/exp?branch=master\n\n[dependencies-image]: http://img.shields.io/david/math-io/exp.svg\n[dependencies-url]: https://david-dm.org/math-io/exp\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/math-io/exp.svg\n[dev-dependencies-url]: https://david-dm.org/dev/math-io/exp\n\n[github-issues-image]: http://img.shields.io/github/issues/math-io/exp.svg\n[github-issues-url]: https://github.com/math-io/exp/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[eulers-number]: https://en.wikipedia.org/wiki/E_(mathematical_constant)\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-19T16:38:32.996Z","created":"2016-01-13T00:19:37.698Z","0.0.0":"2016-01-13T00:19:37.698Z","1.0.0":"2016-01-13T00:19:58.088Z"},"homepage":"https://github.com/math-io/exp#readme","keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.exp","exp","natural","exponential","function","euler","power","number"],"repository":{"type":"git","url":"git://github.com/math-io/exp.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/math-io/exp/issues"},"license":"MIT","readmeFilename":"README.md"}