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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.575-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.575-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.575-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6f306f1c255846eccf8d7e0e274618893d8b30a94569e803dc5587b5044ea73
MD5 114f02b0764d3ce58d4ed53631bc88de
BLAKE2b-256 a3cf18ae3c8a01079ab65edd3ec144666405c2ed6354d5a17121ce9e5211ee6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d12d1f47b76eb34426185dfd00356bba32a2fa65b4a77c89f3641948f8cf425e
MD5 5a79c4413be6024bbb3116b7ec5287f4
BLAKE2b-256 892f8eb9119e4a547d6dd6e84019cea7595f7cf11f6feb719d8103fd6ea5c860

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.575-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.575-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbbe2c24840d2f853691215b3d253318216e0218822336c15b73e413dcffecd5
MD5 9f9ae5cc955dec841a1d6ba28c7812df
BLAKE2b-256 8c7a98baa12af61fdcd866f3f4cd32a70f0ee44bbfcb8f9ad54eb7206d2b1ba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a18bae8805952cffbfceb2ba3468c9fdc4923a7f9558bb6aba91c585552c7bfe
MD5 4a016cdf088c093f51cb95c904c18d15
BLAKE2b-256 e9f121746bc568c16d07c5079c9351922f606e5fdf844a88facd73860fd98e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f80f1dffc156710ffbcb9b28dbbe5dbfe6f2596ae4cd6cf0ed310cd7f08bddd
MD5 e331a2aee2fb0f1746ca5c0aa007a01c
BLAKE2b-256 e34c15a852e7c1cd93b4aba335d41b0478029ff3d6eabce4deb907e1d04a70e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f8bc7ed2fbbb3e7904fbb41ec9a603ff5e569257e967bf56f67066ca8b731c65
MD5 8d27d7d0d968e784907333d2e36271d0
BLAKE2b-256 ac7d73ec2cba6e9f8b3def266d977ea6206af59d72850d8b12d58b84a633534c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.575-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.575-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcdbc36d9c133f2dc642e39ac96a485e96fc7dd3c417f726238aa2ccc46e992c
MD5 6f28c8ff9d9a3c824274f15af8eded06
BLAKE2b-256 7541b68318f88144984f9b6f4ab80248a434468236778422b27ff9831197935d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71b6e3b65edc68ac74b3d0e558f9949b1862842f2ea70d700d59549574801223
MD5 e38aa107bec0274a1b5effc80f5856e9
BLAKE2b-256 885c767f24e3fe32030d4811827bdf5f7b1522829c394bfa43f748abcf57835d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e98b1be210a1d2c83de7230f6d7664de343ae86d22677ee5e1f0be6d4c1bd135
MD5 7f397f9f07b3a88fadaa9ce3df2a01d5
BLAKE2b-256 6ce612f35acfb5d4faddb82fa8224b0c11c092d6d51c9f5af554997085cdd2a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 355fa407ec4240454f28a26cd5ea3c02c2ad8ebf554fa8dacc50095fb1358c93
MD5 001851eee752f91c8004140faafa673a
BLAKE2b-256 5616ae329ad5a7b8d484da3d48dfe3e672d9217d6f2e32c66084596958e489d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.575-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.575-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a75ac01a94e0d120f8cbcfc42896d2a0505d070241e15e1e6e299c78b7b6586
MD5 5e4dde28c3e9550153c76655ae63270b
BLAKE2b-256 a89687f45e4595d16ed343b29a366390df480dbd9e929e8f9f84409d36e37572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4827fee00d54247e0ef3aff5b7234810e9461f3770adebb3e59afedab6dd4882
MD5 bd62a49a860ce672139d4d7262cd4209
BLAKE2b-256 badfafc9fefc1c41c66eb518b730a38215a516da9445a4368c88667909526eb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f971a614288086a88d0502a85e66b8ec47da59850b8f697158757f011db5178a
MD5 8fd7363326533d2b082b9783c7cfa06e
BLAKE2b-256 4ebf9bb48040f47742f9b0b7b93750a3fa19ed6639e0f157a6adea6279a304ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bbda2ffef02f97980b1d60c0ea7714006b1412521848c15ff93d7c435aa0d53f
MD5 ae39d1e5eaead6f58afd457c87b4b5ab
BLAKE2b-256 31362aa77ee987b49b5fcaee626c84c47c3ceb15d101f27cebc1742e5f466607

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.575-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.575-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00760e32f4d56a151cac59a2fd78b4c61c5f40cf4f1a3d219f1af42bade24967
MD5 2f074fef375a2d5558c404305dae3063
BLAKE2b-256 044621d24e689eac751d67f2970c1a77b8df9faf4e7f537910694d75307a1704

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 773cec779da75a13f99cd339573b188dc48cd9da7979844101a3c6627de0c4ac
MD5 3740fbc0dbc023a98330ccd85c023824
BLAKE2b-256 104cfc2e66506597f6f5d457a2ee261cd1a7bdec705703f637ca5aeadc6c6081

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0306eb37bb5d97b03965beec50ffd37c0d27b04bbf717f906b9a6536778725dc
MD5 cd6d399d6fb487ba890a48be8fbaa590
BLAKE2b-256 4f2c318adaef789c79c65dc912ce1f1b0df894fca4d3f03da383973b5db128de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.575-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.575-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cec06c54a6f6309254dcbc58c8f95e2cc208be6afb4ddfee7966458f36c13d17
MD5 73c3de01c0bfa662fc66ad80ad597f26
BLAKE2b-256 4decb8aa4fd5e078d0b1d022cf918d7ae1e4fec7d0ef5a55aba98f4259e84c0a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.575-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.575-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ca4794405dc15507d814a851997c828f626ded6fd1220428ca701d299e1680b
MD5 e2d1dbad8fdecf9a186eb9429bf595e3
BLAKE2b-256 f2eeea052a774893b5928a7719a68991e8af8ea9a2b57cc877bf40f1dd7b13fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.575-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5e3f431d2b12092419347a7095a376ecb6dba69c299f950de9d670015057b3a
MD5 d27f78a1536b280f72c5861a037d59da
BLAKE2b-256 f61eea19626c4476628dac9fbf2bd6e92ea866652877005a65bf1c68f8adb943

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