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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.26-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.26-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.26-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.26-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.26-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.26-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.26-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.26-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.26-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.26-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.26-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.26-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.26-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.26-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.26-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.26-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.26-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.26-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.26-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.26-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.26-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.26-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9eab7a090e0b0c869e063bb6e0f3f030ceb751c5ed74810297982aad7aaf0280
MD5 ebc7228e47b512cb9d155176890dd51a
BLAKE2b-256 632276aab050ab0305e6e1b0c5537ddf161f7e26462718f4e77522568f3099a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.26-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 14a03f36660c3bf2e8f27ad209fec921fda46aadfcdff619d65f71c1b92b754b
MD5 0184070faf9528e01ffd4bf4dd27ede0
BLAKE2b-256 85a31939d7a101ac10650d095a047e3b1e7b8f5b8fb878dd02a3cc0c5e0c47b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.26-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.2.26-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41f5cb8a98009397b283a521873dbc41b78bfdea289dfca7a894034be2e2e7e5
MD5 c5f0a535f37ba680702753f6d345af0c
BLAKE2b-256 3e6a79c59be8b089128729b5bb917cf928e914c956dfb705fd7faa42da6f92cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.26-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 200f9c2c19fb2285e5d29a0d2dff0e679add234cc880756b52d1b7b416f6a500
MD5 70c4665acc9eef21c154f54d3db0bb94
BLAKE2b-256 49966eefd62f440020a81890bfd14376df27e060dc9f539e851268bcd388c3d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.26-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f76c406231a09e46ff757a35c3fd73b0a6542676f85f043b1a7928fc3d90626e
MD5 3c274d83a73ce459d7aa94ae86e4eeb9
BLAKE2b-256 37f406418b5383d8f1530da0703ee0589d81a8f8f708a483cad074a83747a40c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.26-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 881a759dc3f74b34b79c188a469655ce09bcd5c8cc6e1f8e338024846adfb54f
MD5 fff4a03edf8889c5a1b82a8c0869753b
BLAKE2b-256 e3a3f43b6b59c33062c14ecf371805a4ad6bcc23a8571c958617559f36d4745f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.26-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.2.26-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78c9026b243f5310e053387109c389da4aa689eb16f19b3fd97bae1fe4283b30
MD5 90e18e9a1aa43a51d5d2001abb9323ab
BLAKE2b-256 e4ef6bc2ae2a9edc5e2b3f04535107259b5e1f1e726b0ade6f97348e69aa9d74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.26-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 082db3743f8acfd895232e269f540388e07dbe18109eb7f7c72004c58724d532
MD5 e4bc811bbc1eab58ef94ce1a352a6ddc
BLAKE2b-256 11aeeaafa5ca6ffa4613e101a11f61f7b533262102aba2b8877af48e38582af6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.26-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 865deb4eee32c5ad69c8d7bc9d7036cd5ce5dd5b2641b03e815a1455ff4b0c0d
MD5 68a135ee1af2eeaf6d9e5862fd1c6f3f
BLAKE2b-256 23d60256e49b0aa92ffa5bc1df9eeb00e15281f72aff0a7a751a609a480bfa12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.26-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6dcbfce75f1d801883e3586bc4e31c3286449f0531084fc13cdc39a31e19edab
MD5 4e03b8e8611c7fb22673325813ef8d10
BLAKE2b-256 b1d93e96a480244078ab60aaf98ff0d704589505118fc81bf8cee1103836767a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.26-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.2.26-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37071a2175594654e16d35435e595fa9f4ff6bf5a79aaa911e6a73bc0ff9b232
MD5 2f92c887e6cb3288ccc05d6239d6f52e
BLAKE2b-256 3ea3c85f020e98fabeca0a16229078056096a07fd1921cf5eea3cd90dc365a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.26-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09dd1216f618a9f198d44644a858e8ef756c6dbecce58feb0f5b6c8280242ae4
MD5 688dbca4d1a3ff63cad751ad5b6febed
BLAKE2b-256 39a5a0231c63ff6099321696d781db8c600e0a320687f2629176bc7575f48b93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.26-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5ea0d4a47f35b7a56ce4d388b8e790445ae3d7ce0829688d308a1439a75ba30a
MD5 a2b6d4e0b599bda2e57bac68c0165c5f
BLAKE2b-256 20a70430febf3ef63562f5b03e34b052d83c790dc34293bb2a9000daf20391b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.26-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5a615722a9cfa7764ee467214656d3ff1636327d72c4520e6528830d63941003
MD5 ae6d544230944e213b3259b7e11637a0
BLAKE2b-256 4d86d3871820cf458e25179765369522b7a4547b59a9319839fafdfe4ad8dc96

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.26-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.2.26-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6178f4c72bbf64320585c83e3d1745863db7a32ccb8e0a21f27a4e29ada4cdb9
MD5 ab7b11f29e7bfcb770d477b36e05f1bd
BLAKE2b-256 a006b2dd38058e8e10d1dca253884ffd14d9f6c6164ab1a4a0306dd65204a017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.26-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7152a4ec14f71a20f64f8c00cfe1f9fd4fd669c5f8e026a3132420cdd84dc964
MD5 3c1c05b74865ba59fecfecbcc1dda5bd
BLAKE2b-256 065d8683698595eb6f2a7b3c613f34bf0071136ef3a0c88a318de820fb54536d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.26-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3a145208d5671d5a5e71792546169306e04cf3472cceced73c8a1584c0089b8
MD5 906aba2e4b9e3531b0bc3963bd56a9f2
BLAKE2b-256 d37bbade1affaa064d943d38fae56e64aabcb0353ec41aa16746492b6fea3456

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.26-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.26-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 17c8a79248b746de2ed323e0519e0dd0a60ad2379b7f22a7a426aed07fe3c87c
MD5 1a71d9a51906e4cc830542b400ef21ad
BLAKE2b-256 d233a31c63cfd031a3c2ac2f350e240e3703b991ffbdb96b308bbd28a088c4ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.26-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.2.26-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 401bf71786a35f7a324940adc900da35a195953dee2791fa0be4ea406d5f8b1a
MD5 97cdf8f1091159db3eba7f2ae7a0f3df
BLAKE2b-256 704af6b5b852906c0048a4fb0fd94ef467be5199f301c00bdce168703f244753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.26-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 caff4e77d0377cdca4e475ac3cca06e14399b89059c7a6597d9bfd96bad42adf
MD5 fd4ab4cae9dab650a8875205775d5dc8
BLAKE2b-256 1fe323239f2bf16e6e5879673839fc886657ae072712242e444ec975f32cf38d

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