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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.682-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.682-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.682-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 10fed488341da48778e3f783feb372009a9221ed6b8afe627493f56160e92ace
MD5 0485b0c32f1d0badfca996616708fe99
BLAKE2b-256 9e8941dcb35a19a73cea5c66aab41fc2231462def14462b65853e64e9949812d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5432d98e753b38ee6007102e24047e06d3a3d00c7bf6ebd0fdb68ab9b37c3878
MD5 4d54a9d168d22df6b3d8c50c6fbf239e
BLAKE2b-256 c23bcd04972a65c60e3bfc27b193fe5971f13956e3b334b1625c2f26312bb08e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.682-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.682-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d1472c471bbc6dc88e518f9a01766528783390041a82a1ecb0c8a2d1d2fdece
MD5 366c018dd3619a321dfb812eb3d6c659
BLAKE2b-256 daff6811ecf72c840175a09a2520ec1a5098fc64e1cdf0c1ffdfacfb575fc199

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8dba5c6d3f750ccb40b6cc900681083efc45c2efdbc7f36758f04850c83de5d
MD5 b1c442d78fe3385f394da01b7226f262
BLAKE2b-256 fef56d595c75528f83a0c4ae9cbef83c5d059bca9df114018df06081196b83b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 308529ef2a7eb40cfe57c4be178d3f0884512166231b87f7025779aae413355a
MD5 d5fe5197cb4319c20039daba94fcf233
BLAKE2b-256 e2fdf78fa9294f983ed186d2df2e7b6699c47e212fbd766a90b22e5efdfbd82c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6679e62d834fb0b2655ead72833f0725cdf12f4eb146affc518c3fa836db8dd6
MD5 68dd1bc78dd61607f12b5bcd44d77698
BLAKE2b-256 2ad8c610a929719fee8b73ec0a85eea339c63adca10020eb386afac7b0acade6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.682-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.682-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2024b489f356aa8be41020a091437dfc16b516cbf9a7621d9f76e2d47b2e624
MD5 ecd222413d0e9ca4cb30f2dd1ef2c5b9
BLAKE2b-256 0080d46273034f08f34d996a77b4eba195ed341580b0d5563a20c4a3dc9643e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ccda8c8578f872a38a5c70eca15f48a8bf0b50c59cb9c6a70f8c1c2042c75b2
MD5 6bb15cd35dcafec9094a8bc735409103
BLAKE2b-256 2cb26096bb76ed6a5aa3690439c759880283f68051e37731e0da927fedaa0e9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f55972507fe2bde8b2c5a7dd434a34f769f87f741099c2f6486c57d72a8da9d
MD5 4c10bae6e7d4418178dbb8af2f62a3d3
BLAKE2b-256 5d5ed8d637b11b958a9fe9bc899c599e65b855c9dd23203d265c5f81c6c70ebb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f827f5fb90f745e9840a43a52ab419a139fb89b6a9463fe8a7e7c6549e63b9fc
MD5 178eee6abbdb5fbeaf855d5e4f252c7f
BLAKE2b-256 7fe5ee299931bb44b3f936eb1f4eb3ceb711954874bbad93c9783c7850f6fa10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.682-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.682-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f879f765afef64658d7da2b172cabf0cda2747f4dfc6ed3957e02f1bc034ccf
MD5 b0dd61a97bdf9e23b9ef6cee29d70969
BLAKE2b-256 89cad08946424e632e03f333b17f2cf45d79e15313554c6f5a32ca42d710f4a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4d45c8bcafc1df22478ad72b74e738ac21de9a187f938c2ec947821a5091402
MD5 5693424dde74aef5c0117d91f307fd3d
BLAKE2b-256 98cd6008bf2063445c74a5ed02754a92ad4cbf02497d12c7128cb01588b88368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea4ccb0f230e53eb7e52682aca630f9bb5fda0b9c6f29ac13f1187c3b10b2afe
MD5 add7aff4096f9bfd9b5d668244a3b603
BLAKE2b-256 08c6a624fb476500622831c6a8b5632e57b97e896052a9186e4fb1bc1eb80bce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bc89f06f2f2a233163d88dbd627b1bdd2aee0656412bb0ee81f8ba1c01d76ebc
MD5 f27f3f9275b50ef21746fd181a34180b
BLAKE2b-256 663f53d65ec8314deb268121ce1e0e140e05f321a9b2c324fb61eff5b962f5bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.682-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.682-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b261140392042d505e5df1e926fbb06876223a7ee2338c80dd2161c635a7a9e3
MD5 50174def5af2a63ff2c8764b54353368
BLAKE2b-256 80dc4006d632cf5cf5624e9cf20e75b6b6ae01463b088c9626494c0e20f61b17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 205566acb5f57874accc357216e9fdb0a1024a81a269c5c73770e455cf00b545
MD5 f49b58ceae300f7ab8a47a2e8cb64950
BLAKE2b-256 18e5f1428f0a0a7550f63a7c9c21e99a13907e0372f14ec9cb7ec3eca4bd6d2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2e86277829916e2f292f80e820da79163b299ff09bba01d61ebe03c5ac0148f7
MD5 d8981376255c71eba7e1f79347a388c0
BLAKE2b-256 68ce8f6db435a025d0c63a8b2b5c2157c8e0e80f2bd3a685ea7e0b56f17569a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.682-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.682-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6c2628144273afefab56529109b60edad7f21b0044005cdd6dfce7aa28dd7311
MD5 e53b60e26c412304dd939e09864b2fec
BLAKE2b-256 e675087a5d3c42fb9d86607cea00c06a61e1f2454ec9be5f0bbca3aedcccd552

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.682-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.682-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd0750909043085daba76bd8bd7038009f39e514a6fe1d50baf7a415dbbc70d9
MD5 3b9d267f3d0d1d9080238b44cf37aa45
BLAKE2b-256 941eab60ed0654f3d900a720082a1a259cf104186607b790c621c545ccefef08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.682-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba69a5651b20e58bdd56585969a4c0f82e0fb0ef324ed0845970564b88c1f041
MD5 8859fce035c3884a2e21db1678c3ac29
BLAKE2b-256 fc9338d65b06e960b88f468bf6000ec440f6c0410a642da5cc349837136a6af7

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