{ "info": { "author": "Steven Mycynek", "author_email": "sv@stevenvictor.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "area\\_under\\_curve\n==================\n\n- Version 1.0.1\n- Python 2.7/3.5+ module to calculate riemann sum area under a curve\n- Copyright 2017 Steven Mycynek\n- Supports\n\n - simpson, trapezoid, and midpoint algorithms,\n - n-degree single variable polynomials, including fractional exponents,\n - variable step size\n\n- https://github.com/smycynek/area_under_curve\n\n``USAGE = \"\"\" -p|--poly {DegreeN1:CoefficientM1, DegreeN2:CoefficientM2, ...}...``\n``-l|--lower -u|--upper -s|--step ``\n``-a|--algorithm ``\n\n- This was just a fun experiment I did on a couple airplane rides and might not be suitable for\n production use.\n- Try a simple function you can integrate by hand easily, like ``f(x) = x^3`` from ``[0-10]``, and\n compare that to how accurate the midpoint, trapezoid, and simpson approximations are with various\n steps sizes.\n\n- Why not use numpy? You probably should, but I wanted to do everything from scratch for fun.\n\nexamples:\n---------\n\n``python area_under_curve.py --polynomial {3:1} --lower 0 --upper 10 --step .1 --algorithm simpson``\n\nor:\n\n``import area_under_curve as auc``\n\n``algorithm = auc.get_algorithm(\"simpson\")``\n\n``bounds = auc.Bounds(0, 10, .1)``\n\n``polynomial = auc.Polynomial({3:1})``\n\n``params = auc.Parameters(polynomial, bounds, algorithm)``\n\n``AREA = auc.area_under_curve(params.polynomial, params.bounds, params.algorithm)``\n\n``print(str(AREA))``\n\nAlso try out ``unit_test.py`` and ``demo.py``.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/smycynek/area_under_curve", "keywords": "riemann-sum calculus", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "area-under-curve", "package_url": "https://pypi.org/project/area-under-curve/", "platform": "", "project_url": "https://pypi.org/project/area-under-curve/", "project_urls": { "Homepage": "https://github.com/smycynek/area_under_curve" }, "release_url": "https://pypi.org/project/area-under-curve/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Calculate area under curve", "version": "1.0.1" }, "last_serial": 2736041, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "d28fc08e8e919ae426a5edfd318f8feb", "sha256": "13c5e767548bc89d1ab9b4b1056934392ce60974214781ac603ebe5dd4eba7b8" }, "downloads": -1, "filename": "area_under_curve-0.9.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d28fc08e8e919ae426a5edfd318f8feb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6850, "upload_time": "2017-03-09T21:09:23", "url": "https://files.pythonhosted.org/packages/63/ff/11a21de6298f1b5a276bb4c8a691d42c64203e3bc98ab5abe96d89aa57b0/area_under_curve-0.9.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd0cfbf8962faa40bb985f0fdc1995d3", "sha256": "04b81848fe065a983f5dc9877f0b456beccc8a668142012663259e1e7fbf0a9a" }, "downloads": -1, "filename": "area_under_curve-0.9.1.zip", "has_sig": false, "md5_digest": "dd0cfbf8962faa40bb985f0fdc1995d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10504, "upload_time": "2017-03-09T21:09:24", "url": "https://files.pythonhosted.org/packages/c8/fa/4b0cb314cfcfc9492f80d12333d77b102560d7f2060893c804c79db7360a/area_under_curve-0.9.1.zip" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "88b1630be6fbe45af20df11f27d95525", "sha256": "48ad29fd8073e4d5c68de0bb7b13d7b47187886200daba11917654a73c759bf2" }, "downloads": -1, "filename": "area_under_curve-0.9.2-py3-none-any.whl", "has_sig": false, "md5_digest": "88b1630be6fbe45af20df11f27d95525", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6883, "upload_time": "2017-03-09T22:19:15", "url": "https://files.pythonhosted.org/packages/41/50/7418357c561ae112feb9b2bafa7e2461d5da540707d3f035c6732ef238b1/area_under_curve-0.9.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bff9ee00d9882beff8573a18307b43e7", "sha256": "eb217e1e1be08e5fbffbbde1108be08e3ca818b49787c79847b27b680757968a" }, "downloads": -1, "filename": "area_under_curve-0.9.2.zip", "has_sig": false, "md5_digest": "bff9ee00d9882beff8573a18307b43e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10682, "upload_time": "2017-03-09T22:19:16", "url": "https://files.pythonhosted.org/packages/c8/72/06fc5bef35044c140209b322c139acba420f394ceab3413f4e6dde7d25df/area_under_curve-0.9.2.zip" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "89b77b87d69e5cac69818a305c94193b", "sha256": "c3a6ef1e8b7ab6734c748e4549725a12d1d43b854acfa15b35ae260044c9d870" }, "downloads": -1, "filename": "area_under_curve-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "89b77b87d69e5cac69818a305c94193b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6904, "upload_time": "2017-03-11T01:49:16", "url": "https://files.pythonhosted.org/packages/1e/65/070b5f0baf92f1493a558d375ffd6cc72e0e4d6787c2aebddbe49e88d150/area_under_curve-0.9.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3b927e1f9db0f2e9d650fb53a725c33d", "sha256": "1e2f5486f9de7885522acc74d428cfd4f7f3b3439c6a08dcd5f6ad67793b03b2" }, "downloads": -1, "filename": "area_under_curve-0.9.3.tar.gz", "has_sig": false, "md5_digest": "3b927e1f9db0f2e9d650fb53a725c33d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6603, "upload_time": "2017-03-11T01:49:17", "url": "https://files.pythonhosted.org/packages/75/be/914ae4227ca0023eed1b44d012935020ba8f9a8e5b15b4a8cea56daaf69a/area_under_curve-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "9a59593a80e38f33052af98a926570a3", "sha256": "49e4c678c886a4af5a7da8ebf3c2f60416f5f2e8f618c8c04a94a9f4b54f6850" }, "downloads": -1, "filename": "area_under_curve-0.9.4-py3-none-any.whl", "has_sig": false, "md5_digest": "9a59593a80e38f33052af98a926570a3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6898, "upload_time": "2017-03-11T01:57:18", "url": "https://files.pythonhosted.org/packages/d8/34/5ff4dc2080bdd36600c2dce32df7a96aa74d63ced974c1b1c2f8bda21535/area_under_curve-0.9.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "49b5b71a778a9e93d07185a0f3740ab9", "sha256": "96674834a90a9044ada2eec0f1af551d6a65abc7b6691ac6d7a4a13fbc154f24" }, "downloads": -1, "filename": "area_under_curve-0.9.4.tar.gz", "has_sig": false, "md5_digest": "49b5b71a778a9e93d07185a0f3740ab9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6829, "upload_time": "2017-03-11T01:57:19", "url": "https://files.pythonhosted.org/packages/9a/1f/6a0f3e2e280cff6bccd83f4ac70b4bd90a2f1fa27e506b0c09ffa3f2d2cb/area_under_curve-0.9.4.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "a565c5444355d17f8d59731ac39b7e17", "sha256": "da3d302c828ddecebc26e1be5d495fedd8030935fa28b328251c8618a3fd4e4d" }, "downloads": -1, "filename": "area_under_curve-0.9.6-py3-none-any.whl", "has_sig": false, "md5_digest": "a565c5444355d17f8d59731ac39b7e17", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6995, "upload_time": "2017-03-11T16:33:43", "url": "https://files.pythonhosted.org/packages/2a/65/c286a374226777fbf0eaf85701826d774ac1d5885f6062dc4222afe5dc15/area_under_curve-0.9.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c7b62d2bcfc059b03c99145daf9ea83", "sha256": "559ea0e06c6314b3aa4062185ba0913eee271148acc2e9c48592cf7bd89cf4d7" }, "downloads": -1, "filename": "area_under_curve-0.9.6.tar.gz", "has_sig": false, "md5_digest": "6c7b62d2bcfc059b03c99145daf9ea83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7292, "upload_time": "2017-03-11T16:33:44", "url": "https://files.pythonhosted.org/packages/62/a2/0cd8d7c891465c8bf93174ad0633ec2b1851011e5e93edbfa954b60e65a3/area_under_curve-0.9.6.tar.gz" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "1b8edcb9a5c32b8b7c7d63b6b57e8c37", "sha256": "5b873bea78af5da6445747461a9106f832cf36620793861e45d249e7c3b92496" }, "downloads": -1, "filename": "area_under_curve-0.9.7-py3-none-any.whl", "has_sig": false, "md5_digest": "1b8edcb9a5c32b8b7c7d63b6b57e8c37", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7046, "upload_time": "2017-03-11T20:36:58", "url": "https://files.pythonhosted.org/packages/05/05/573d1982e0479f5cd864c1478be41075d3c6256599cb1ba764c9ef767850/area_under_curve-0.9.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1eb7901674452e9bcd20f7c4ddb40ac9", "sha256": "91e6e62797f7be0bee44725296462fabfed876337cd5a56b584b33a99c4c7d2e" }, "downloads": -1, "filename": "area_under_curve-0.9.7.tar.gz", "has_sig": false, "md5_digest": "1eb7901674452e9bcd20f7c4ddb40ac9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7346, "upload_time": "2017-03-11T20:37:00", "url": "https://files.pythonhosted.org/packages/64/87/578f39818b6989179b067bcaebdd77ce7401464d4fb0df5210da5f013cef/area_under_curve-0.9.7.tar.gz" } ], "0.9.8": [ { "comment_text": "", "digests": { "md5": "6632cfae76740f1a357115373849f593", "sha256": "967af7ddf0b8849169305a309ab0ecc46fc2e470b2760f1a8cdb8c0fcb701885" }, "downloads": -1, "filename": "area_under_curve-0.9.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6632cfae76740f1a357115373849f593", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7147, "upload_time": "2017-03-14T18:46:38", "url": "https://files.pythonhosted.org/packages/f8/41/393040d34c05e9b1bbed532e99f8a60e13770ea6a5eee482cc0f67aa81fd/area_under_curve-0.9.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f518bd25943cbbd60e0489c252cb0a26", "sha256": "abb4ec49ceece6be6f964543bc888afe96cae8b79a037fd2248e2a6a3bdaee47" }, "downloads": -1, "filename": "area_under_curve-0.9.8.tar.gz", "has_sig": false, "md5_digest": "f518bd25943cbbd60e0489c252cb0a26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7480, "upload_time": "2017-03-14T18:46:39", "url": "https://files.pythonhosted.org/packages/81/fe/c6fa9e221e35f36c27124ea66640005d257b158982c4a179a487215c57b5/area_under_curve-0.9.8.tar.gz" } ], "0.9.9": [ { "comment_text": "", "digests": { "md5": "2a76558069e0591d18b1784b0b5ac6c4", "sha256": "db1f73d9a3bea29a080164c10e5f6ba9ab379891d1321844983c58d7a39b4e84" }, "downloads": -1, "filename": "area_under_curve-0.9.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2a76558069e0591d18b1784b0b5ac6c4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7375, "upload_time": "2017-03-22T16:21:34", "url": "https://files.pythonhosted.org/packages/7a/99/de02f2e306f0ee1a18d664c74f01f5036bcd761894e6a7ae66041bfd8861/area_under_curve-0.9.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "58b1cb93e1f5a3238433549a72725d84", "sha256": "6fd6de0f8316b56dd79621a8373476fb2b5010533b8d94ed1f3dee70e3daade5" }, "downloads": -1, "filename": "area_under_curve-0.9.9.zip", "has_sig": false, "md5_digest": "58b1cb93e1f5a3238433549a72725d84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12457, "upload_time": "2017-03-22T16:21:36", "url": "https://files.pythonhosted.org/packages/2c/93/2b765cdfc85bd4035b9504197eb8074ee7e992d97712551e4975dbeb068a/area_under_curve-0.9.9.zip" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8f36e6d5618640dc3a0d606c03b33b41", "sha256": "9d71e97c8dd0635e191a5be114159a5ab47a453297b8c1267405072ac6e3ec80" }, "downloads": -1, "filename": "area_under_curve-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8f36e6d5618640dc3a0d606c03b33b41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7357, "upload_time": "2017-03-23T13:09:57", "url": "https://files.pythonhosted.org/packages/df/88/ada0a872eda81388b2e65d9cf4b53208839813badce2c37afc2f350f7030/area_under_curve-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a73e39bba05a3d5c3010e968860c0290", "sha256": "7790848302473be27a4a4e843a3fa525a0083e1cf6df3e778371f69f941817b4" }, "downloads": -1, "filename": "area_under_curve-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a73e39bba05a3d5c3010e968860c0290", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7685, "upload_time": "2017-03-23T13:09:58", "url": "https://files.pythonhosted.org/packages/99/cf/e962f34b6699b8c9cdb76e0440c007d08a32f2fb2243740fabc906b1da75/area_under_curve-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6e8e13e5e70ce2b372b26635fbba2f31", "sha256": "888dd1258aeb03ac820352b0d3a3013278c66784e644163aaa8232b87e427854" }, "downloads": -1, "filename": "area_under_curve-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6e8e13e5e70ce2b372b26635fbba2f31", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7383, "upload_time": "2017-03-28T12:29:14", "url": "https://files.pythonhosted.org/packages/b1/56/0cc5946dda7e4481bfba275a3b758c84b200b4c7b471bd85195aac866685/area_under_curve-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "361bfa2348b01ed448a6132ad6e095fb", "sha256": "ca126b0121122e27c40852d9c1c13410c9f0f54ae4d8945ff1f94faf2ecc159d" }, "downloads": -1, "filename": "area_under_curve-1.0.1.zip", "has_sig": false, "md5_digest": "361bfa2348b01ed448a6132ad6e095fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12504, "upload_time": "2017-03-28T12:29:15", "url": "https://files.pythonhosted.org/packages/51/a0/9660064f2488485d03e069193145c005f4eb5c96a4d7364e3c2a3972f9a3/area_under_curve-1.0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e8e13e5e70ce2b372b26635fbba2f31", "sha256": "888dd1258aeb03ac820352b0d3a3013278c66784e644163aaa8232b87e427854" }, "downloads": -1, "filename": "area_under_curve-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6e8e13e5e70ce2b372b26635fbba2f31", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7383, "upload_time": "2017-03-28T12:29:14", "url": "https://files.pythonhosted.org/packages/b1/56/0cc5946dda7e4481bfba275a3b758c84b200b4c7b471bd85195aac866685/area_under_curve-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "361bfa2348b01ed448a6132ad6e095fb", "sha256": "ca126b0121122e27c40852d9c1c13410c9f0f54ae4d8945ff1f94faf2ecc159d" }, "downloads": -1, "filename": "area_under_curve-1.0.1.zip", "has_sig": false, "md5_digest": "361bfa2348b01ed448a6132ad6e095fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12504, "upload_time": "2017-03-28T12:29:15", "url": "https://files.pythonhosted.org/packages/51/a0/9660064f2488485d03e069193145c005f4eb5c96a4d7364e3c2a3972f9a3/area_under_curve-1.0.1.zip" } ] }