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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.15-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.15-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.15-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 313375e377001766f4dc39f0fca32d8f673be95b967fcc93ec55d79fb4cba35c
MD5 363f9ed783b532c5b35a41ab123bb239
BLAKE2b-256 c4a81904cc6e81f4d401d2051e92d48ab393f80970ac4b7db12af26d944fc95c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d1ab25995a0a2bcb0b5eec634b7ec88563b65bd4462a1aaed66e0ddd10020653
MD5 fea3d7b4d0d839c0c598fdab99382411
BLAKE2b-256 e904eff51464c87254beec2671e8f3f879dc83f65e041baaa5827e2e58001a91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.15-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.15-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b68f45e780d02c70f715f055efaa8272a3a2b7350817d9c37d2ec4ef4b0f0783
MD5 9a851ef3666d2679276ec76ce2a5d4e4
BLAKE2b-256 d3c088f2488496ae2d358961b75f29c624c40fad4e45f3d1a186910de52398a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27b21c4f968e94125600f9f40e7d2201980118108adca37d7e36191a7fbde2ab
MD5 5d529295ad1670f87e5c09281d8e9973
BLAKE2b-256 0018b37eb1492266541b0dd1d8a7c6da02fdf720fff6353f64968ba446d2b4b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 daf01308e626cc4803e0548afb8e98ddd2772d673cfe42074627e71ddf87dde4
MD5 e064f8b869f2ea1b506a206032f8d78e
BLAKE2b-256 667d07c58d872bf7412f3dc2b364e702b489ff2a19ff634e680b579359d61c7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 386b3352cfd5e0afd14669434991ae7e8b5535ff72397974010e2722771cbab2
MD5 8527fe85677bbdb8082555944b6feac5
BLAKE2b-256 372c1be1f0298c6fa85f3be99e0944e0dd96efeced05dc68499ffbdc9fd544a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.15-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.15-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9159d5d1dc2ac2b4f278c748cc84d45d76f4ea34c76260db357293aa8e4f3ff6
MD5 36c280857c66caa50f3de0e49d736a3d
BLAKE2b-256 ab0bd0b1cfa253390cd09cd447c5950f361de7b256c2d432cc7af93835e8a50e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49500e2c1b7ae5a5340ccf17a1a2e924e2356b978b98d78cfd59fe425ba3f8c3
MD5 bdc4a23a57c08669bdda1e1c869a32a2
BLAKE2b-256 6dee6d804075c389c86c84546a619e856efda5f48fc5ef5f0f3f444ba9d62691

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 074fa8a95bbde57e050f887968c0c2ddf219e0ffbc645a919a54ccfee7fb3869
MD5 370409b58afea0b433b2ce260818f07f
BLAKE2b-256 0c6c808e660e6c11e4be6fd6fb50800ed53a0cf7571f034aee1de8e9fce6bb18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2658fed824fec351292dc242a4d65d39d7422ea83b4c0246f91f1ada44fac187
MD5 c77cbd3fe144ba1b671ea825b44afc3e
BLAKE2b-256 f7ae6eb0b5b9a78ed6dd22f03981417d73f798eb3d2c8dccd2db20f0c36437d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.15-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.15-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 264243b0d5985e620966ade9f4acb3d617ec9037acaff7f73fedfc81f043652a
MD5 29558a9b8b6c6ea66de649f1638fee37
BLAKE2b-256 9c18341dea5e5b87985f67f7e952ae0c19189fbfc290eb46efef6e6beacbd80a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.15-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02590c322d196da91b1a631ed8771e52f2c2524a1e824e3b25e95b96d218b846
MD5 b271731aaf89ba6034d48407cf6daa30
BLAKE2b-256 c35b78d8353ea59a0cd1c3232d9a41335b9f4db2ceceb4df6edf86e05c138aeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fb58855201b923aef475bc16dcf671e478ed23581afef4cccd5df0014779ef9c
MD5 145a7e1ef00320f3655fe69070b8e8d5
BLAKE2b-256 a9f7d67d1b0607c9fc97ad4a4ad4ad4819b07a441a8ef2e53d7eeb8f5c056d4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ed00fb4bb30dcb9f0299deff0df45868b8f4878903f421e3ed50561cf2865b35
MD5 4ee53373b4658e75fb9ea32aa44e826e
BLAKE2b-256 843bceb57c4ffe646267800160b15e6d4fcbfa5fa37eb42151fcbe650b90b498

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.15-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.15-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc7a182f8476ececcf95f096c7a941ea101055844c7f50f40570b985fe94acd9
MD5 788def539ae871b621e91a38c257a4af
BLAKE2b-256 fb98dc5b0de470fed1b47fc73fdc35b24b76e82f38188bd68efe6182b78b50b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.15-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd663d363207f1e0a3b5309eca08ca3f049aa4e49ca794d2799cd4d2e6aa0a53
MD5 9a451250de4cb6c519036dc15d5bd51e
BLAKE2b-256 5056e3ce5abf046c82b8956377acdb5e80fdb6ea77244449cecd7396f0bfc90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4176dd910001fc505b512681db58a268202ca8ae5212186137ff53024cf5f322
MD5 838b03cf46da1cad792591b5cfd4f3ac
BLAKE2b-256 70f4263d39f8436ce5cfb5aef31cecf88ca473428af837d6d2403df9cad93776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.15-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.15-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c1e1cad8038b759522fc3ecc01c1dd395b058b0c7413b6033478501af1545065
MD5 658f5778f2d01566ba5fde222357fcef
BLAKE2b-256 639b958fa3cb714153a88fd1b67f6f8e59b5b59b5391170ada53288e0bf6c3b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.15-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.15-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73ea8f5fe9c85b6e4433b8b1f8359fbc120b42157640cafab05683ee0610d45f
MD5 3dedb5334c1d2d1360c3e10971fe0f64
BLAKE2b-256 ebe11d575e18bfa156aae11bff6fe55e8fc3ba5e53815d0a5d725eec9f1cc9d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.15-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c03261533cd7554e2102a6004e5ccf9a58216d76b8ec1277d48483138e61511b
MD5 e1831b8df36239d7519899724cd9a431
BLAKE2b-256 9962c553b8453e2549202c9208ca8ebeb92787b791815803634851069bf2a90a

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