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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.82-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.82-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.82-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f814860388cc8e0f8880f972bdd666155ef4961b84fd8718474ade91a9bdf283
MD5 5273d47bf77f15097b717c1a5312ee51
BLAKE2b-256 9cfa9157060e86cf3f87cfeaaed05d62fc9a35cb322ee5cbfae4a0e061297dc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6be5e78ba29b8ec1f689456f6c75fd6f20f2aaf393d3aa356e88b2d4cf4e173f
MD5 7ef853ec9ca08ac000bfb10f8c86112c
BLAKE2b-256 0795b77e8916253f270af3d17b0dc128cc501c53d7cb9c879b451c110ced8c11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.82-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.82-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e926632d35995a637cdc220c1774424263da9db125b0b56d0f9333651a23f06e
MD5 160601217d5392cc182f61e84cd2f42b
BLAKE2b-256 9241cb34ca608992124031b1fbe3f5c8434b461e4f4bfab305a23ce42a5a30d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.82-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e1ef687576844a08e7f5d079bd40c937b7e378f9b531ade8288356555546e3b
MD5 b38b4debfa6f6ffae034340f9d690474
BLAKE2b-256 f3c51d71ac67c43d6a059477fd065efb721cfa56d9bf2b7ae53812cd759f4cb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e80d5a9cc22bcf32e683aa462f753c454ef6dde0c9b62bc32f92ed51d68532a0
MD5 e81239e7abef0643cc6ee49ba2a5734f
BLAKE2b-256 ada1195d39ee5cd7b78001428086f887c51814d42ccf2292c26096d06b9e1eb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d806e2af13f2f21c5299af525df001bad50a2128c785dfcfdea8fcf247d07751
MD5 1504343fcc15c5c7547ec99878ac45f0
BLAKE2b-256 a5095f30195d076c220035cc58ae69f370499a998944bc4558fe7d1686b19429

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.82-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.82-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df913290f471166d6017182be1e98600d7394d1790c582468b18044bd1142e9c
MD5 59ce3658bc5f792993810134d80329d4
BLAKE2b-256 51d3f0d81dd1f99ae44a837623a8ee735d3d61de7209aaa45d938527a8003353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.82-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b344fc5e1c9da11dfe8d7bf0a6f4bbfea97ef22c7a06c37c8d1c7431c8609a79
MD5 f2dcb1c12d9a6c68d2e74a7484b8cbf8
BLAKE2b-256 e918f2e2c55843b761e71ad114718934777a359f91caa9a6e9beb50347869ae7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ac29c6eeacc21e1dd0331843ac12982092e175382eac33d59d3076a70d26722b
MD5 d4edbf54c67529ab85a456bc48ced2ad
BLAKE2b-256 e046c4763edece5e3df9b2dcbdb8321c80c7dee6aa99c8a418f4f1e1318d5c78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3f32faeeee4c0e5fd4b6c757289902f9176a610b9f01144c606d44bfd1834744
MD5 cb270b603265a6baed0367d51f14c5f0
BLAKE2b-256 f8cd0fabdadd30984501d464a0bdda4b1522229f5a89dfbd2a0720a5998bd47f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.82-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.82-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20d10923189345189a4abe4135c33f128be0671a756d6edfbc8b33ea41c11c9f
MD5 796a0b7173a11b9a727dd8c020d29ffd
BLAKE2b-256 9fd23972b89ad36a68411e9dcc785ca8d11cfcf4dd8cd9c80edee753ad3bd52b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.82-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d01cd212f1c343b50d92d95bca6abebbe4193d1dfdef7f561a9feca284312d22
MD5 4fe0564373913802423d2886bc43b85f
BLAKE2b-256 4d18f8a9ffec10bbc8a316d17757a0f936966bf53067d5fc226233b59cec4d0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a7358d6237054e3a25431635e5bea8f216a6432d5713a921365b75facd014d03
MD5 7a2fcc170f342a662d500eca97c268d0
BLAKE2b-256 358bce47309103354df954997c3235bf34c82489e0fda200026b3353183d62e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b4cbae0f74a86e38ff1a4a4428e4f9056db7d6bc681b323937b062f90578646b
MD5 b1063be32a40e65a9dc03d18f8bb4bc2
BLAKE2b-256 77bc09bbf617134daeb2073bd2ff6c344fd307dd23ad708d46651c9ffd2e4be1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.82-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.82-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be9357c78209f4f7c4e70aac7b8d3fe4bf349bc90b9260741b5330176e72c11d
MD5 3f159fe1309dd0df3595e4094936e422
BLAKE2b-256 1f2744476170beec0147e14ac7bc1fded08159cff7802679590ef74beb82c13e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.82-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd787eda1939df61056855cae8b6439b499cf95f661a541ff5d132105ad5d6e0
MD5 49ac50d861735eb6e397b280679847c9
BLAKE2b-256 8c956091c9cd697e1bca83d832028dc8e5e9dd840aadc9caf625ba4bd1bfb973

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6ca892fe31739e188267d5c1f946d14549ebce0f9ca9da9e844ae2b49b7d45fb
MD5 a5c331215814e10dad0bc80751514dfb
BLAKE2b-256 664de91948467a44b0acc1464996fa5316aba8acd18d39bc78f3b95f56688271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.82-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.82-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 703b0a3e35ed3d086573946a8bb96c7ed978e4c3803183ef8c7fa56f57950799
MD5 8478dd657cb5de6febc1e8888de74c8b
BLAKE2b-256 db5a90662e682d54e9ef4266c0d69de2e39f4c146346271e228e9919681a37f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.82-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.82-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 239219f7dadeedff77a416bf03d49a309cfc9d1f341e4db5ddd4e6975d151cfc
MD5 870e0596920a48d024fcf4781b04dc52
BLAKE2b-256 03ccbb09c9ad321d294febb5d3300c6dad9b7235cb4abcd42c5a638b13c50d6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.82-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adf536bf03020ca5e2612bfdba476346e45759e1ad5927fdc9629c1111ff0c9c
MD5 09eef38b463ebe45c1e60d29f66d89fc
BLAKE2b-256 7e19b5d798a9cf3d40aea7aeed60edb4bc3d1dd740c9d4c448271983ab500b51

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