Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.552-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.552-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.552-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.552-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.552-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.552-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.552-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.552-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.552-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.552-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.552-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.552-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.552-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.552-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.552-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.552-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.552-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.552-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.552-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.552-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.552-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6e4b8d12a1e5cedf856e75a34b13bcf49d1766786ba2cefa9cba1b2c8044a248
MD5 5e9daa2b1bc1200c30103cb605fc32a9
BLAKE2b-256 96c2252f3a2b8a89ab2572b00bf40072222ff55c12056425e5bd88dc22ce26b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ed4438742d7484f97c5f77aea02590704160c66bf01fcb22e1877fb616e0b7af
MD5 69b95d6c5a84ff75ba6421f16ce6992a
BLAKE2b-256 86769d618f603374bef209717fcab24009eee1fb513fe6e64a984c621ec1e815

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 055112b0f5628aaf29d2b447a796c54f80ad990d9652f63b5ac569eada9e0bfe
MD5 42d4fe4f333fe968f98776c131966565
BLAKE2b-256 bccd2dc04f33d34ef27fad9640f9b2bd2762670dcf55c9eadd203fc50bd97972

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b72d1e863b56a440d9930e2323f4ecda27b6202be255f2a088fd029f910f14e7
MD5 290eddd7fc60289fba145fd346260068
BLAKE2b-256 6a6a59e317f1a8d7c73c3316fbaae624ae134242fa08351d29f000d42bfc96c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ad13ee651750210a10bb0f804fac093c7f486da63df7ff2b769246933f43f5c3
MD5 9a1c629e1ad3270917bf58b80ddeea95
BLAKE2b-256 15b6919a85d67763fda710f65dde828718dae70534f9c03a1e6cd56790cbfe16

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eedaa141c93befb80b5efd86ebd2530306348ce1d9ee020e5e97d9f5c07c617d
MD5 86c85697e211e738bdcde63131c649b1
BLAKE2b-256 68eca5b7d9e920a37f9d493ce8a79507cd5c5025c4f708e0aaf9125079bf7e0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3854f1ce49162fc452ce73c5fe3012f7b0b02952f0d9c19bb6b8d3fc32c85321
MD5 0be248da5dc6fce2932a31a7a45cfa36
BLAKE2b-256 cb811b2f4b8f73768198b1094fc513c75207573cb0ac2d52534bf87fd2bd30b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d1a27be0cfdae91aec78f1ef56c2c52b5536768bb33ed7279ecba4386cf2200
MD5 5e4600384a2dbc97eb975158d79005cb
BLAKE2b-256 affd209494c93149f97ec8cf8d5e8c6c342382004b727a1fb41d41a65d7480c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 007b46a5dd3f7e72a6c0291a36fa8517e546f2c04f3171b4ca54f85224f457a9
MD5 66a144187c3abc5a7fcdc909451125f6
BLAKE2b-256 d27b631e3e94947996df803e798de36cb7e0466f38feea0db1a0384ef9c16ebc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e086f4d4692683b9f796845eedfc542523e0cee69aaf61f9985152d7ab5e81ea
MD5 9ea46cc0a9c61ef9576304c0cf59e200
BLAKE2b-256 fc8ae3c4e7b78cd3d4671e307a43c806b7906015967683880f30750933809954

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd9f9cdf61fae682a4c4e0ac0d75f9664579058ce7b584ca7d44a4879e98eca4
MD5 577aea578d17675457c772fbe068ac07
BLAKE2b-256 a87e5b97857360c7a63ccfc9094c676fb7c05ad63f2d05818302d6674b68fdcf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf78865966caba32773932288bfc912ac2f4f209f7d9c6582ed98fc60bc8105d
MD5 fa4ee8f075ffa76ab90aa0ab4b935ef1
BLAKE2b-256 259c7dee183b06a4e630915e25ef691821d32b9e9b3d31f02a49ba171f9359cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d3709c45d8077fba05ba027fa443104c58e0d9f18079bda688a2a21f85169f1f
MD5 2d2933a208d20af561cab14d126dd49b
BLAKE2b-256 3d0f848f591b69ded470e25ec3be29e321ae19da98b1835e0b87d155dec48adc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a74969af65283a9c2585d1fa6e94cd00a957d0f1439e0e5affdbcf1e4c8f4dde
MD5 06c3a164b8e13762a79efc189cabe442
BLAKE2b-256 8ddcbb8d413270089201cac1e1ab45b6fb7d10a9aed432ddf1017d20ed6aa43f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87774c2b5faf12cdf025248cd3c17ea080f114d0b0604304f6c08ad2f6205eb0
MD5 eb5e0b632599f95debbdee042461e48f
BLAKE2b-256 e1a7fbeb6ba74bcb27de5d6157f2aa12ba675c0931a31c482f39800ae415ecbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4cf406d08cbf4edc4539548a44ec1ca9eaa5439702672dd9684c0a657a5dac6
MD5 e85f049d5a54095b56e40b1d94cc9786
BLAKE2b-256 3cfa16ebad35465bf8bdba929745b76b22ad84dd8264a83777856315588a9cef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5762b8b2eddfdb1d35f540b1273891efda00f00cd4bd5dc081e9e5c1c6476eba
MD5 abfd1cb3393ddadb7162608f545f9b22
BLAKE2b-256 10a2203c722d74311bcdb976175099bc191349d6612fbf264f609514031608cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.552-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.552-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 edab5febd2a4fa700a4f0290f0bb6d00ea018b39349a8c29ff7f1f593e47e66d
MD5 01145cb2646bd6bd9a762d9d84fe0c87
BLAKE2b-256 cf489c6c735e39a221b947eb6f0f3da2167b973cebb28a10ee6add28807da154

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0bae281750e118b45cd64b0dc69bb86e341511d57ce6e2411cdbcb48c3f3fe03
MD5 b23bde21b80e6932cb240b72ea157fe3
BLAKE2b-256 63e545b6850ae005df321408da08e51d73927bbe1f1c80298883a71b21ced86f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.552-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.552-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5f83748519c204aa979d728d1b4af5e3c532af43c14e9095b63927ba7b427e6
MD5 331bd6a6e4d36383110139b03d3b0c0c
BLAKE2b-256 0ff816e8f7c3189235558569adf5809fa8a6a0b7c5c7f18e70b3212dd577a2d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page