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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.115-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.115-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.115-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c412c6b92de8af01fe3e51a9ac4ee4378fedbd39979feee4a1f786e05701ae1b
MD5 39f45be4d52eece75e01210c8ceea75a
BLAKE2b-256 8195940b0f4aea83a843bddbf01481314b89cf03b9a52b48118defb4e9c1db5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4aac75491e7c84c61ffe5672aa4ae2cad8362f56540ecb17fd28d0a8b3dba10f
MD5 b882a6d32c4650be05cf073747ff526f
BLAKE2b-256 7e1fce6d6e749ddddeee8b5a2e7c06a1fa3a6d34db53322ac335ce5be0b95d47

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.115-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.115-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80c3b467ce7c484d8b31a08800dce8f5135b73e1cdd71b15fb67d22d04f4c952
MD5 9316fa0914d177ae70f233beb477679b
BLAKE2b-256 b2123129f60e574364fca41783a96e45cd0021eaf683dbde03e9f2646c3b4adc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c86565af9bc0c1f0c127eba9d9f1a2b0c6d66731f597381fb1bb551462355f32
MD5 82f1f541d36e1da5ebddf9d451b6b629
BLAKE2b-256 8a8e641322d0afd04a0d4dbddd730b9543d81055c8bf1dfb776cc64d3b55293c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc84418a86f85684f59c5c1a06f09c791313d983efd5ce2e9dcad382c10e186b
MD5 efd1d7082acf175adcdd0db8602f18a8
BLAKE2b-256 1edb0d9035b0517fbd6ee7b4b0c64a863bd970662440b9b76be1cf34a03c51e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d3066776b12ab066ae1889ead036c830e3c3785b6294ca63221bcd893d5d2afa
MD5 9130fc7551774044e2d789c8fa290a1f
BLAKE2b-256 547bb32c591338e580dff4523e2cbcdb308a795c3eb74250a57769f18492d786

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.115-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.115-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba735be5fdcf5ad931c7731a70953d9d09a3094b27f79f804bd6e98b7c1185b1
MD5 095219797e532b1c79d62e458811895a
BLAKE2b-256 a3dc1dada28232c7f247eeffea29d7de502ca3cb2cab3e3dd4d86bc44ca258dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37772e05414e92bf40ecdc05c90ce30111eb4c109f826604e187914110338667
MD5 48e4849a76e85ce03925003d83429cb8
BLAKE2b-256 46920776e539019be35f03eac012c618567617fbdd40534ee2b38a2a6fc442aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a358ad3f449e58be46aa39ffc03fdc4de45c5f9094e90281384edbc9a4370ef0
MD5 1bfd54fee84f4755c7130d34baf336f7
BLAKE2b-256 96fa1f8d6d9f268914b713d56dfa4db39c0a113b2c34e34796d1bf93a0a8957a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5dee6d1457aaad2ff5c37c22c639f3950094406eb8536bbaadf786b1cf83d765
MD5 b4aa0af94cc2cbbc2cf2d43f84e71191
BLAKE2b-256 09682890239adb51626208a2d286119e22fc9496f95092016778affbff13dcb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.115-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.115-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9df91c8d273c76f5b67a8e2a2e0b95c244c442d922987dae3e065aaaf13f3ad
MD5 9a5b3dfdbaf822fc3b6b9a242fd31bb3
BLAKE2b-256 d2a723d0038515f37ef038da9ec0cd948d8a41b6bb6270ab5d09febcf18f1be4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f9ac869585bc37fbb070daffa9e93c8f554f993e11e69e85a7b738dac1c1ee2
MD5 19ef532341d95ec2cc69595ee56fd12b
BLAKE2b-256 f035b430d5a20f56d8f7150fc893b3c4815c5af5588be8bf4af30bf0a0e0a3a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d512017e1b04c40e17bd085b6d7b51dc08c7bf24d68a4967dabc7734ffaa2c9f
MD5 ccfdef26545165a7f15d45fe174e7961
BLAKE2b-256 21727f77b92a322e9153737b434ef3660059ce6ceca569e178744c99a6d33da7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 74ebe46df266998b1bd5ff73208eaf36e8b4774a3e193854c1d60d01a7877492
MD5 5a88719c89413334351babab354eb48d
BLAKE2b-256 cde0b2513c8ce1df6cd529e89b47731c7d16e99bd42c723c402c2cf1a5c30b4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.115-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.115-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5645a43d9294ff20f8916ddfe19138e5b9b133c13e21a3ce6a2ce2f768de1be2
MD5 7f1f23ca7e4a686860e11416353be646
BLAKE2b-256 27d93aef7db091b5ce90f4de10ccf0283558cba63ef72e6c376c860477b56e84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8b6ba85c07d998848eb66d076ea1f35b6ce5a23f46118cdd6b54562ff9c5bc6
MD5 7d2240d472fcc4b8290599b19b1db12a
BLAKE2b-256 34b358c77c81c772becc9b16afb3a69c44f9ac04731b374d38d0e0f85e66a699

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a18f083cd820231916039759c31f8534178d1906ff45bc862bd3770ac8293de9
MD5 14911d780cbc02b8d8af5f1893fb899c
BLAKE2b-256 885d924a359bcd1b2ecd092a17170c95b26eb2a1fa7856d7babccc064793c88c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.115-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.115-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5576e8de2cf2de5ac599e8dea6c1fa59f332d82cdd0d4e7cafd866653faf73a5
MD5 069efcf4935d6899be361bc22f2d3fa7
BLAKE2b-256 333450b1196707993690c61b6b7743f6df047aeee6ae7d952e5935b4b29c3624

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.115-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.115-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d6418df8d48036ca0f88862e2c2e570ce97ffbb3d2fe78d6bc87712a98a2f70
MD5 10a719cba24916619ab1bf52fbd496a4
BLAKE2b-256 45357c75799dca6e549f2435a04fdadaf280bb2ec21326c28450c80844a0bb6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.115-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a25de1ca41b29257e2f41e469e0f1ed1472749e59aeca1a7856c59aa53615cf
MD5 4460694c7c8ed30a748eda5b81a19b34
BLAKE2b-256 b506abb3526bd33fa60547058ccb849c16e7b7032d33aa5f3b7d2271034c1950

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