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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.753-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.753-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.753-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9789d2327426fc59882a90a8034115426d87d8b5547913c5c8062693a91d2c90
MD5 c0f6d1fa2884caac71d3a758cf905d94
BLAKE2b-256 5d9d5b7d0d9dce7634b9bf685925bb2f23b65b1f97834bdba93b1d0b821ba73d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5a38f2147ea050beaa6d1dc2a71854259a9d5ec8885f162cc41819feb85605a8
MD5 1d8cd76965856eecb0dcd6e53b622d1f
BLAKE2b-256 e653fc890e16b4ba7a7b97853535ed12cbef9dee4ead4a67b867789a3ac57cc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.753-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.753-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8e66f06a368c8e68c164e311bf13c035e8d0dfb23b8956d321afc0776fd398e
MD5 b9f5c6d4e88a0a015444a76ee6d85844
BLAKE2b-256 26aece0c9a404819d1c76b19f34a07fabc5b4624e803bc02243020a5d1f5426f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8307c7ec6ed9855d01dc8f613cde35dd5794ff8d0d8d1cc5e2e8272051f0886
MD5 3afc75b74bf28419ccb90ce1c93d7ef4
BLAKE2b-256 389d19278726acd0a550e4a78e13a119d03e09804a020133cc1bae466b3ec840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 16cb5083f33ce8f24a85954116417d92aebe9ac9cf0ac044c0b92874a5c221c4
MD5 a82845e30cb75fdcc85200eb294371b3
BLAKE2b-256 0ec2c08b1afeb0b9065944cb2c4da2a8108baf518d76536aa86f070c83808c39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 668e4c9b177bfa0ba62745f2e4622ee10062c993695e7f390e4c616a3054dbcb
MD5 f99fd94519b6cc78cf95062157169f36
BLAKE2b-256 d23632043c3ac1f51e69b5a32e0120ee3e2dc897c39ec6d28ad7c5583bac35d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.753-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.753-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c85adb009dff826f7c05f6420c28e7ee550c0515c6308f01d3952508d3ad7d7
MD5 f3c515a17146d4897474b93160eff4e7
BLAKE2b-256 eaefe322a6444d5d4005b64ee784c6cd6537d1e0bc143b0eb5d6f5212964322d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c806e08622e09ef5d166c0527ce0d05381001283896ca8109401132f633644c
MD5 d4ee5f35bc5a0dbbf5d6fd15be574742
BLAKE2b-256 b1a70620bed6a9cdbb195baea2603b91485402283a9849bbee4f2d9098cdafe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dce3c1abe20f3687adfcc8caa7ae66d6aa88ffca3141cdcd95ac45f1479d216e
MD5 9611b0d5e71402880e0bd929fc495c51
BLAKE2b-256 591baf372a35da3ec510c9ff6b2c1c962b443b386b25d262a9e04196e09020c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a0407ca23cbc23ab4792d462d3990efb9de1e0fd2652becff8a68ba089871e68
MD5 81e6b5b984d373235547575ea44aa9be
BLAKE2b-256 6d8f147831202cfc5e7f2f3a20db72b648d8692dd9c5219c04de87a18ff0940d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.753-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.753-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a60b73e7d3b93d55850f02c95f8679c462c00d08835440e1948217bab628c2a
MD5 5bb9e780aac4d34aee21fbaa4c067bb9
BLAKE2b-256 892078f4539cb10bd9eb55fb95631bef746632d23c134c095f97a3d4fe89924d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0b0bb0f985265f736116f4aef965a7544321dc573b55c3015f2e2492b968c12
MD5 6af4ea9f9d0787c3579f26c2b6458b8e
BLAKE2b-256 e46679ab6b3b9947a98052e6b71f5fc2b8fe7d14e0801c516865cabc939c335c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 08cab3d855338deeca4b26abf4fe5e32c50fd558ce636eba3d483fa37a41ac64
MD5 dd90e73e4f3a46202b56ce417c0cef47
BLAKE2b-256 edcb5d5cbb122c076d340905351276959729c553b4e1760f6be580e226bb280e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a1552956816b9fdd45efebdd1cbf2355d301fa6248c366b50dce2967844a4df1
MD5 5b5737aa9c7d02ff44117087b3cc70e7
BLAKE2b-256 bbb9c66190ba32f72a0ad835e2e6d6c3560e28e4d66578787d946bd3b602a238

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.753-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.753-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 193462b1c1e52da005ef507c1d80034713465ef68b5ba50e60cc6afdb13a7728
MD5 485d929370e8e620991e6118e73fd30a
BLAKE2b-256 96d90e3cdac27c7ff1a829ac14629276378fffb8ac9a43922ae55fd64b9badc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 149bbf073e42110cded55e7386dd9dbb0a62918139ec779dc7f3dfbbba0f61fc
MD5 44489ac907c34448a20618059faaa67b
BLAKE2b-256 1e4d4185ed0b9b1474192131b50707c16741b4d84745c74664b8fbe0be1ea732

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 151642659d40fb36a2f68c9cc0f95d9ae4eeb01c2258971d4fde14e86b271f81
MD5 b7bea41af3f8d9123034b819e834b4c5
BLAKE2b-256 75e8caca78c9c7942ddfa35ca38db5351238a6e39796d8a4f36c0827d7ac1404

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.753-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.753-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5833fc2fcafd352555ea07198e4ce3e6a0f14bcb7d4dc2fdd8529a7b163adb56
MD5 658cf60dfca35eaa3e3f139ba1247491
BLAKE2b-256 9e34cd8a6802bf1a120ef446984a489e897db9c6a9a0f2c8a96c80eb1513631b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.753-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.753-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0d656a85ed9dadd534b923140a0fb4e954ef489f36d77a1bbb3869cc8392348
MD5 4af7da894e32eb333569f18dc06ac1f8
BLAKE2b-256 d546842b89437425728c04bfa051ac147d7c509b38757751697f2beccc0c0fe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.753-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 048f6707df78211a319e7e3e4f98400b25c7dd0e161a62435bee9eb3f02b18ec
MD5 c638a3c1efbfa68adda47bceb960ca83
BLAKE2b-256 c51a800d7a5d5564babe9396c1e373516ac623b417a9458e404aa67ac475efed

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