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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.194-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.194-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.194-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2823eacd661ce238c6137bd06fea188d4e36d0eb3b03a84a1f6abfe18fd8c897
MD5 3f1d981570d8018f7bd1b3552100bad5
BLAKE2b-256 755131d16190b6613268ac5a16011873299e6ebe121d165026760c0c8d96e156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 26f995b216808cbb18e9dc90e8b43c7d806a706b819afc73550a0b322b0870ce
MD5 030870ef0f011518270ddd02cd2f6da1
BLAKE2b-256 43a0a629a5574d3fa7f5a4adbc3acfe6f55b34a9134040812735d9e56fc1e724

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.194-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.194-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12cd4ea3e2fbe45e4e6479881d41be5a151a1f53037009f0d5c37c8a5d1f9baf
MD5 508de4eddf228522fa0b203b3d80c859
BLAKE2b-256 520c3ddb2448f48f477a8d3a4a002ff74baeae882749da7cdc980594fa4f9213

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccb67117db5f5eaa02bba84b9817fe9388eedfedf79e29021ff628214e12a6ee
MD5 1b6f5c2ee9fca685bb5fe95d52306b7b
BLAKE2b-256 cec1a8816b08d25384443b1d925b04dbf9e97e948314c96e71d83127a0be4c8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9c04f83a20c2773d64c84c6127821d27ed926db9203b970fd19a3b4e94e6fc6d
MD5 d8847a694075d3448bafe30b037832e5
BLAKE2b-256 02da2eecdb6633b60028d4e35697c05339747cfc4a674323f23086822916e886

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f7cf24fa71905ef2641309175db4500a2940ae930db5b6aa90a10bc1cda6a785
MD5 dfa931b5ec6e72a793dbe68ff526e2da
BLAKE2b-256 a20b85c9dd0122c7f772b91587564217f106981eee627662936c446afa3c88c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.194-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.194-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f142d99b695b5cdfa62efe974cbbf9c5e7c6c7399baa2333a04003917d6c06e
MD5 9bebb19f252c9bd5e2931ccea55d1f40
BLAKE2b-256 f0562e4ba16bdb9f8e95ff99361cb45e9ce2763f4a01373df85fb5f2e50182b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 440fc8be47258e1efebbf04bfe2eb5a9c7e7d80719856ae6953d97904f9694c3
MD5 4f2ddb6d6db0e39d5938cfc854824dd2
BLAKE2b-256 7f40e49abb3b56e9f4fee9d66a24b6924277997bb1285d905f449cf956a95ea6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b854dc3d7f62a3e38aad840ef299f99c63f48682f9cf070144d01144dd701d3
MD5 4c6773ee8dc442f63e23a37f839ca963
BLAKE2b-256 179efec57594b2a081b4ffa0a6c423318f93d1e62432a86a8bc0e17d8fe2fca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bf147df82baca807d60bc3cf4818798a0e5fe10ba5ce74bb81b58b34f0023219
MD5 8f4fa3b0bdcc83180304106507872d3b
BLAKE2b-256 2c4e5b09073e66f44787ab4c578e41996b1367ee90bc1258ace6e0b8b30031e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.194-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.194-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e76fa553dad19aee25cba4339a9b75b9b3592dc16a80a3337d0d4fb86d6971e4
MD5 120138d3029bfdb95a6c834853069c72
BLAKE2b-256 eed2f82afd8c55a33b527163b9e7c210ce6bbf93b29a7e315a66ec58e152b766

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc1fabb7e6f198f5b81084d3f613f9650fe939e9167a327838c379172cb813e3
MD5 03af2c9a1e956c30c7d8f02d4556246b
BLAKE2b-256 4beb67054201b4203f74fe6ea0835e18976e0012560ebf8b96176258188248b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 65bcb8f233527267a1574d48a161d8b8c53912339199bf82e21db417868ec4f5
MD5 e6104a3a8f5cea8ff151325ae3c3a3f0
BLAKE2b-256 874f3dcb66f7c77efa39ed0d6e0519790d1f7313a000bc41b074e0df5c6cd807

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b5b7714eb65bb62df67314a00d4e686d1b7655768b3e61b7b55aaf2467509d6e
MD5 ddd6e9e5fb6e04234fbbdaed41a2ab42
BLAKE2b-256 b0479d9c1a55e2c6b3726a1859dea4e18534ebeee1cb3016e0b078702cde4ab0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.194-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.194-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc712da380af7b0880ccec2389107a60fe98dc47796efe4fd6ef1b1c52a32cc0
MD5 995b816fc5f4130774b7ac052154f249
BLAKE2b-256 8bd5fc1d1eaf040a23e3275b72707c1d9f5a08edda7536ce5f8a70eae16bd916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65b632070a2f6bd75dc7ac6bb60de7d3e601f36e7fb0e2ed8d4c06d0b8b8e880
MD5 4caf5c131983342d9ec9929db2e9cb63
BLAKE2b-256 50fde237c7582d8ad94993a2a2aaba8c74fae86b9179dae85dc46439c00b161c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 046289172fb66eb52071c049edf7ff8f2f302fa17e5d84c5a28d94f9735cdc61
MD5 c0ea7ff345b835f1d9c962a3e490d7d5
BLAKE2b-256 a4022bc5ce2235344833e2b7edabce4b0eb7c3b851e76236b1cdbd4473ef17b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.194-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.194-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0d508a50d3f35a028884277cd0dc1d75f97141583ed28316f1f1ae5803621d2a
MD5 6053bb2c7ef9a535d1dc8d69686225c9
BLAKE2b-256 0966776a5154ab515361b2a1f26f2aa386a34185bf70b93bbb0d0430de263e5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.194-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.194-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0782587bb26a17463d49eba857536ac7592a526012517d4344e27497c4b31ca3
MD5 7a00aa6f967fa25e722a90933ebdc10e
BLAKE2b-256 35f7635f9e357b165494d5860113f16f9410e896e9d4687465ac680a2601aae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.194-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df42fe3dc61b2cbb781265de56ef4231c56cec008e1d443ab7bab9786f119497
MD5 25af6da07ae66444960672c51ce8e4c9
BLAKE2b-256 09ade2d3f466586ceae043065b3ab875d0fd12b47922a6a9c39ed20d08b7e517

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