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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.264-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.264-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.264-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2330d7515a4823865d3ad2fe944be07b9f92487416de8fc7d31bc98fdd4d3d79
MD5 794f014430bd64ec4b10718100e1e9b3
BLAKE2b-256 bd5da07edc9ba8c1ae4ba34d2558f3507b1e34dcee1fae1ffe9c3fcefb264013

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fffb868699c968299500464aa180cc44edcad5edae6926428c1c5535c44fa66d
MD5 b6d1434122ac6f2b9b8bf7b1d45cbfdf
BLAKE2b-256 64ef4dc759a7b39258c03be58cb491a48172a72ed09a15dcbd75f70e9036c1ad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.264-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.264-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31ff66a2c47d2aa3a0a1e792e03262da8f77af997fd37d61545e542cd822c4e7
MD5 fe0b7efc5348f6c6680ebed0ae789939
BLAKE2b-256 e0a92ecbd42a734850b96256f6f992a8514a89a305539339a18e4f3aeb20b641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1967e74051c71f6136ba732a17e930f843ee4fa7d02182cb25903cb47ae97dd
MD5 d10eb8846717807d5cb25452740efaa7
BLAKE2b-256 c67d1b914b6cc87cf844a4f288eda46ead1b0cd6653f10ef2e34c282bd090e7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dd161c3e55b2c143910143ac2d4eb2f24a5c6e053dea8d11d16ca640688c7d44
MD5 8eafb1b78664b0854121c9aa544f3fd4
BLAKE2b-256 12513d3165214e0a8f26c210d294396727ba2a8f2f5b389d58ce1f5d2a6905a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7fe08aecba7d9d2019bd4e825090896f0cb15d5e2864478d441049ceb641237b
MD5 6bfd2af4979798f0df70123c16095ae3
BLAKE2b-256 6d19ceb6be60a9c671d2b79d30f541fd257f7903f2df05dc25d29df3a0f1eda1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.264-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.264-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a996fee09e4963d6efc3a8b6c1e9813b4d1dd3bc9cab7cc8eea71658ba77a877
MD5 cb18eeed13efee27fbe65956aaa9b50b
BLAKE2b-256 99ab2ea923e2ab64d84738edc62cc8d3815d9b17c34e68166efd3d3ab5a1302c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e1acf64ec4089a5e2bcc070c16b2955865f354b5bfc7c7e21ad577a20698035
MD5 4e2f274caa930ff6d89a06154260159e
BLAKE2b-256 aea4e904fc69f020d9b3ee16fccd5e0688b701f533ca5496bbc07c66a3d104db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0021a6a72eb6a0cc998a36a4064be2a3cee0c8b031cdd856585c67442ee02d4
MD5 bfae19f651396527b866b8e99b1fa7eb
BLAKE2b-256 4241f52ef5189d5f7f467b14374af329ea263e03a3bd6348a9d3e2994eb39c4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b45540dd7cb86404b2930f1ce578fd7dbd042513921374f4c741fce3b586b559
MD5 36f7a28cb969ec4da1c2d6d53bd1a4d9
BLAKE2b-256 00b1bb83d68a50896a9d26a3190bffc71618bf95fb77b9065887a830f8ed3233

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.264-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.264-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0cf444aa4bfe4180d1cce0bf80ea83217ac7d91ae4dbdb0c9b18acfd6c61271a
MD5 7b871c8edc0b9fc1a88b2234aa8b412a
BLAKE2b-256 15832fc3c8896891836ded58b4a2ecfe4dc592eee25d2537b658e716d29c485a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1673a93455c3f16c723dec0bb3d6d384fc21cca7f1358dbcadbd4ee4c5a59bd0
MD5 d8b525c51f2b2e7ffd8849c1350729a8
BLAKE2b-256 8528f994264b49b7fc8d36bb518926e7d0e8aa4116155b35e69064b5bbcc97ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f9e88aded5d5d4fb28d9257729a5da2b0b26266c5ae55ce623177ca863baf324
MD5 b79b1eea0774ec6554df7d76245d295f
BLAKE2b-256 048b934fe5f01d48a69c824aa685dce4116feb86a006e7fc8008fdd159fbc9a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 60889522a58bfb89aca3b4edf4019c9c427d025d4105a6939084173c79d66ed9
MD5 b8fec5318c15564c694d759dcfae47c5
BLAKE2b-256 dc96a25a71e94b3a8333b22fb86aedaaeaf6e20ac5b32c4f18ed793f74e3e56e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.264-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.264-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e6122909bea440bc44a168a405a04f56fde6a242223a1fc950ccbf51e16b47a
MD5 e889c8ee5c1686a6d04e1a0b860eca63
BLAKE2b-256 d11839e6e9e33f84cb22bcee299848a652784aca38ef1aa458d8fd968623611c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59fbdac70b0ee6bf0393c2f6fe9960c7e06f317b9024d926af82c0de7c58e107
MD5 0ee846e53a43d7713c4731d7fc9f0548
BLAKE2b-256 b64e4593e8fd2aff4257cf72244404aee0e7562bba4a8b207e53a899240a63d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 22233c930d8659cbcb0d7e940ea057da97d0903603207b10eab2c2689e27a320
MD5 ae7f4e2eeed6c51498023343119777ff
BLAKE2b-256 17010a09c7bf71caa34b6d19d38e59be184286d818c82c8289348ac884795d6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.264-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.264-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4f3ed33e0a7b128063c7c02afba163e8624647634b2e19921637b8a6e494cdbb
MD5 4e18fa160349ae1064aee60c1c46fd5d
BLAKE2b-256 2d71832de40e1d8d68b7c92f8b58e4613ad291b9d078ec24a186d6ba91616861

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.264-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.264-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 999366ceda8bd5421a1066dcbf993be16b205ec74aec41ea85293dd1d49e2c72
MD5 27437c0741982f6f302e1b34d38b27cf
BLAKE2b-256 d4cced04c479bdcda3daa10c13864d3b3744642357a2e5407b5bb6001e5f0135

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.264-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60f0289a644ae96a8f97a0c53dc6480886f7e4ad7d19e73053d2c66867c4e9ef
MD5 f2ea2ac6947f9c7b0049d9283a094133
BLAKE2b-256 c5ec973b2e3b47fd08b3457eb73cbad69bb67e1b28dbc41d628388091dbc9311

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