Written by Steven Byrnes, http://sjbyrnes.com/
Download: https://pypi.python.org/pypi/trianglesolver/
Source code repository: https://github.com/sbyrnes321/trianglesolver
This little package applies the law of sines or cosines to find all the
sides and angles of a triangle, if you know some of the sides and/or
angles.
The main function defined by this package is solve(...). Simple example::
from math import pi
from trianglesolver import solve
a,b,c,A,B,C = solve(b=7.6, c=8.3, A=pi/3)
Following the usual convention, lower-case letters are side lengths and
capital letters are angles. Corresponding letters are opposite each other,
e.g. side b is opposite angle B.
All angles are in radians! However, you can use the degree constant to
convert::
from trianglesolver import solve, degree
a,b,c,A,B,C = solve(b=7, A=5*degree, B=70*degree)
print(C / degree)
Raw data
{
"_id": null,
"home_page": "http://pypi.python.org/pypi/trianglesolver",
"name": "trianglesolver",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "trigonometry,triangle,law of sines,law of cosines",
"author": "Steven Byrnes",
"author_email": "steven.byrnes@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/6f/52/18f909fcc652b2a4de75a274aa3de0d567a5d592b13d57e65b76c550bdf1/trianglesolver-1.2.tar.gz",
"platform": "",
"description": "\nWritten by Steven Byrnes, http://sjbyrnes.com/\n\nDownload: https://pypi.python.org/pypi/trianglesolver/\nSource code repository: https://github.com/sbyrnes321/trianglesolver\n\nThis little package applies the law of sines or cosines to find all the\nsides and angles of a triangle, if you know some of the sides and/or\nangles.\n\nThe main function defined by this package is solve(...). Simple example::\n\n from math import pi\n from trianglesolver import solve\n a,b,c,A,B,C = solve(b=7.6, c=8.3, A=pi/3)\n\nFollowing the usual convention, lower-case letters are side lengths and\ncapital letters are angles. Corresponding letters are opposite each other,\ne.g. side b is opposite angle B.\n\nAll angles are in radians! However, you can use the degree constant to\nconvert::\n\n from trianglesolver import solve, degree\n a,b,c,A,B,C = solve(b=7, A=5*degree, B=70*degree)\n print(C / degree)\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Find all the sides and angles of a triangle, if you know some of the sides and/or angles. (Uses the Law of Sines and Law of Cosines.)",
"version": "1.2",
"project_urls": {
"Homepage": "http://pypi.python.org/pypi/trianglesolver"
},
"split_keywords": [
"trigonometry",
"triangle",
"law of sines",
"law of cosines"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ff8e43d45cf3e18e3f455e4b5ab333a7c27b8e38c4e535f7346b7148ce08eb65",
"md5": "a30c514a2a22dec93d4bf2e983f8259b",
"sha256": "aa0903c3708b4e2b496f06d490cae72c6ff6274b00d1edce420fcfa3b2b76682"
},
"downloads": -1,
"filename": "trianglesolver-1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a30c514a2a22dec93d4bf2e983f8259b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5377,
"upload_time": "2020-04-10T18:52:29",
"upload_time_iso_8601": "2020-04-10T18:52:29.811901Z",
"url": "https://files.pythonhosted.org/packages/ff/8e/43d45cf3e18e3f455e4b5ab333a7c27b8e38c4e535f7346b7148ce08eb65/trianglesolver-1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6f5218f909fcc652b2a4de75a274aa3de0d567a5d592b13d57e65b76c550bdf1",
"md5": "bdefd4ab0e2020357c49b146cf757383",
"sha256": "4af18aade579d5c0d64389b3e65aeaf06cff26319762ccd859e3268559a76aea"
},
"downloads": -1,
"filename": "trianglesolver-1.2.tar.gz",
"has_sig": false,
"md5_digest": "bdefd4ab0e2020357c49b146cf757383",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4718,
"upload_time": "2020-04-10T18:52:31",
"upload_time_iso_8601": "2020-04-10T18:52:31.193460Z",
"url": "https://files.pythonhosted.org/packages/6f/52/18f909fcc652b2a4de75a274aa3de0d567a5d592b13d57e65b76c550bdf1/trianglesolver-1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-04-10 18:52:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "trianglesolver"
}