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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.98-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.98-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.98-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.98-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.98-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.98-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.98-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.98-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3299ceef5f5bb45b24c3dae0b994e62510d7b7031f14dc761f215bc24b02546d
MD5 dce3d7bd8d87f27fd23f06da24d1e13c
BLAKE2b-256 5c3c57c265807f35fcdda27c73ddbca915b573bc81fd79224b91173cd2bfc383

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-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.98-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c9843b88a667eaf705b45b40814c559bef7f50528e076c604efd9e0c606762ba
MD5 75a715c9a4d5f49981f5fa6a79842563
BLAKE2b-256 d272fd2078a1607831c30e474ea5456c4798f3d50a7ab60f6bcb8cd4456fab37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.98-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.98-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f096c3effe70227b448e20db5234fd8b4f401b2d46ac7bfecd3a68d28ec3eb90
MD5 4942ce52398c490485f308b76a791cb3
BLAKE2b-256 585c18cef70d331cee959bb07a158f824bd8869769b16632ed2ef06f4198581c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.98-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37525e551d7820f29142f70e99db89ddb9dff2748efec01ec0df2af1b7279b34
MD5 31567f9d8fc89cf61408214f581ba051
BLAKE2b-256 763da154753d4760c3ec9c10f375b3ad4590b2bb70de043476c44c2447e69bf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.98-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d0fe3b2ad235ffe95379f6837cd183fab93ca744313264c2e7055873a7e20643
MD5 720bb2b869734a529575110af342cf9a
BLAKE2b-256 3cefc067d036fd826fdbd410cc0208f27f2b40094f45245c9921022b649ac08a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-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.98-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 030d6bad20df1d35db1361f17d16c73dc4a7997ce0d5eee5d58799edcc554c94
MD5 d42d70461cc94ab55dda7609d0d03c2e
BLAKE2b-256 d418ba7d04986d5e484cb2969788eb8a3875e459b1ef078a2932aef2c6925a43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.98-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.98-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d21940639f6ddf7df0f4159238e9737fa2c93567467b71226136a456027cf78
MD5 be74cedeb07b757df9255ce684bf0a0e
BLAKE2b-256 739cc1a0f780dfda5c29cd0dab992744b85df15cc7c8d831232f2e303b84b714

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.98-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46b8b9edd537f82e305bed484c0dcdf5f1187b13e72e3fa18d94439ce0479880
MD5 a2e487363fcd79f502c2093afd08f3e3
BLAKE2b-256 531332f64290de6f1dfe30675fb0f015107a8f66944a8a56c089d2a443d19cf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.98-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 452477865bcbde88840546729596e7b71bb0a663946f605b169dfb3399c8b3b2
MD5 bc706f33088e09be51daafd5b30e10e7
BLAKE2b-256 8ee58f33462b16b54a43da2878b8f387748675cbc990181cb069c2856a6e3d58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-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.98-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0cd0b776eae8eb7d7a639f7a66f79c20d9634b66625639ed7ae5dbf85fec4883
MD5 cb17645939ba441b8d97dac08c0dbfe7
BLAKE2b-256 56a56b02846bac5b0a15332570292904fa5d523663fa45fcce7317b9c4cd1c94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.98-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.98-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f8364baafab359e21aff8e3f2f5a8fa252785b45097447f8498493057534759
MD5 4a4fc11b8a431abc9aba7b59f983c1cd
BLAKE2b-256 a9d1d835370e50238c9f7ee2c7c367b551e4e2b4f287490f404a081055d8bd52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.98-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfd2f15128a9804739162fce1e8abceb0a6ebf0ddd9e4581b4518b1abcd3cde0
MD5 5b2bf17464241ab7abc08d2a32e9aec5
BLAKE2b-256 124d76f8d5ea392a7926b0d5ed74c7c245ce0de069a43c8ad4bc3a2883c6c29c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.98-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a2e68872ffcb429b6c7e1d04653f070cc4ab9b90cf97f8785e27a2e2cb474474
MD5 1bea14a8bd6e131446a249dcf18f7dfc
BLAKE2b-256 3e7c84288e1c22c8995d0926b8f33dcf02cf284030c1be972e7d6c6bd7fd4299

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-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.98-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 81aaeeddd564ca18e1ad0c81bcc5082c72261edf35bd36f38417ed4154931e6f
MD5 e95e39caf30ae187f76459d8e5c456e1
BLAKE2b-256 344a6a074007428080b0f4d220dbd3ee2f15fe3431bc2bfefc70561a84965770

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.98-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.98-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43313eff2e0c50237714f355ff3de5f1be3dc4e998e44ebb9af82afcc2ab8140
MD5 567543762f0d7e9f04d93375379e7df0
BLAKE2b-256 fb000a87dc856d643b2bedf65f7be3634b3c11353e9e259cb1506d769ab50746

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.98-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e49019a6ce48f7a1071c508734203fd6cb6815e694d1f75aa4670d4d6ea127c
MD5 a7a962e1bf1b71efed7b2146a18682fc
BLAKE2b-256 23a5a80f9e29247e8fb0cf12e04c0f8840b80632777fa4f51373186a47b32fa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-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.98-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 76b9c4d6e2b0e6b8e82e15943abf5735a3034ca1dbc2a1b2e4878db4debeff94
MD5 d904d6f0febfd03a368097c99dd60fc4
BLAKE2b-256 17914f5d7dd865b32335d8e994ac2d57fb529de610b2a3270cc741a4f6fc651c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.98-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.98-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f46471f1959758af9e1800b6a99975ccc6ad7b296e291cdcd9704e52c0e6426e
MD5 e43f1361bb6c48734b6586bdde883e91
BLAKE2b-256 019b4264cc9f2f0ca0a54d79be593fc06b8f526107d81e7f61a0803d2a4cc892

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.98-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.98-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 190bb876488a6551ddefc7ac67660b1922a288fa628d180200f0304df1cc3d92
MD5 d49d92b837fac3a0b179b88a1348fe96
BLAKE2b-256 2c613e19c9c3f5c5e97b4ca38697220243cf492180ad70316a6eb2feac388907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.98-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24d9137856a07d7637a4c70f8ce344a1aa2c830a967aa4938447b4f6ee3101fc
MD5 69cc64db99f2adf3e158348d041af15b
BLAKE2b-256 594d0379afb0a26c0689e6b489cbb52c005099e13080970da0ab936e518b2b9a

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