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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.645-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.645-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.645-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 86b6d9c7b820c59107bbcfef33114b1ea6dd3bad025e9529203d26d48dd28aec
MD5 61fac5c6878d98eb96bee6fc0a787797
BLAKE2b-256 208e7153b57e1c39829900cd57078bd5892dc0e0e16fe0b72a425e755b557921

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fad5a8b4f836bd7e187f8348eb004d32df15f1a5f3b002ffa040a566fd8c89f3
MD5 afc4af25cc3473648466b13f6ff5aa7e
BLAKE2b-256 072a546e4f72cfc2e7ac635f7b84ab3203813d1650a7b27dcc0a6d11b2bae114

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.645-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.645-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c25967d16611ca482fbcd4d895dbee777f46ad5312521b7ec402feb2a39324a
MD5 ea69f6c51b513ad1ae43daf35504799c
BLAKE2b-256 28c43e40d92d27a338069cdab51668dc40daf087ac49a738c100dba79ca68c8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73047fc7c623a00f14ed73c0ba7936b97e5059d1696b43f03edbf81d41237d9f
MD5 31c4feeb459cede9b65306b175033178
BLAKE2b-256 7ca85d2738d8c76455e657808e5da8090417e1b7e3e2a6d2a1138899006cc288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3712675f4a6f31bec16b2e903f378ff777bb69310bb60f078098351ee6343da7
MD5 55ed6a473f26b509c8a798e5f6fa2bba
BLAKE2b-256 772313cb3000359fdd9dd8d7b18c087fdbb661b039df0b77e49db00a8d29ae5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 123cce988752cf39d81c6810e03de87b34b62bbaf06912deaf85e21556d9806e
MD5 d7fdfe0b588d66d5bda43c1e556443cc
BLAKE2b-256 cffbe3f1a270ec96d881d5b4c67b277930fffc53af57e08ddaecc61b1351a7e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.645-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.645-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ede6efa41fee30c3edb6d0dd8f2b7bf75255e0086b64c8454a8548688c19275a
MD5 89c8524775dbaab39bd9e2f3897c3e10
BLAKE2b-256 9b2594b2f1ad49f8e88881225f03bf670f38ebbc33379c57d201a517b333ac41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b143a8d25050f6e9338f01e5b8114892cd90dfa23d1e9638b64a5fcdd932411c
MD5 b4c15e7f14859b7ea58369f7299e0179
BLAKE2b-256 dd804b1f61e7b96eff89315bf10a63296657df8c91fc57be510bf72b39814bf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b19f756f80827fa049caa9709c986229dd4da082ce5179fbc09d6c56460890e9
MD5 ff7243830d363b408553a054655ba649
BLAKE2b-256 cdf7004a27a8ff31b8c8154891c8daf59e8a6d98f7105f7296089b8cd2a8e792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4617b21e4a1b88ac740b21486f9400af58b828cfd1b5334c5fe0b54953599630
MD5 6baf566c4b611a5c2d088abe48bdc383
BLAKE2b-256 797bf7d730beb9175cbff23e226e559400b818ca03f5879471f6c81464104e14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.645-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.645-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28a27e08b309922d4fc92fd05c91b3e71efe2bcf00b07afa323f63aa67d2d5d8
MD5 c7c91af7d9ed6a050554eb1ff11a1305
BLAKE2b-256 00ff07e303d7477cdd23024d372cf4916e1332621ab0f5478512e1c3b9473e26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3b9424d5f7f96f3a615b1a40e805bf8af070f026af0e8d7d77d8932d7c49ff6
MD5 09d1cdef375e8c041d2d62c254b1ac4f
BLAKE2b-256 b8726dfa9d405f0793a68dd2e60c84d8739357d2a59dd86d8c175a80574b8921

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8685a08b1745123e39aa6f3ab8439746d210b67f86af8cd92b780e6aee436027
MD5 cd1b93fbf49ed473f80471d70821b0c2
BLAKE2b-256 b8c03e6e1802aaf28aa14817d7c9450ec508c7872b4fb4cf80fbbcc177878a1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 17f12b63c7027e6245693de1fdcb93e7b7b052b24fe4f658474f6d3751483e68
MD5 81d9bbd4a4a30c0dc9df69ea1c434697
BLAKE2b-256 5b04cea518b3cb9167a36dcd34ce238a99260d22405331e4b548b68c13dd521e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.645-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.645-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b1d163413cb4b3d9ae993562ebde083e855568ad25dca3b912ee51135dc6f81
MD5 fd309c35c65d5ea25c1f4c529bd42f65
BLAKE2b-256 97cc1d493ab65d3ba12294a0f3675cfdcc704388cd6ef6a096a32d9ba6957bf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f9d0a854d6484aa31907267eb13f107c12676bead51d74b8d9014218ba0e25a
MD5 f82f78ab3f2d6ba5768014ff59ab43ce
BLAKE2b-256 ab348f56d194d59f794bf368a8f583b0e1d71b6991c5d21ecfca073bf55a8b5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 13c54e02fccf1133adcf08cdc2849e84300082f99f3f496c6677dcb000c4982e
MD5 30cf481cbf67268191c7d4f9a2c6313f
BLAKE2b-256 75ed0a61fafd7272138f872cf0dfd668943a92150e6fee4e04d15023ab5bfe97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.645-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.645-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6044eceede92c9645099b9c8891d6c09a189209404091af016ef75a7d69ccfd1
MD5 d327b0da3ac6ed9f6bf5af7cc76e465f
BLAKE2b-256 e2389506c3e0003b3049325ab3c3457a2bb3307a415df1ee2f99f1d5b6f7f08c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.645-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.645-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9b22ca1ffaaec1541df27e7fa53348e1a6128d2e57994a513eb0e82fa861266
MD5 7e810a7041ffc8c6efaa6e85ecdb5242
BLAKE2b-256 63081f874eca49e285f5825b1895678787a91416656b9b21c6add79afe341e56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.645-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a59fb48d5ab2fa1828e2d5901d633b346f0e6054cba9fe42c8bbb38605321a98
MD5 76e37d2d16c15589083768c8d20c53b9
BLAKE2b-256 1763adabb532ab8c3f376d1f6f41ff178183d93082b9806690d4864a1a57bd4f

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