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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.34-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.34-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.34-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.34-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.34-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.34-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.34-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.34-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.34-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.34-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.34-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.34-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.34-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.34-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.34-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.34-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.34-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.34-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.34-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5332b9510e5661645eef05a4b44c05ff5d7c6a05b6269030948184f591b9c522
MD5 7fd4f7250c184600c4fc318f8c61d1a6
BLAKE2b-256 859654c2330f12096a011e3514018a71b31de369faec9c3f42d8ffa7a406e78e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.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.4.34-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e23568c6cbb6f181dae2ee903da8e68af68da2bd288964cf68c9249329253377
MD5 ac806dade3b3b61e788529c33c71bfa7
BLAKE2b-256 169946307d418ab0d734a5fe1270f06bb148f29747bde27096c6309c34a3a04d

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.34-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.4.34-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a8862f055e835cb9fb0746535ab2b758ffd1fbfc9bf2eb1d5152488aed80efe
MD5 3453d7049c804ae5b4f8cc23422ad9a5
BLAKE2b-256 516135f3dc50a614c809888a6ef2f690e594f49c8167063ee618c1c2d29c334e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.34-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae913cac90e95315a78f72163cc15a7048e12ad8b40b6fcdf7053bc019e413ba
MD5 49dd423c142eb8295220fb81bc14c054
BLAKE2b-256 b4098fff9f20974f0e0b7b2f189782526a7c38cca93d6b1f413ab392f47937e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.34-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 99df423eed8b39e719438c6c1fc2b5ec96c7d5503223de544f6ee434f992e4b8
MD5 c5fac03b427df8e2439dab23fcd58efd
BLAKE2b-256 251a68cc8566b458be34ab250b99cbd4693532a649292bda38ea8b43ba5044e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.34-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 727bb6a787cdfdda3f6aff278c051360e6aa0b14dcc7148c759f2a40496bdf22
MD5 383ad79a44eb1de9a0d7660f17379fe5
BLAKE2b-256 23a09400c5c6f7d4c5f5bb17ddc1562afd4396b8d6f43af91145b97790e284a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.34-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.4.34-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 811fc1f427251106edbaf3393530f6efc86372cd91e78f3fb0fcc9a0afaa4a85
MD5 65183331c0173af8a51b28ce0efb2b34
BLAKE2b-256 5e282ec9975c08f5522e7f35044521c530f90e6dde9e343970c26550cb3e4b4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.34-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a895f1c7bc3d33170c45cd8f08e7b0b2f3a3257f2aa75e2b00e40747c5b4a0f
MD5 04686f41f15ce32bb31099c5575f6ff3
BLAKE2b-256 a2855c13b4969e108773f82a0faceecfb7c2452b603c27322cbfdb9499c46a12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.34-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 000df81a6313eb03741e9a40efacc19bbf49739cad1eec1789499d06258c55b0
MD5 e7e07d87cf45c7d58cfb65dab507049b
BLAKE2b-256 44c817406376ad58f5103b5a8539a9a8ee5fd55d76ce5a6392d65feac5ae3a22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.34-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5460542214cbcd830b85d19732c484f15ab4c9e2e9262e3e2decc68be00500ff
MD5 459703d8c1e0f4180017b5b967618c7e
BLAKE2b-256 6cdf03d0a7b86a395dc1f175d899b3d665e4dfd219fec3ee05f528efde74b6f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.34-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.4.34-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9444aa285766120cbfa45ea45064bb7890e3dfcdd6573449308390a88bb3b47
MD5 7cf9d47efc00503917479373ab2e5ad9
BLAKE2b-256 24fef7127b5c298eda24a9cbc179d8acc6eb7d09bd3a2c8de2b51ee91128ce5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.34-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32a974a8c2daec8258778de34825541dc6e3b1e320937c27982dfc261209f107
MD5 4ccbad6d65144e206fd233335a9b38e9
BLAKE2b-256 f4a5c89d2091de0448821d49f4719c9c548e9d2842157991e0ab1f37e29e6fb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.34-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c0c64c32150b9c42abed6c616a7b65bc27f2348c5dfc4369d9a90611ef49fe5f
MD5 8dbf04e2c3f3f6f9c6190116e8a9126f
BLAKE2b-256 36b2d1b7deabcbeb4a5d8c84a40b1104e8f63533c03287c12d7996f04fdb5d7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.34-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 51962a8c2c82bc3fc63412c12fd260a83eca248dcae5f013e98cb3f99a200f85
MD5 3beb30fdc574101eed78e8f8777b76f5
BLAKE2b-256 716ad320c279bca48a1ff4fb3404f34eda7bb142e6537de4534f4b572981d151

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.34-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.4.34-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b199ff7bc019ac47492d27c4b826781977aa01b3e6f1c9e37c5125816c4a8ac
MD5 7a8439a91d1b5e9938b65212f8e9c65e
BLAKE2b-256 04eadb398e99198a8eac319ffc10df0ef77242f31908c0eb26b29a67550136fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.34-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38e6c7a67f8f5478036fca63aa3aa42a2023f9bcccd1a24faeff58a4f9fbb915
MD5 87d72c1523507cfd1b50fbfca548f106
BLAKE2b-256 ab7c5a39c5f6e00f08eead48abd0a74c967885d8dd9159efc7958521362669a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.34-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4623e1ca51f70c84154c83c5ed0aac6df5d53fb3a1ca3b8da82b987c15c74bb5
MD5 db1eca0a8ace1763b6f78f997e68a521
BLAKE2b-256 86e646bf56e5a639c2083c767edc87b7915e266db50d8f993c0de1605997a394

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.34-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.34-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 657ea3825c1fab75b5feb9535bf0959199429696bcd210bfff5fc344bc798b35
MD5 d457a27e1fe2c75956a7408ec49c590d
BLAKE2b-256 b63b69f9e6a5e0a5af87c00aeb570eb0b8c54ab1fc623a99a8a9917cd134651e

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.34-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.4.34-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3e87bbb71e2ec3c000977ee436437d933ca9bd9f40d9f7ec6409dcaed943310
MD5 2978cf25a7e69ff3c7e0a1606278adce
BLAKE2b-256 8b4487e1eaf1e6120892bef358570ab7015a7e5321ec40d3595f94a85322ec03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.34-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c1c95795fbd1889661df06034d5baaa0761df4a31ba922b43cea9a100a8cf10
MD5 ac1299569ec05d49b9ac6708ff4ddd15
BLAKE2b-256 6c3930970ff88830d8eb94da65e00686fd0ce2f26c615aad7249af21317ce52f

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