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.665-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.665-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.665-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.665-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.665-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.665-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.665-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.665-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.665-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.665-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.665-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.665-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e4348edd1b591b40e65f03a6f09b587fce5edcb16844c7785893f5e7597f7f2
MD5 43778e306045d5a50f475fe1bee10540
BLAKE2b-256 2f01d80218bc8daf692dcb53784101ea412b5e38432fa86a8ff87f6cd1002f23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f5855f80d18592204c70390c3ddfbbe7c17620f0097ef57566106d58bf72c65b
MD5 93444b7a09b4f0e61570e849c5a7693e
BLAKE2b-256 bfcd5195282f37eee6b34657d2e9c627d9b4dd60e74006ac2eba7b02e5b460e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.665-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.665-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44f06122f8306531411cc5d19366663d4897e011119e91db366f3d807d947c4f
MD5 7bbe1acd42559e7b252df1e6abfa933b
BLAKE2b-256 47837c42a9f1e28d79182e971ee80534fb1a25c53203333155bb091ac8f9434d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c494687eedf53ff6e94fd58f8e3dc9b7be5db01f7b36eeec682699224691bc7e
MD5 1ba712c3d38db24f15f0e333af7d8f96
BLAKE2b-256 5c780fdbda8d7be09e1458e7ef002fbdb00489023289113a850bcdd362ce977d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7683bb96f4c1a8f51e09dbbd0d2e9afcb5fd2d96e21b0b78fc4262c6bd861380
MD5 42a85846aacf6ff9560200c826482018
BLAKE2b-256 c922d02135c37a512daa7b9da88e649750ce535ab4eaf958c4026f4898d3cc49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 27f2164e632bcf91f46312b400b0cca0ceb63376a5afc099389722befb6ccc23
MD5 83bee81657dae89dfdda6fc6df5a55bb
BLAKE2b-256 917c9ef340ce0f8c4b350ad5b1861edc8f2aa5bf8887df4c5a45af916ad9aa97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.665-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.665-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90e02919952a1e0faa9802243dd4cb6b61031c77284ec1a4d325c52967b8763f
MD5 f53695bcb43bcd52f61c83bc3d514055
BLAKE2b-256 d5bcf9996d4d43cbe9e4d6981fbdc88030518baf2a843e5b989d9db70eeaf386

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b255e9a7357318a8c1489b6daa57b7b4bfd81ef686aa96972fc6c07bf407247
MD5 04d06c41c4c7b21eea1c99b090700880
BLAKE2b-256 8ac58b193e1d0bd468652568b2ed7eefbe4d4d9e7d98ce0fcd307cc781c1ea03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f1cd7454cd498fec93c5070aae622851a6053a75c7e56677d81b9f3a7cf942dc
MD5 e22f2cd9be817f886e8f7c7ca5e15bf1
BLAKE2b-256 01d17c8fdcbb4f1ad52d5bf4d652fde6f2d383c872050912a6531861d704e618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8478892cc15391466efe77a237cf621ece2a652d258c3e671d7587b949572610
MD5 6751ba78e31397ca4cab0f9b971cca34
BLAKE2b-256 6cdf2e6ef401ae66b63369b8c2f2c7d2490454b1b8341e9af31d0007919e3115

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.665-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.665-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 833e35283da27bf548bfd1d78fd68f0b028bb4feceead8be23602224b9e53866
MD5 df53942b73a9dc0f75686095fac6e1ca
BLAKE2b-256 27eeb6f905fda0ce14e9a98e2bc800c5155c96a0e9d23cae7f6626390ac77260

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48c93627b0d324e5f822469a7f16b4d294366c5838ea3edd979199c6dc283489
MD5 286bc89c0aca9fe960f66280292d0d59
BLAKE2b-256 19bb20726af3a58df61da8182fe5c6ce5bf4c329de4621221742253fe0e8d0a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 be806cf68da7b88e14f47c1266cfa4c76f34996c8f1bd3637b483a2e8cdda06d
MD5 849a7672303d387046530b4351e56810
BLAKE2b-256 0bdc1dfd5557993739000c09d9e375f5dd1d62f8d1118cbe04957d16116b6406

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e1648e37279e9d577a6efdd87d9bafff0e26d13550a0d8559c993215beba7397
MD5 37d7952af7aa113b8269767c712c9c09
BLAKE2b-256 5a82ebe4dfae235b764c8812987cacebed7769d24988b5183322bc733a6d0389

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.665-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.665-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c61bfdbb8aca92b3a9641fe3c9484e242542287129f697a9abc509f7ea0ec6ac
MD5 bd45ff7e3414428e341d92defb695aea
BLAKE2b-256 4acbd1bc6fbe1f94e70a0b4395a87765d6677b5c3c4fdb57cb5708ecbbda67c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 745b6f8a011b2b818f050c804f5a574b76388c4db404a96cd1ecb5aceeb92d52
MD5 525e1afcd8db75135c91ef679aedd849
BLAKE2b-256 a7cd7d61507d595f64020232198e3cdb7e1b9846ea82d1adfcf8e4bece178e49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 41a038d2b57582aae322df7a43536e1d70257725fa3bf933d109c5e8babc5409
MD5 3dcfcfc268d1183e8e56eb61d3cae3f3
BLAKE2b-256 b4d866d9a453b25e570ed33a49e7479659a073c60db392ffc3b5e23623e24ba2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.665-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.665-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d7067cd12f910433271d0aca9223c219a7719c2ed043112e0b584a489e09f396
MD5 20368bcce970da1b18c0ec9d6762a575
BLAKE2b-256 49dab65aaa910a77567ecb420c53c8c635db58fee27b7c06bf0dfe45101a3159

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.665-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.665-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ec9de198b4d0f97efcb7ee149981da57dce71ed83e6c6a101eaba026dcbe5a4
MD5 287a754297c1a84f1d126b43c0e450d8
BLAKE2b-256 71f16ab0cd90d25399286d855c6bfd5f1f13d201d62ff4bb316e1c511231c2dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.665-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 037712fb1e3deec11e161318dd7a55e8c9ff56ecffe6bf466ca63ba6d43b7bd1
MD5 e1ae720d4e470ad0d051135e8746dccf
BLAKE2b-256 2f5bfdf540df81cc8785754b12ab4dcab160e861bf98ecbca7018ff878ca94ef

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