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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.162-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.162-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.162-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2326606b8edf24e616a9384276ba49cc9c28ce7992d9c3f7bed7e60306514cb1
MD5 e0ea5d2a8ced7173c5e744eb28ab985a
BLAKE2b-256 941f233370236e79e1fb7fec47bfeabc993142e0f4f6b5d1d4f4ef212ed927a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6100e1b045879a70f1948ea6c529c6e4c3ab45c2faebacfd066a93afad82b247
MD5 e64ea7976c70999ee39d4635dfca26de
BLAKE2b-256 306df865229d1e0c538ba3c615a460956ffa6968f3263e789b00965a9c85b7a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.162-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.162-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d79249b90b6f216e7a55b228737d3a91097f1d63ada236d410f2963afb9f2b5
MD5 a48a18af28388b3ed2933bd926c6b082
BLAKE2b-256 1a8d0f0fc962bd1b8db5d464a4f803e5be711ee9e6e1649061959de07fa925a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4233390dff7e77dbb832b29694b916ec7f5c778bf0e5ccc2c60d82d095db2ff7
MD5 72a1931ce8aac46cb9ddf2e82fbe3c22
BLAKE2b-256 57eaa1feb32d2c53ad4aea99c9c18280bd708dc77c208083553df1dab2fc7e15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 784e9b6a5544331490bb759a0b53399a7175f2f60911acf00e12bdea5b8572fd
MD5 0e2a377dc1db7daa3e520d8c4e3af1c7
BLAKE2b-256 7732ea85ce314463bd076705fec82ab9a11e168aa7593286ca9559dc483a6e1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dd388f7ca72e35cf5abcbea56dbd3c0934c749b4633602a616ebcd78cca666cd
MD5 b754ccba56fd6165f38f9fbbd1123b72
BLAKE2b-256 06a7770c4746fbf18ecd39a3c8f2ce705c2f8bf1741623888fd892a27429fe05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.162-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.162-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa66613e474df2674b92e14391092cfe08241cf150fc3010a13bca82632657f3
MD5 ae2cd26e4ea33e7c23022e8a78991cae
BLAKE2b-256 c0f39903341ef7007e25acda6a308336d661e322bf80a3b9744ef083d0fc6873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e94a4d08f4469f6e301bfbc7bb5c2abf9cd7c07e82f5e0f64c8b04cad9c56ad0
MD5 fdba7b84d9ac7dd38195a773cface38f
BLAKE2b-256 202e0029c0d1792771a797678c913564bef277869504b3dbd1691894081597fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b081bfd098358be7fd847f2fa1a3efb87fd8d634131cbde4817b522bfc4ba6b9
MD5 69edc07284f67b802877989aff64eaf2
BLAKE2b-256 036e812b075234393f70a250f5c8b18ea1b1bb3e1af1c976e0e1431b803d7328

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a6f2ce413814ec70a37480c4eca891e229a18dc09a3ab01fa281af4ffdd8078e
MD5 9ddc942bf0eb57eb027f1876e4896dd6
BLAKE2b-256 6a4bdad6a60ddd7b544f23f14208a678eb2d22df5bcc31edcf97a64a72223fbe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.162-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.162-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f6fae964ada052c4cd88fd4cb66f8ed573e923abee86cdd4805dc2419979995
MD5 2dfe96acb8efcfc078fa525ac2ba13a0
BLAKE2b-256 737020e522505d85b9321e4808855f4190129b26a6f0f61714bb8c2417965a3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7f5e03a97c188d32d19ed3c9484521cf09f1a779b4eb85ed2e6cc9ab331c8a0
MD5 13125e107c3b09373eee3d282be1ef16
BLAKE2b-256 bd2ce26b69d37fd2bc78b1aebb24ce113d0a13e583d6874542a445f05c2897d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c095c728cc94f468a300560da044f29025584a39b8fec123d108c8f3e4933aaf
MD5 24cfe97220b600c2695d1d7dc7ca5cea
BLAKE2b-256 c6d49bc7a977dcb924d188dbbd4a754807338619ea7a6ed60d67dd1194442e4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9088b4553cc15350024e34ad964fd81d928017c4545756774bb0df2b49738a23
MD5 256dcbd9456575e2f8efd7947e065118
BLAKE2b-256 88ae2af8a1a0935663129ab76681285afc887ea3dd0ba7c1399aa6c271edbf96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.162-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.162-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6399120f1cc74675e12be03125efdf37ee21737feac742bb081acc4a9c902ed
MD5 1e5963d9c6d970374d2d2ddfb77c26d0
BLAKE2b-256 33f027b628bdd58ebc6d790db2a5ccf39873cdb04bfdd112418f2bb9fdc882e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6de6cd7a0854918cf329e0476d29192b6d2158c66b9f3ea433d993794bde834
MD5 900d8f1757af4c6d5828112a1ec8bd2b
BLAKE2b-256 a694b9940e74130cd89af7e742f23e8a409ead709fdb999ba29855fba99e40c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6836428633b78b6e78196e2b89c2bb2ac1fdf4351c3cdf6c1fd0af727e6c0239
MD5 82a1698aed305f6a52131437e8f8cae8
BLAKE2b-256 aab0f25436a323ed8df05ccc4122db03502c2ec76717cec1f137a9f2cb8268af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.162-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.162-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9cb5af03c4147a5b92d6501e38b45ffbc3cd2351ae05346110d68375c77d9b78
MD5 9505baa8e1864c391f21c5aed6525010
BLAKE2b-256 ba1ff5b124adb4be137371dad4c120179e750950e79a4d8955517a4bc4d2dd75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.162-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.162-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a432515c90a2c55c7c018663317ebb500b12882f64988df2ba57e0bf1423a8a8
MD5 ec92f24d44296ed34a824b982f4c8144
BLAKE2b-256 c70e1ad712fad64586e4c7b19619e16a4c15e88f35ecf3ab222c7ba70c1988ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.162-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a49a9c610e5540fa1701827f3d304526e19545c0f00a1199858fa29530c51f4
MD5 11f936083b0f23410fb58ce88c9a83cf
BLAKE2b-256 0a6acd83b415602a3e6bdd4412a7d5aef28c15cf74587b9a15876ded17d90fd4

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