{"_id":"math-ln","_rev":"4-7148ccebd32a30b29e329f3dae048b62","name":"math-ln","description":"Natural logarithm.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"math-ln","version":"0.0.0","description":"Natural logarithm.","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/ln.git"},"keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.log","ln","natural","logarithm","log","value","scalar","number"],"bugs":{"url":"https://github.com/math-io/ln/issues"},"dependencies":{},"devDependencies":{"browserify":"12.x.x","codecov":"1.x.x","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","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":"7df19e288052ff63d8eee160e5617de5ea3592f3","homepage":"https://github.com/math-io/ln#readme","_id":"math-ln@0.0.0","_shasum":"97969e4fda6622acfe6f0f0ecc01a692effe23aa","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"97969e4fda6622acfe6f0f0ecc01a692effe23aa","tarball":"https://registry.npmjs.org/math-ln/-/math-ln-0.0.0.tgz","integrity":"sha512-+nU9VoeivpJTJAp+Xvld2I/oAmQcULasaO8vuTkAEpFh9wPVPhTOG8vgfeLbgDpXAWKGcAdObcRQ4dndnpCkTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG7DaKU0DMmtLkFzy27+Ay9KMmQ+NsfKlSeEXt7SC4+aAiBF++hEonfYfFI93/0vk3xf1ixvtfC6wE2Z2LUT9WuFZQ=="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"math-ln","version":"1.0.0","description":"Natural logarithm.","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/ln.git"},"keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.log","ln","natural","logarithm","log","value","scalar","number"],"bugs":{"url":"https://github.com/math-io/ln/issues"},"dependencies":{},"devDependencies":{"browserify":"12.x.x","codecov":"1.x.x","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","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":"2d8a528514c47d55d7d203f3b45f3edb05378b71","homepage":"https://github.com/math-io/ln#readme","_id":"math-ln@1.0.0","_shasum":"aa41b5ef57d358a8e56e2f1a465cdd88975916ab","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"aa41b5ef57d358a8e56e2f1a465cdd88975916ab","tarball":"https://registry.npmjs.org/math-ln/-/math-ln-1.0.0.tgz","integrity":"sha512-Jv+5Z9hacc3AYfKf1ei1YpKlZ8InWpRA7Bv4qBgRc9L/2kuhFeviKur+eUvTWmgs+6eJOU32yjS8dTkFqoclLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnVyc5iYpe/9SkxnWOZK+0jwG2Kparrsj7YVDAmIfy7AiBKEQP7vEtcGvsV0tV8NFi3GOsbluUlKPKI4oxh2eq14g=="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"Natural Logarithm\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> Computes the [natural logarithm][natural-logarithm].\n\n\n## Installation\n\n``` bash\n$ npm install math-ln\n```\n\n\n## Usage\n\n``` javascript\nvar ln = require( 'math-ln' );\n```\n\n#### ln( x )\n\nComputes the [natural logarithm][natural-logarithm].\n\n``` javascript\nvar val = ln( 4 );\n// returns ~1.386\n\nval = ln( 0 );\n// returns -infinity\n\nval = ln( Number.POSITIVE_INFINITY );\n// returns +infinity\n```\n\nFor negative numbers, the [natural logarithm][natural-logarithm] is __not__ defined.\n\n``` javascript\nvar val = ln( -4 );\n// returns NaN\n```\n\n\n## Examples\n\n``` javascript\nvar ln = require( 'math-ln' );\n\nvar x;\nvar i;\n\nfor ( i = 0; i < 100; i++ ) {\n\tx = Math.round( Math.random() * 100 );\n\tconsole.log( ln( 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-ln.svg\n[npm-url]: https://npmjs.org/package/math-ln\n\n[build-image]: http://img.shields.io/travis/math-io/ln/master.svg\n[build-url]: https://travis-ci.org/math-io/ln\n\n[coverage-image]: https://img.shields.io/codecov/c/github/math-io/ln/master.svg\n[coverage-url]: https://codecov.io/github/math-io/ln?branch=master\n\n[dependencies-image]: http://img.shields.io/david/math-io/ln.svg\n[dependencies-url]: https://david-dm.org/math-io/ln\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/math-io/ln.svg\n[dev-dependencies-url]: https://david-dm.org/dev/math-io/ln\n\n[github-issues-image]: http://img.shields.io/github/issues/math-io/ln.svg\n[github-issues-url]: https://github.com/math-io/ln/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[natural-logarithm]: https://en.wikipedia.org/wiki/Natural_logarithm\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-19T16:39:34.411Z","created":"2016-01-12T07:02:33.457Z","0.0.0":"2016-01-12T07:02:33.457Z","1.0.0":"2016-01-12T07:02:53.350Z"},"homepage":"https://github.com/math-io/ln#readme","keywords":["compute.io","compute-io","compute","computation","math.io","math-io","math","mathematics","math.log","ln","natural","logarithm","log","value","scalar","number"],"repository":{"type":"git","url":"git://github.com/math-io/ln.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/math-io/ln/issues"},"license":"MIT","readmeFilename":"README.md"}