Name | unknown-terms JSON |
Version |
1.0.0
JSON |
| download |
home_page | |
Summary | Unknown terms library for math apps |
upload_time | 2022-12-03 13:06:02 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2022 lightningcell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
python
math
binom
derrivative
integral
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# unknown-numbers
**How do you use?**
```python
from package_name.alpha_term import *
# In this way, you can use every class on the package.
```
**How do you install this package?**
```
pip install unknown-terms
```
**Quick Note: If you don't want this project as a
package you had to change this lines in alpha_term.py**
`from .multiple_alpha_term import MultipleAlphaTerm`
`from .printer import TermPrinter`
**to**
`from multiple_alpha_term import MultipleAlphaTerm`
`from printer import TermPrinter`
**What does this repo do?**
This repo allows you to create exponential terms using unknown numbers comfortably. You can do various math applications using this repository. Like binomial expansion, derivative, integral...
```python
term1 = AlphaTerm(2, "x", 2) # That means 2x²
print(term1.get_coefficient()) # 2.0
print(term1.get_alpha()) # 'x'
print(term1.get_exponent()) # 2
print(term1.get_printable_exponent()) # ²
print(term1) # Irregular -> 2.0x²
print(TermPrinter.print(term1)) # Regular 2x²
```
AlphaTerm class has multiple methods.
```python
term1 = AlphaTerm(2, "x", 2) # That means 2x²
term2 = term1 * 4 # That means 8x²
term3 = term2 ** 2 # That means 64x⁴
term4 = term1 * term2 * term3 # That means 1024x⁸
term5 = term4 / 8 # That means 128x⁸
```
_What if the alphas are different ?_ The answer is in the **MultipleAlphaTerm** class.
```python
term1 = AlphaTerm(3, "a", 4)
term2 = AlphaTerm(4, "b", 5)
m_term = term1 * term2 # This expression returns MultipleAlphaTerm(term1, term2)
print(m_term) # 12.0a⁴b⁵
print(TermPrinter.print(m_term)) # 12a⁴b⁵
```
- _NOT: Operations such as exponentiation, division, multiplication can also be applied to objects in the MultipleAlpaTerm class._
Raw data
{
"_id": null,
"home_page": "",
"name": "unknown-terms",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "python,math,binom,derrivative,integral",
"author": "",
"author_email": "\"@lightningcell (Hamit \u015eim\u015fek)\" <hamidsimsek4457@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/69/e4/7b8ff48c4a2d373a8d91f362eaad0048f95ad0eed16fbcf6eb9ab171aa9d/unknown-terms-1.0.0.tar.gz",
"platform": null,
"description": "# unknown-numbers\r\n\r\n**How do you use?**\r\n\r\n```python\r\nfrom package_name.alpha_term import *\r\n\r\n# In this way, you can use every class on the package.\r\n```\r\n\r\n**How do you install this package?**\r\n```\r\npip install unknown-terms\r\n```\r\n\r\n**Quick Note: If you don't want this project as a \r\npackage you had to change this lines in alpha_term.py** \r\n\r\n`from .multiple_alpha_term import MultipleAlphaTerm`\r\n\r\n`from .printer import TermPrinter`\r\n\r\n**to**\r\n \r\n`from multiple_alpha_term import MultipleAlphaTerm`\r\n\r\n`from printer import TermPrinter`\r\n\r\n**What does this repo do?**\r\n\r\nThis repo allows you to create exponential terms using unknown numbers comfortably. You can do various math applications using this repository. Like binomial expansion, derivative, integral...\r\n\r\n```python\r\nterm1 = AlphaTerm(2, \"x\", 2) # That means 2x\u00b2\r\n\r\nprint(term1.get_coefficient()) # 2.0\r\nprint(term1.get_alpha()) # 'x'\r\nprint(term1.get_exponent()) # 2\r\nprint(term1.get_printable_exponent()) # \u00b2\r\n\r\nprint(term1) # Irregular -> 2.0x\u00b2\r\nprint(TermPrinter.print(term1)) # Regular 2x\u00b2\r\n\r\n```\r\n\r\n\r\nAlphaTerm class has multiple methods. \r\n\r\n```python\r\nterm1 = AlphaTerm(2, \"x\", 2) # That means 2x\u00b2\r\nterm2 = term1 * 4 # That means 8x\u00b2\r\nterm3 = term2 ** 2 # That means 64x\u2074\r\nterm4 = term1 * term2 * term3 # That means 1024x\u2078\r\nterm5 = term4 / 8 # That means 128x\u2078\r\n```\r\n\r\n_What if the alphas are different ?_ The answer is in the **MultipleAlphaTerm** class.\r\n\r\n```python\r\nterm1 = AlphaTerm(3, \"a\", 4)\r\nterm2 = AlphaTerm(4, \"b\", 5)\r\nm_term = term1 * term2 # This expression returns MultipleAlphaTerm(term1, term2)\r\n\r\nprint(m_term) # 12.0a\u2074b\u2075\r\nprint(TermPrinter.print(m_term)) # 12a\u2074b\u2075\r\n\r\n```\r\n\r\n- _NOT: Operations such as exponentiation, division, multiplication can also be applied to objects in the MultipleAlpaTerm class._\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2022 lightningcell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Unknown terms library for math apps",
"version": "1.0.0",
"split_keywords": [
"python",
"math",
"binom",
"derrivative",
"integral"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "95f08978466a4853e10ecccf96eaa93d",
"sha256": "970b57c1c95231b34dabf17faff779aafabfd1dd7d849838a53d974cef27e04f"
},
"downloads": -1,
"filename": "unknown_terms-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "95f08978466a4853e10ecccf96eaa93d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6977,
"upload_time": "2022-12-03T13:05:59",
"upload_time_iso_8601": "2022-12-03T13:05:59.517277Z",
"url": "https://files.pythonhosted.org/packages/02/b8/d8c34161412bc39235b0969f639e44c91db0333f5db32d5743109844825e/unknown_terms-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "888cbd0e1b94fb30590dce1ec43c0d5c",
"sha256": "f33470bbc5999989d85589cea7a277fbb7b9e69ccf6b998606891c08ce9e11b4"
},
"downloads": -1,
"filename": "unknown-terms-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "888cbd0e1b94fb30590dce1ec43c0d5c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7213,
"upload_time": "2022-12-03T13:06:02",
"upload_time_iso_8601": "2022-12-03T13:06:02.356784Z",
"url": "https://files.pythonhosted.org/packages/69/e4/7b8ff48c4a2d373a8d91f362eaad0048f95ad0eed16fbcf6eb9ab171aa9d/unknown-terms-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-03 13:06:02",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "unknown-terms"
}