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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.576-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.576-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.576-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed2e3d66c1e71b5e9f85c6ca08b9499343d5303d9be6fe73a16ce969795b3605
MD5 805605a9e4657284f4daf1877ffd3381
BLAKE2b-256 8fbf9d64f39fb797737c758e7398188ff2eaf807e30ab6a2804b85b44adae487

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 52881fd21e012b8c84326641977219fcf1c4b11243bbc643efec9d0031bf039d
MD5 bf277aac2d612f7fd7911194193b7c47
BLAKE2b-256 ecfba139fa7065b07f2ecc17f4d392f16b8f7c8925d2d613b4bbf56ac2af521b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.576-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.576-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d2eb7e25b80c00892eff4598abfaa990ed210d0981740ce04bebf51b0a2e1285
MD5 0d2e0e893226ccf97d0cec32aa0d6844
BLAKE2b-256 479718deeb16e340c5026740566a97f219f60e902d675b799616628cf5a8bccc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 479af5231fda449e36c5b623cb8a655ca37751b38f36a13c47a5b79ccd2d0ef9
MD5 e39090bcf1c319a24d455f15ae7e375c
BLAKE2b-256 803d4faa6960a745f0d63b071c3ca6481d197a4417733cc760ba952db55a34d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 672c42352903c5401da46a89e0f9463f0b5cc91fe6d6440766915afa89625773
MD5 ef906a2a29dbd5901dac46c9fb82b16b
BLAKE2b-256 c0e139e214ea7b1bcb5f55a9d2a7b1c7c87f2e77f37eddb0f1a399b2f99f5c9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 612adcf5ea50b1dc866a700bb185700e3c99aff8744549ba6aabb05bb6032c59
MD5 2124453735e3f6275500c9c8d6163e49
BLAKE2b-256 8f05ec915cab337489fb8d55f4784dd9b9ea24b2090a416fc0889be37d77025f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.576-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.576-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a66e64a896064670e05c18d2b53521a1884219bff7117f51afa40ba38afd90d0
MD5 475bcc64c91d4acd50a3d69e48554bee
BLAKE2b-256 38c35104f16e89cc6a387f83faf5c45171e85f9f3316e4eb7ce758d9073a65e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d31050b981fcf32dfa0d27a20a38ac42cebfe3b77a70ea2a5fee267dfa51ef88
MD5 300039e386f62cdbf0a8874a57ec0591
BLAKE2b-256 c833bb4ec31e01d0c364d035fc05d105a65ac4c401341b1cc4ea77bfedd02d29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2d6ec47d500588831af8cdbe69143f521db32458040a4f43d9d7039a5760a1dd
MD5 647fa5cf1e2256b259d7cd5167deeb08
BLAKE2b-256 69ebde7d3beb1604335d27f82258f828c5ba3b9ee890b90938b7af64f6e8cc63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2c364eebcbe753367f69a1ad325d8c171b8b54309ebe1a320d3fab755b424f0e
MD5 d3937834c72f9c456d1a224656fd0aa9
BLAKE2b-256 a2ec6d2374eb60842171a1ffa005f8b70910e502fd9087c775d7d12ac95bb4ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.576-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.576-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 daa743b1b9b5fa8e39b1050e37d5f04a3c41e65b0693b80c2b9025e59025a56e
MD5 5c3b40c782bf96589a385375efb52522
BLAKE2b-256 c586d9054da159e192ea33e99e61d62381e74449e3609ac53ba7ea9f38c2f51b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60477e52e477e7292a010ff7ceb42734da93bb5f14c8d2ee0dbf332ac9f1a810
MD5 1d8f64b98e859ca8461244a37c788201
BLAKE2b-256 cbe71d6de1eb42fedda87ee9cfb096f5e656e778890990e4663ccfd39dbacf66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c7d2e032ee9b002320f53c616f5f158032246ac9e8e8153be6f1fc259ed6b6f0
MD5 4f075373d0cb6bbffccbe946f89755ba
BLAKE2b-256 7724e3f1c1d722e9244cb5f0243052f8830c7c8311db98f560e68c2b3758b5ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 09ae1b8cdde5175608e8e009d4cd47065d4b7489895066a72e41ae89eb49a95e
MD5 6449fb53541c5b6b561eeeaf7fb8581c
BLAKE2b-256 7d190962a2b55da60532026602741a305c6e60dd01f05ac454a64af07e2ee8cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.576-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.576-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fbcafca6b9e72d6b0850d14d81e6f8970a8ff6d4d5c80f8e63ad164a92127b0
MD5 67731cf1626a58bae9ea0e8ab6884106
BLAKE2b-256 b1910dbb84e8455277b0561245d205cdfa29c98eebe3b36c1ae109b309083efc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81e67554230e3a37443a63ec4feeec1a614aa3e1ce59cceda32a6e21533527b2
MD5 1c3a03fd2d401da23cad11b149f179f2
BLAKE2b-256 ff9c35653695d0995b8c397d8cab290b11f6b1c587b64d5883b198b4c5429862

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c6e5fc156605435bb30a49a2060214cf63ea322f8fe2ba754d7b366f7a8b779b
MD5 d320ada5c84725e5baa1207f0891fe6c
BLAKE2b-256 fe6fab23cf86c0f52970be5340689e841dda487ff3e4bbe73180d6edfdff40c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.576-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.576-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4c43f2d9b06c4791b6ad96c4101863a450111747cb4161bf611726eef8901e18
MD5 e89232b95bbd5ff65f1e8e20e2ac4dfa
BLAKE2b-256 8a903cc298cf5e4983ed9f2564cd69669e0e00e20f4635008b7d193ecd95e102

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.576-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.576-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b5a3c8493d8ffa9a01486d8ac998cb6dfbd3f17ec4e4154a3a4a26e0de0b909
MD5 cbefaefcd9b4d794fba14251183cc35c
BLAKE2b-256 7329699f5ebfd4aace8275666004cc0bf54de9fc662824360f3586c106f42668

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.576-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac6836d5f13bf043a1ff6b51d7b9b2d020842f1eab5219d7792431a56c317aa8
MD5 8726fe5830579da9fc10cecdb3496500
BLAKE2b-256 b9e3a35b2cfc30081be150ed6fcb25cf1653a1ce2147500138d8f3cf5f4b5c16

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