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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.2.22-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.22-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.2.22-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.22-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.2.22-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.22-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.2.22-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.22-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.2.22-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.22-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7caed003df77e7a0ec55480d42f53ac14c94648627f94a5b5ad2dee356f3c3c5
MD5 03593a921f5b14f1ff567d0b43ef0da1
BLAKE2b-256 263384fcf9c99cfe5de79419ebe2b019bb33979a77be1288ee39a568d4baa855

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4f449f6dbe65869af42f3194762c32468ee59bb559ac0d14021aecb8cb65d26e
MD5 605ed167d993f287222ae471f300d189
BLAKE2b-256 173f10bf5a83926080bca4b0259ce783cd02fc30282f52853f7973099f0aac3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.22-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.22-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 989dc38b7f1f6942fb2a1971d4c849adb9d0121ad8e55d8629f4ad6d6f7187dd
MD5 f636681c579c92b20d8806910ebbdd72
BLAKE2b-256 838c00bbda82854a887a144a666e0315433cb8e6374132d39200b281eff39138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.22-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8c2266927a1592b8e9880e5b54126827a082a075edcb7820dbf39e93f199743
MD5 d1014195856cd6a7afd4e6a2b3d21bbe
BLAKE2b-256 c102b45ae0e7eb9f37d982475b6ff09f8f47f23d4976ac3186c3a0bcae95c2bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 12191d89333fd519d2395b1a427388849e5dd1fc9d2b55ae79189c55132d4331
MD5 cd43a022ace0be70535693c6e8a41d2f
BLAKE2b-256 d4c9d6119f4369732cffa1ba9895dc3d15dd48cfda59a2a87f5b919a2cadfe8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0f64c95efc0bdd3966b37d678ee53a6b26b97c9383c7ecd68ecaf1c9096ab745
MD5 3afaaf74f36148fd90ae3574e61303d5
BLAKE2b-256 ae1855adf2eb7369fa29b915e1df181aa8ad97e4d2edda97e5d9502e6c51bf36

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.22-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.22-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b539349e804ad9e9066f76448fe6a384f6cb750c221b60816a7d8f96e61d62a2
MD5 05e7f36c07f5ab8a43b009f78dd55f46
BLAKE2b-256 01fa20cf23074ac38e7e3cafbc1f9b21848d089a80dee238c5261ef2940ecaff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.22-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 429338bd75846fb668f226c22c34c316e158e88d537ea5749e39f1d4b1148a36
MD5 59416a65f59b22a9471598ec2d5c5d68
BLAKE2b-256 467c1204391a7e35114a7312ecd2eb7fc0c548d45769f86a32bdaed6793b89f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f4c1e859bb9d915a76958f64fa15848c72fbe3c6c5e470cd82ae9f10cefdf7c8
MD5 008efbc1f4991acb970cd5a7588d12bf
BLAKE2b-256 72ac109b68fea526004faab7f24cbbf18a1325edb366a092068db2d608157788

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e7d7a73e3091d9c6cb5be01081e43db0638105b477127457238dd31e16684399
MD5 06c726b92dfc75a6f5307f83bdfdfe33
BLAKE2b-256 2aef9afcf10a2a000f04c2d4a124950544fb9f4c924c2adedc621d00683c4a8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.22-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.22-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eef5485911cb8298ffe0e777eada1b52e94e07445dda6c7845043475d1d0b06e
MD5 d8bed9f6525736bf7a964db24a4fe182
BLAKE2b-256 271660cd516eb45cf98a606ce7f34daa00017634543d85cb7ed0b8ec200654a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.22-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4e606313a59f66f835fd2fe3bc97d10b7eadf2d0c6df49e2f2bcc69233093ef
MD5 efdc39eab7d19f148ed4c21c8500b6e2
BLAKE2b-256 24bd3b64dcc2e155a6bd3f99b5ae8355b71bb34216e9441a36447fab9b764dbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3dd161d93c5784c590d7bb9134e2ebf00456e57e3f4a1093d277f5eb0e15bbff
MD5 4bfdd6237a76ae331abe0045f4f4ab6d
BLAKE2b-256 7e96fb9b6d49489330216c9b4ceec17839cc691ec8afd94dc68e98c3947f7815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cb69e8f0a1b4e6d04292bcb2917a6c8abc5f5a219e7e58504a9a13490fd850e9
MD5 2201390fd4035a225c62c096d1024d81
BLAKE2b-256 b4eff8e2737f48f08d2cb921ad7c91806d6025ca319075ef22f106d2bc549c0f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.22-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.22-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d0696b44a43e822c4fb62b00a098d5934a3f577c221f2590b6a253fb854d4f0
MD5 da0f72868aed39c9153b5bc27cd3654d
BLAKE2b-256 5712f6d47537bd9401bc591aa55b07e94c85fe05d79c21605142bad47db51670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.22-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b30cd49079793af3257740cf8fb7dc18f5b1ce6aa887562dc9912fb3845c639
MD5 2413b64dd5cbbebe4b45b217bc662f5d
BLAKE2b-256 3fbff50915c7fdfaa82a4663b97eaabfb23eed2b0032738cd3f6ac57892a3cef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 59ab58b0325cba55bcc74cbbf0bd03d769c8b752911b0a8ec646ed900e0dda72
MD5 e7a9bfe9213d259cbd6a10f7055e412e
BLAKE2b-256 558f5d8d8b9099665e6e6aae6cbea8092a36ab8430d3500ea6b77f691ff75e1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.22-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.22-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 533ffffa1dc3538ad90cb31711bdde920743a23a267377719c65d65e8d676749
MD5 a52956a8fdb0bdbc424edb6ac3eda4ab
BLAKE2b-256 1eb653e2b7cf0a927298dce5f680ff0af280adb3c90ef8fe0f00cb81c0e3d7eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.22-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.22-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b921f65780457470ef494b5609f58767390b794ba04704aa770baf4c4c54bb30
MD5 1ffad616e83b27a13ff8fed99a773a19
BLAKE2b-256 91c1f9c762b76db983d734e0dd5003250d9b74061823e7f470df6ff66e73ea00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.22-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1da4a4733da4e22c5dab8f701e104ee7b211f6a15155a18a521987bfa4d68d22
MD5 27b8c02575a38566abd71e55d1f7f499
BLAKE2b-256 c7e20e44cd915f8c31ff2e14ba9ca625b36fcdedc9b40bc12affb23cb20392c0

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