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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.291-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.291-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.291-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 375106e21af82d88d9f643d9b2bf40b612941519dfbe918653af6ff97b6162a9
MD5 870292b49deff699b34b686f5344a4b5
BLAKE2b-256 72b58749d0c325f32f49b079dc14bf65aff4704913a53925183d145e7c9574a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2239bfbc022c9ce4002afad2b14c4a7e96b29d60fc7c8895811bea97224ffd73
MD5 a4848982d1e2c1458a658ddecbfff68e
BLAKE2b-256 4e7693d4a62fdbffc98118016f4824ea06342d8527682182b5a8e0cdb0d0d560

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.291-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.291-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1c021fcf7b5c90a501038057808e932457f78822aad478298c17562a01ffe95
MD5 fbb1a8b7d5422cc1943eb42c729176df
BLAKE2b-256 0e105117c99f9ca930c0f7024ec56f2c26786e5fd78cdb9a341c82165d88222b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d55a959c1d6325c39b008e0d98cd852c59252df7f6416103b54a87c7862be42
MD5 adb9cd05e57dd51c139c1cb131f26296
BLAKE2b-256 69e834fe220ffbbda98416e1e3a598cef2ef7e1e0507789d1c2129edd641817c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e25c335d49a6ea2b844cca2f50ee5e1910da6f946702a3a551bad52baf388d9a
MD5 f9e0a1339b545da6a9dcdd4956176b8f
BLAKE2b-256 6ffd4b6eb86b4358f4dc5df1525f2a7cefd299ae0e6c6cb66b63b8c327cc9286

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 30f6af0c090142a363788d56b1d324d89a82ffaf83c7c5ef2bd87875ddb95eb9
MD5 9757f85f36ad2b3ce87345b556409876
BLAKE2b-256 5a672835040378bcc9008b546b4986865ada3f7483e0d719ee5866a3db25ff53

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.291-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.291-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab7ed9b665fad597dcd362380e32d835af5fca376ae5f2fdfbb04197be87b048
MD5 b22a97b30b6c9a649c40c24afdda51cc
BLAKE2b-256 f95bed92eafa238993e35cbecedc9be0e06a26a4e2bf8964cb530eb09787e182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ea624a1286a578c40ec3bc0077401b155b6a1ae9bf132808d9ff01f4c61db91
MD5 647dc2f23ef0651d6892f293f4ad38ac
BLAKE2b-256 45a814df1cf512a2bbe3fc344ec416dba05fa1b530a6c89a39db744270f4171a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0d709dec90edd39747cde0be8a28159f92da2f6704e52ed4e89b173bb1309f8d
MD5 905cf0c91075a60bcb66b2cf2edf5c2d
BLAKE2b-256 d33cfac07176f7e387ab7d50efaa9ded64fcaa8d04fe2804fbf9e2db71edcba6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4134ea733254b811b6986e8b5e5e9620977d0072e005a42bba9a1c35d98c2849
MD5 b9fba1ec8c840714ae2f3866fbb4f2d8
BLAKE2b-256 c9af748f04b3a66934f95ae8bc5813dac9f289d99900d49b1ec7d31d12ce1483

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.291-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.291-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 027f57aea279178833f6d3a2901847aa87b5b0487abccdd74ee2a3b3d107c285
MD5 f5354af50e09c9efe97132b3083b93b7
BLAKE2b-256 6e0fe5af6345c1b3e1e71af17b095944ffa99621e40f0ab187110eb966af62d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76d99a7be70229b77a221598d0fa27cc0382d20c99292ebf1500bbf98b7cff1e
MD5 399dfc8bea72d0abdbb099b7299f53b7
BLAKE2b-256 13049498c7614c0885b13375b6474a3edf1c6140759fa1720669ec8b9e7ce3e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4774a22378aa0c22663623459d14045e8231169f5847cf88ef6a38c9afdeec61
MD5 036f1ca3fbce7dc087be9d3cf67906e4
BLAKE2b-256 1880f0f88eb28a4b4915c44398da860390dda07edd4db11f9fec36d3b9da74e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9b932b2891a60dde1778dd3773c7ba12bb2eec945e219666b96dca1982b22331
MD5 9c12b85e62109a1dc25c81c8e25930ed
BLAKE2b-256 10855816a6e2156d323d2c43a321cf4bc5fa115977577ea8f25c3e645c7664a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.291-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.291-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5aeba0a8e629988350b3b62076b8f5c419c23218d7b7e71a972d3f27c70136c
MD5 101f2263612d39f7cce2fbe9f61eabc4
BLAKE2b-256 b4fc2558991ebdf8a0bb2770e5a2a6842153ddddfff5d35dc9fb91f83b0e168b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f04fcf5a725d5a978dd16fbb0f6b26f3153c583b121371ca73c6f7ab5a3ac0f
MD5 0e59fb23af93552f47c26cba01a13ab8
BLAKE2b-256 5d6ba9bee951842a3259f5e8a18d55db9b52476b2b86b7f683db20e47fb43039

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d0f301b704d09d67f4071cd187a7fa1a30d39aa83a633f5a6e6c7afe2d71dd1
MD5 e4d6c14f9f93695df18bdc64887b4fe3
BLAKE2b-256 6d884227883c433dfa710d8cb6eb22976715f3ac8e62c93255f3b025bc44347a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.291-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.291-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ccddac100333b3e53102fe77e132a1a589213f7e0d68e6449d0ac0d03086ccf2
MD5 e531b9875269e07917332319febad451
BLAKE2b-256 11db2b1c0beced06eaeb6eaa0c17fb296b393e4727a3187b75c637ec77a072ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.291-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.291-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab841553db8614afddd1b02a21bfdbdbfe9224bce72acac5e0fd8d1a504b1e29
MD5 9eb0e2833c6ac6dc91cca48c483eae86
BLAKE2b-256 485da944c770db2f4692677190b9dbc074bd49fe7fb76974acccb52973a4ddd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.291-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55a88203b71cead4fdbd9065d64b948558925eb24684117d329a17368bf5aadb
MD5 b33838363a92e4d0b77b1ddcbb4b4b78
BLAKE2b-256 307456e2507485df2abbcd5017188066dee4be672cac244b96dba0c2aaae0f60

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