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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.156-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.156-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.156-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.156-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.156-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 90c751a312547c3440f9e257cbfa345156a9caedc3627e9c9dd19ab1af6d2fbd
MD5 40e72ab7387404d2a6be8ae8685cc9b8
BLAKE2b-256 e068c88142ea97440b9e0152434b081fccec74b4c51e164ec488d67d10e25a72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-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.156-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d9dbb4a0716e8a84c4944760b979a58ff3460f74ffcc69f7190195ccbd3bb334
MD5 3a6074de8c3e4deed5fcd52a319ea8ff
BLAKE2b-256 88064a688642b03e054ec008baafac7bfca7d9706e2e039eaaf698666be7225b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.156-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.156-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b97793177da7142ba41db0fca7d7428d5c2335dcd84e2e6d2f9bf0394561703
MD5 46d53eb8320741736693ad1fc0200886
BLAKE2b-256 f13a8dfabce32cd3f8f8f8bad26512ec82bf3101186e79399411f9ed1f68bbd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 febcc868610caa806012b10396e364d447ff5ac79a67c2fb9ea91d005ffc0662
MD5 8b0ad8f544b22b9ce1391e34db0e443b
BLAKE2b-256 bb600bed4d459b29fc14ed23e8811b88027945dd50ab06811f3f5eb80a639ca8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8f92eab4a49d2aa3723abc691783b20b4aac94cf242506cb06a43701e0f1aeee
MD5 92fe0d0e85fd2ba2a9c76d275e780f50
BLAKE2b-256 0742b69bf7cce9e47c1314bf950fc4e7f31715f833f6b34033392de0df7eb2d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-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.156-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5cec12060c43932204424c2c9f414d16e8681dcf05934ebc652d0563710d2654
MD5 1b7b6cb5b30b0572837b097d3c34348f
BLAKE2b-256 788c0cfd473e0a25564f73945bc1a16cc4171008af2860038fd93fd1b62eab54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.156-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.156-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 314472c0d60a7156ee60909bb7fcb59a7219f4d350456590157e577861f26a85
MD5 60bd234f367fdb9dbaa5285c71d39a58
BLAKE2b-256 19e473650466716bd2c2b7af238f17e97727ca14f2c6ee0af4dba7b439a3b4fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97f68f8e042fa74c689ab6ced249c5a74f1a7434d6e3d9b8d9187a274fca3494
MD5 9ad9a6b10d57674119c85410c61c0290
BLAKE2b-256 788cc247ea377d9a107fbe1c10c8ae8cf926790eb82acd1b61f4c3af6f1137c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6b045b06ee406fba9aa6850174dac283d5c28348cf94dabe7c094324bc1315fa
MD5 0d167b7286d8845bc6870f4d76cb1754
BLAKE2b-256 c88ffc64c85f70fb9449e2d936b7662c5db484a96bcc889e709a0d981b542f5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.156-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d909224643f47f1a056f9a2eabce40a7470c2945d66d89d95d755ed5bbbc2a8d
MD5 f2621007b49dace5fade8bd17782d115
BLAKE2b-256 9b9471c10b368e2fbbf8585b429e87262215c8c74cc9ff1eb829329c01dbaa28

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.156-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.156-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a7e46160085f85acd79a2bb8cb0dd7b60b52c2e817126684f29166236db3c31
MD5 06e97bc735212d6b2eccabbbba92a848
BLAKE2b-256 c2d21892144bd25ab71338767413a3204d6eea94616318fd68ffb87489fe5d2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0abee74b96ca93da87ba751bdbdef8ccde220bc043ab84e5140ee0724424f770
MD5 caa59424ec9a9975343caa6820d8008d
BLAKE2b-256 fa2ab347151c907196b348ed65bee5d3f4204d36639ba454d76a3c52c6a18a6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-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.156-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 87f364e3291422a27cecf33a5ee1321f7e7c2605827d312b5363f4e3d7637e27
MD5 870b32d6d081e7383d2706015b36f4ba
BLAKE2b-256 0c2a8c2acbd3741c17e6503a0a5e1bb79747d48937903353c098e5512ee8bf3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.156-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dda4c3e33797b2e2dc84cebe6f41fba1fd376f9c06efe9ac47690bf3673fb996
MD5 7696eafcfca687b3f40584b818a17dcf
BLAKE2b-256 12fd7c13cd74377ba9ae7c9cf04e6ddcda32db0f15a7a05bcbf2cb49d2b4c6cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.156-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.156-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29add89f2a387f8e8a44136b0402ca1dbbb911221b1c575d05273ed4d0cbd207
MD5 9b4eab2efb0ca5778568a41671ac5426
BLAKE2b-256 9147b5d4fbe042898746951ec83260620c3e29957f68629ea8fb3a918624f006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d85f8223ee5f40f113c857a31b2b13b6df93129d2e39f216d8a81607faf30da7
MD5 41e6cba41fb9955be6c43463216e5f8a
BLAKE2b-256 0aa16297a07655f852a87a1d061582c8dec2222ef73df0d122662c4137250da0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-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.156-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ee68b473cb0c825bffc93b2d1135607c1b026291b1cf4a7021df8af96ea9d1b0
MD5 a07de25e33f8c5c9af48ebd3de627ffe
BLAKE2b-256 7f972f645def3ebb31800dee1b22e15a8cda2b46613fbb7d4270a5711e899a5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.156-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.156-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3db1b2f7ad0b9b525a7c7782b4e32f2f6d68fdb77ff2501a506946dacc36f266
MD5 13a6bf51c33d7656b3721a32d4329462
BLAKE2b-256 f92025cdcd0aa8c5a5827cd6f889dfefc3247c50d614c2ede0c8153d9992cafe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.156-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.156-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f60a4e31d1cf5927f7fb103d224e66ffddec26651286d8b723d2d1d9bbc0eec7
MD5 ba31653f29e3c14d98fbd8a5a3cbfe0a
BLAKE2b-256 cd767f73cd060a2415ffc7de972407c065b7ee302e96388a96e1a0a8d372edd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.156-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c81d4b54b22cf87ec6531ba49d7051b89f72645bd9e38d8e2e8a597a516d47b6
MD5 6b7300cde709a5f52fdb421d730094a2
BLAKE2b-256 7ed0b3ceac74f9d6edee65b676394e81f030b5d6b38c3b97f6f247a092921074

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