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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.184-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.184-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.184-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 40108dcd489cdebe3be1c63f83761f60de4397cd2886e5c97479baa7f13da68a
MD5 2f46d8c41454c7b4aa36eb3c5443de96
BLAKE2b-256 e63b02e5923af8a4f49142388c89ebfbad7852054c2080711eb80ccafd431962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 084cbc28d922e202c3e84952220ee445efbe742cf5e4e6266ac67cbfe4ea810a
MD5 97a44d5e39935e30bf4e5a5e01c806ad
BLAKE2b-256 a4b075739e7a9918270b5367596080a84c9f3db383387ca8c1aa663cf07c93f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.184-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.184-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c54d76bd919b999b226b68a95cc9c6ed5a38e623243660590cae78434267c40f
MD5 662bd8bd790463bb491b616d2f5fd0e1
BLAKE2b-256 e3e259373b72e1b6721674785e1b634bddc490530ea9769243f6c683721c9271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6dc5bb53adc52562a5d2dbc007fef263ac472aeae7efefb7ea1e7a42ca923603
MD5 cf1be0d0797d5889f98136c7874f49e3
BLAKE2b-256 d95147de09e85d179d5cba45c63affa3f51bd3be052194048b9a134efa08123f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5cf5735281257a8124b52acfd986cc78ac7130151bc10f75ee695e4dbe966d72
MD5 b9e7d81e417455c5f18535308c5c8f73
BLAKE2b-256 11549addbb0e768463505c99960295c1e0c280938952da27c6ec27b33899ed59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f33d682aee3baf312899c1c0856e1f97f1e88984de72e9a1b9052bbcddf19716
MD5 41f7ec7bc026cf6312d7f3b3b355be7c
BLAKE2b-256 1b2d196c7daa8857486d7586580e55bb2a2f1c0b9b70228aa0e75eaf324ea3ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.184-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.184-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd045173f6f04d095616dd33f497a8e5a7075ab0cf2f20d9be8c430b2c1c16bb
MD5 4fc47301ad5d0ac08af0e189980cb9e8
BLAKE2b-256 61c51bdb276bc5b2f11351fd419964fc9dfa53d724415fdb79d657f765352222

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d643622222c2e65c44b2e7e57dcaff453550ea55bba8fef75550bc529a0eb4f3
MD5 35041f0a57e0392cb4d200ef13de7378
BLAKE2b-256 d75a0d650e7cf7d97ac5e33114e91c3dff6c7fe263a618688a3ad6ccdb6c0745

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c945977fb5427746593d209b38245d58a2f679663b53bd7cd816998c6ba946e1
MD5 5d41970b285f6b8876bd5eb1c3c62ba3
BLAKE2b-256 8c88e66dcdd4e4f70577d665a3f1572ab317537fcc0686371a202977e94e733a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a52fafc90775a71b63162067bbe2445ed4390553801a46525d3510a8e240592f
MD5 331d5993e1e59d4bed640d8c33374130
BLAKE2b-256 497860705153fef261167bd762a1766b47c6211910c7e4964d62ed0a06bbda5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.184-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.184-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de6ca011fce6e4089c63bdb6676ee9ba5cf463e2fbee6f69534ca67a7cc9f271
MD5 3448d559c3798c1501d34eb0aa498d35
BLAKE2b-256 6807239be264f4acf954bbce0a6d78f03f4db3ff160906d53b4d99c46c856127

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8726697e6158bd91326a89496ae42b96d47918d46f7dbe81374dfc45104ff464
MD5 1ec4274bb90afd1038c3c183aabc71a2
BLAKE2b-256 3788c5dfa1af0596220f652a4ec5bfa1195efec72cc61001f4f3ca7657207890

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4b4adc60a47e051cc9aa9e38742ea47d8e4a51bcacaa3a3728fe4a157114288d
MD5 7cb2560bbaf67208bf9eec9e3654ddcc
BLAKE2b-256 0424ccde2eab9ea8e0711714bc47f2ec47e85f755b8bb04d8f8bcfe12637122a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 485c2e307d1bdf0fa0f384f03b2cb17ba21628bc18909b609fcba2423bcc613c
MD5 679ddfe985223a4b163350cf5eb15493
BLAKE2b-256 0d58cc96c4a61503baef300971bde161be153f2be3b5326c74ad85a08ce50a6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.184-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.184-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7950106cf3521c714eaa77a6e95e3929aafe7f8317374029cefd6b44c2c19a18
MD5 05c2af23c0ddda9a9e607f21736a1378
BLAKE2b-256 ff1b9c9bc5f92a1640f36defe99c55b0210a59e50b9975f7d182cbf94c5e850f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5454793174c88fbe2ba23285b050570262a515a5f52e9c5ad48c11ba6547ef8b
MD5 5b736b03d209fd57a2980c07c86ede12
BLAKE2b-256 652b2b9fec045c3f7a4397040b574baf405331e5e1867d5a63a070f963b986a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b19b019f16687e42bf26aa7de0bc065858a261ed00574c126e3cf206f103b3c5
MD5 63851cc94a2f7dcc366f6017810c6adc
BLAKE2b-256 7a5edd3a36a5a8a4ef7546ebc9fcdd25658255131f31f0f2af49671f43d1054c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.184-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.184-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 57878b9de8718c0f0cca5a53bfb5ed80a14924ba4effb419097e7d272a214e38
MD5 cc08caed2b64fc7e2f7d7bf549b8b008
BLAKE2b-256 a639c4fe6f1d279872f1347ecea3397ad544dc53ae43aa5ca11ffbf7b0d66e1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.184-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.184-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9dadbbaff57f76015f536436a33d8995119e5a16074fe764290aa1f4bbed9fe
MD5 e61002d8883f6e518029c00b92e0eb40
BLAKE2b-256 dfdd1c8ddec2c59271c77403a6551ca24748d1c185bb14d8c2ae215b0221ea99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.184-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 521fe7daa37ae0a809784a704e2a4bb232b6458ac1b7d7db707015396da1d4ad
MD5 11fe272a7a25e6220c01a46b28a25198
BLAKE2b-256 591b87f60acf8a8f56280213d4c7898ba494a010271ff744f8d35b2de237a588

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