{"name":"two-sum","version":"0.0.0","description":"Computes a non-overlapping sequence representing the sum of two floating point numbers.","main":"two-sum.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tape":"~1.1.0"},"scripts":{"test":"tap test/*"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/two-sum.git"},"keywords":["two","sum","floating","point","robust","exact"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/two-sum/issues"},"_id":"two-sum@0.0.0","dist":{"shasum":"27aebac1db2508b3ce3dbbff9e63389407336997","tarball":"http://registry-npm.ywwl.com/two-sum/download/two-sum-0.0.0.tgz","integrity":"sha512-2h0vKyjpyucMIhNUTdENfc3aZO0EkvUzno5hRNGVqVhGE+UwAbakBAydA5iNkLB7JFQ5GaJUeS5W+21TutvRLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxM2cdystZo+Zjd5Oi2LaVZAoFubTWHTI4946PQ1vX/gIgYK/1H3y5PLCwQOG0ti1pTiQ3sMDivws9FNmvGTk4v2M="}],"size":1945,"noattachment":false,"key":"/two-sum/-/two-sum-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"readme":"two-sum\n=======\nComputes the sum of two floating point numbers as a non-overlapping sequence using Knuth's method.\n\n* D.E. Knuth.  \"The Art of Computer Programming: Seminumerical Algorithms\".  Volume 2.  1981\n\n## Install\nUsing npm:\n\n\t\tnpm install two-sum\n\n\n## Example\n\n```javascript\nvar twoSum = require(\"two-sum\")\n\n//Add two wildly different sized floats\nvar result = twoSum(1e64, 1e-64)\nconsole.log(result)\n\n//Prints:\n//  [1e-64, 1e64]\n```\n\n## API\n\n### `require(\"two-sum\")(a, b[, result])`\nComputes a non-overlapping sequence representing the sum of a and b.\n\n* `a` is a number\n* `b` is a number\n* `result` is an optional length 2 array encoding the result of the sum of `a` and `b`\n\n**Returns** A length 2 array representing the non-overlapping sequence encoding the sum of a and b.  The first term has smaller magnitude than the second.\n\n## Credits\nBased on an idea from JRS robust geometric predicates paper.\n\nImplementation (c) 2013 Mikola Lysenko.  MIT License","publish_time":1379520667701,"_cnpm_publish_time":1379520667701,"dist-tags":{"latest":"1.0.0"}}