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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.178-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.178-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.178-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 60e844b95a64dd634d6d6d8641352f8f7799d6c33287b050f52ff4c64f095f55
MD5 5f4b8a91351a9218a9ff3a8d1f08bf5e
BLAKE2b-256 26e142b1169b8d1945bd207e136b17d2fb85a9a1c87237fcf3a4fa972b530c59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2c110d988dc533cf39620d7cae81a793dbac5d24a544f8594b9cd677d57eff01
MD5 1d0bea78926541339be8244f5d75ae54
BLAKE2b-256 313264569f989ba7f5acbe841f20af7427ea8f97b181fe2997e03cc94d33ace4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.178-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.178-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 819899ac3a9ba3af1448e8e966eb4786ee63899dfca5c5390e99c7e74e841ffb
MD5 e267f66b187e5ddb1d5e9d85dd31aad7
BLAKE2b-256 64f84b043e4264829460568b3fb8bfeafeb6eb026ad5a14f390885fb8c9163ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ae01217d8df56adaeeaf71ff38a72c09c7de01d1a9185195a2cd6419dda9ca8
MD5 19a85c9b69f016ce7d630d6732261713
BLAKE2b-256 5e9fa497c19c46a84ad875ccbc634843ed0df795e5d53e328557049d1cdb498e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0a3fbe25e32af6d244d409576a30fb2533ecb30c16c3598b8e65b435c19160c9
MD5 32eea8d0356000de022e709dc74c727c
BLAKE2b-256 72d63ac69f100fce67f4bf8d5e1ceee2c72a8a8a82470fa2a3e7a8fd5b7f2321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1cf46755e418f37dc1287f16ea12d63fee8eed17526bed3978b57eb164136370
MD5 25cfeedbde781062b13eb7a0712dc9d0
BLAKE2b-256 c19809440a8503a8939c0005c0ffb13d7d6478458b1c4995172af82e0055bb78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.178-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.178-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14b6ba46c99386c9148d813201186e989080721199703b3f9720901aefe30ba1
MD5 9e8e0b57305ba0e1675a3e65d5f68c4c
BLAKE2b-256 de302bbd87995b21311621cdde24b70b39c7cf6d8d19ab9eca41946c3a50fe44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b8c1de86da8d55c0019937d2e186f5f5a520ad3404e0a0025e9a28a90f4ccce
MD5 e437c10af03bce0be9b8180a01014a9b
BLAKE2b-256 ec8d64f072ac89b81aa042256a3624817300d8d4a81f183811e1b4d6861faede

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e9204da92d29340cbb391afb662f90b52d756e2c19e31b98484bb6f5c2053aff
MD5 c7d92239e8e0c1f76cfd3fbed864f36d
BLAKE2b-256 2ccaf0ec46bc64a4417cd06d831e2ef7bb4eb0258afad641a7b6c1f5f93e7377

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 07d6e014895b3a0d7977b4fa2d612eef4cb6b90cd2fe2a708336f15883906b45
MD5 0311f2aee4127423c20ba403f8e26601
BLAKE2b-256 42770b70bc01ed93afc85f880cff812179f8a56ba62faf3a8a2f3ff18d3b738a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.178-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.178-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0afea0a6ea9bdab95ccbb05f459f18951faf581685f5a38f59b395e73b1097a
MD5 2af217bcbeb44aa1aeba1062fea12076
BLAKE2b-256 f881f5b3cba5afc15f3134c7f3eb6066da6702f9e67e01afe21f9e9950439177

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f6fe38c636b413ecd8bf4c6a52bd1db8463c0e4ab4437c502b807f13186516d
MD5 1e756dd5fda318567e451cabcb109d8c
BLAKE2b-256 a49483ff73a783334c7dbf17c84342e85ba661cb2b051faea4215346e2eb3f39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6a397d5b5654b2692b4c24518289b1daed307b64ce546b63091622dc84ce43f9
MD5 5549d60198e45206cef1b60874ad4a9f
BLAKE2b-256 9931de8284eb17ca01c7526aeba37d3821f49ccff9b816911ce3206f0c364f5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 16bce2a85cac29bafb5f65e9c892dc16d00a982c663eb9799fe794658994bb7e
MD5 9ccfaeb05aeaaaa9109c11c5e2f4ef08
BLAKE2b-256 02e33e19b61fd41616927245211d4ec86b15d0f333e54e221e433d12a48a423b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.178-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.178-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f10748b5346b6546a48ebeccb1d1463a016b7c64a98404f30fe17011ba5af094
MD5 147bbae0c4c1b7eefcb9a20eaef81ca3
BLAKE2b-256 1eafe144c1b71269d6053dac6d257842ed0794c8f1d859c85dee3555e2da0ca8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 253bcbb9797b887efb8431b25117be6817954e5564208f14925e4d3248b4076a
MD5 6dc960b1ee07e3f41eb85ae2191f1e66
BLAKE2b-256 8c26d58f229d7ef9e3e53a0aa92af6e25d3f7bf35e58715c4016d4f9c11c1c84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2a49a2659cc35fbbbbac2735401b15e4199a4fccf4466f6d8c5fda398753a308
MD5 69ac9a5c51d50dba0aa1858eae5e5b84
BLAKE2b-256 1878a18cfc9f2c7ca50b7dd0a7cbd98cc7377f5241997bc73d732165fa3fefe3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.178-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.178-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fa89baf9f640dc5f39f75205748b106540d7da1a59ca4b86ebeec2bd946b8d97
MD5 fe0f89a1374a20f1c136fd2571710c4e
BLAKE2b-256 0aced8c9417c66ab0e1cd4ea169ff4d02dfbda00d77502451d72739b2a528002

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.178-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.178-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f94a7bf30ccc281a7f152ee7e64ffa07dafb6d7640934c387f06258ad773753f
MD5 9a01bb607b6cef6a2ab182bebea9c669
BLAKE2b-256 210aea2f72c987b8841eba4e086cb6b99dceffc3f11aa320956973dfa108883f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.178-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d6cc850a5e02886ecfd031a02d51cb9c914edbba694914aa6c4d450756a5722
MD5 350f5cb6c563e676de9caef7704bbc40
BLAKE2b-256 fb4347199d9e8e4feecb14cb7c42174cad660e577c99e2176c33e423dc9a2c6c

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