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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.28-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.28-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.28-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9ced011220c7a2dac97993ef9f6857de87cd24dff451f0aa3f1d5ad376aeeed7
MD5 4faf7e5540a7b67cc8f814f9e27abca8
BLAKE2b-256 669f3f59e7fddb4b9bf0fb45e5f416c60955806c4f8c41c236eab7884bc92898

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b83d9cefdec3aef2e1eeb11517fd48284643112f9bf5d7a85aace21679d3a4ca
MD5 727ccf8e66601743de0cb271e660a6ac
BLAKE2b-256 30abdf1af4b4e0a1fbd3980ac4325a9d1a79dba145bef70e7677e139dc84a801

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.28-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.28-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 362d797c4c7323a016002a9f969d274e29ba9194f9ee3b6ac99877ecd40a0319
MD5 8fcac9203cc552bbe0ca675f96c0e842
BLAKE2b-256 ae34539c34065beca71b64382f0ef6073e71253627d58c68d72f3a81bdfcffea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.28-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42fc07e191153c7eb07c329d9b0f43bed858e33a242645d1c72f3871fcda040d
MD5 bc8418f209b98007885a4e3526172951
BLAKE2b-256 616ffe1b19d9ffc429ad19573733e80d272cf6dffbe5f70627d8d58557322f01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 724acbdedc7382a1491afe2a39b8c2835f902f1c021029231085e81e04054f81
MD5 44d7ac842606ef2ed5d648692517503b
BLAKE2b-256 b1ecc5c31cd39b16e99321b40028537a0b66658ecd41f126028b33644dbf40d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 39bb8e26abffef59c13be09c0913e3ab3ec7e5d9e3a2d9d73bc3c1caadd6a3a6
MD5 952b88eee8bb93eb8756837a0426d992
BLAKE2b-256 7e538bb2578d7c00129715ba759246be747179a2b9d21dd4d88fb79a8b3016f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.28-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.28-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a1caae3479c40fb261554e07c2fdcfd2a3ffb82b3e2b5885059fd117d3b45234
MD5 3fed7081c885810e0f9366d186b7fae4
BLAKE2b-256 85de47da4220bb6d6cc470d9c2a5b90a76614d19e70a92f48daf0515aa382783

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.28-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cacf468055542dd8f46738ba6482e19b6a37eb062ef592f3a241bdd80d82b90
MD5 6975bec2ac6fc63543d031d97c88ef63
BLAKE2b-256 b018a3ac8d3e7149873618c6c935d2dae558b5fbed31237ea57d709a1208fc44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31e32c158b615c4073d244c32e8e70307421e2277b969c782f22a339ef08deb6
MD5 78fd3d78967ee82eaa2f83dbe039f81b
BLAKE2b-256 9d7a27cdafb3b6a0c054090e9bad184094913ac6111dc70c6cdb73337a8a86f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 52079c4950be225debcb3f383b9dbc53cb1ec9556080e2331edf5470394e295e
MD5 87584d6a4d82012435de8f8838b105fd
BLAKE2b-256 81c0d51b1a52b582b8fd03469323cbb52a931cd96911131e390657fe63ee061a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.28-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.28-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ab4028affc151cd0cd277ce070a14cd504abf21d8606af8f5e2578196657d5f
MD5 08107292bbf79da7c497f85378bff6e0
BLAKE2b-256 850d40e0e0d5cb27940d95fa466d2cbde16eede680fa216a1e0602b29bed1d8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.28-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dbf496a11d84272b7c2c82161ef80879de0b3c5fba0134be7f6a8d3c42476a7
MD5 f440e25a742198624398f973428285f9
BLAKE2b-256 0a7ca3cbb94d535391105d96b1e97beb448d03892ddf69e20053741548aed512

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cce6726e287fd4ff66be89c13facbb1729cad2f5168bfbdaa77718ea68ac71d7
MD5 b92cd41e35670d3def59efabb627bbf3
BLAKE2b-256 01759c2085e0c6fcfd344d4e3caf1add36043f3e2dc538701bfcd537df81b9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 863baaadaf397b3aefe5dd8725be1bde33d232bf2708b67973b1f1c2c8804e73
MD5 7c91f4b95b36ec1a8ff87a397b075837
BLAKE2b-256 c8cc99e4db998cffe6b783897df962da24f9a69bc3f53b4c56d95af6997df8db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.28-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.28-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8cb1db9d49ff2b5bef68f328093ac8c84539d5ee2a1cd0f03f5e0aacf9d3860
MD5 5656c10ff2bf3ed43806b12c216ca458
BLAKE2b-256 a3b3d6b16b1e592540f84efbc9a6398474c173d9a5866882085e9caea664509d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.28-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3853527485c4e4e3a7c9e6961a515646bc3b8aea683ca367d41a0e0134131e54
MD5 a6c71f99260d39a480180cda8a57b053
BLAKE2b-256 8a635f9b10619adce96e0a1287fd17579fbfbf9599f3d5f321add7463b49ba1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8e90d47cd9d4893e4eee2ec191c3ca4fd4f9d2ac84cf9a1e8a96e1d934d12a53
MD5 f9ed179e96deb9ebf00f5a2235d6fc7f
BLAKE2b-256 b7096086a4e94eab6729fce351ea7eb08a87c5d1c0af8e08c86a106bc7500eaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.28-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.28-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77f01aefc7998bddf56fa4fd4f26c99ac7df32a27161344cee87cc33b9b112f3
MD5 3ac585c3c7a75dc81e17a13760cd348a
BLAKE2b-256 c9f56c92d5e9801b5b6a88d309ce8d812297309167c881d54a7d5a0d3f925696

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.28-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.28-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8fd478bf67266c8a9bc5d348f02226926fbcd43da7e0cb5bd141f56d95cb73b
MD5 d907fdc0714359ab09bd7a383282796a
BLAKE2b-256 7b8c0bdcfacdaa70d38b5fc24ade71561372f74e35b2f8be03daa1bb391af682

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.28-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b00c7a41d3a9353cdd8a25ca7346911bb967f11668ef86cd233a90bc25d512c
MD5 949faabf2fce87952b3b1a647257207e
BLAKE2b-256 fa209edb638411946f3b089b1e10f36c2ed8256e9aaf565af5965c40eaaee504

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