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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.277-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.277-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.277-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3a6ae4c11fb2895d1e14da236e3298bfed01419fe25a911d37aac2674508b3b4
MD5 3966c59268b6ca96625dbb666c188f51
BLAKE2b-256 a654f16700c0c6fdc3879fb2af2d7812edb8fa328aaca5270a5c5b0a7ec00765

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f60bab945db7c35cd6264aaed2becbc26568e779699ac1cb640804848ac759d2
MD5 dc6d0b59775c893d863a3afda8201dfc
BLAKE2b-256 fe64f834d992f69bf28ddaf98c1124164bfb41f4d94df9ded1ec9fdbbc2755de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.277-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.277-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 34fa9b2cfdac55c667209aaebd581e6a01810a5ad5a3ac992f359bc5abbec7c3
MD5 9cba32d24f0ace840026eec17a53c1d1
BLAKE2b-256 9c6b081912a21a6328f1a5d82dbd847b9fa62f22fa02cde3508a84c2a75e9ffc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b72b73d1f09e0794ed0044f36d5eedd11ad60d4f0a54df3de2302a8404e346f
MD5 195c59b16902e0c210f87625eb99d823
BLAKE2b-256 7a88f204c81ea3ebf146a8069495a81b9210901ec82b2959f2ddb8563f60145f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b213a061cea330465e2875ab9264037da326240f9535a090867b530e791db832
MD5 b925c0db8ff6226f84d8702bddbecd26
BLAKE2b-256 e356198ec7d970e5c393daec22e0e2737857380e873ae6201aedf5365c981ece

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eed957d2b540429b869edbd6dd88381109c58d3e0dfde6f11ae7548d627e2a41
MD5 6b8469a1c82949cf050e3e25ad0ef1ba
BLAKE2b-256 b629dc7d627166eb6bd654a4e03adabe111c65e41ba176917c19183f12a81cd8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.277-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.277-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99680ce493cb31cbe6168d01102df6508fb548ce98a8a2c39fc4bfddb2d14f3b
MD5 0a3d15b487096a18eb67f22aa75efa3a
BLAKE2b-256 30cc74b0aa702fc49ec1b1f846ae04659e2c3dcb8018844c648a74f2fc504c40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 032adfa93efcd776717e851b09e413bf7dc1f53268e77557378c91e8a6a28868
MD5 6f6f24d83e894f0eceb1bf596a19b9b3
BLAKE2b-256 13bd7f369620570f7fb9cf07c01c1b9d30150644de6744a077b9dc67c35b6f71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c7c910de6612aa9289697819071ff49938be54b73b0191fb56fcfa2b35fd0a1f
MD5 31a70d34098d9b39e2b1163fdf95aa7f
BLAKE2b-256 77eba7804813e1fd5f2cd749bd32c4932d63b0ec4f1685579cc9f78cb995d3b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ed4540faf5803e454f1f72e3bf2af9a664314df01c66c5e08cbec19d83845854
MD5 790e96fc4f3df6d9dd081a2ea74f27d5
BLAKE2b-256 d91917c929d48991f67b439a4fb15f713df1754cbda333ae452f5a34e751faeb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.277-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.277-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8acbc2e2518413239a91e92f3717bd09b0818753a9ed6024f66b1522dd8a92d
MD5 9bf8d5b975ae67847808dd260692abd2
BLAKE2b-256 2c773d4a7f2d4e7d951eff81dce6491e4162a85b6f680e659e7b1be05e979d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7dda0df60cb1dfc381f550ec3360bdacae9d2e6158a86367e07e122ab80d319
MD5 8abc2efc54d90e4bd9e34805653d9abd
BLAKE2b-256 a8b61b918e52845de097db293621f106cc4f5af3df8b6574fcbb3b2cc2b2c0ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 82896419fe3dc33037f1711ee1c02eb535e5eb0d08e9b5e0c34baae71544a29c
MD5 80baa1b54df9fea346abab55f2f5db32
BLAKE2b-256 1bdfac7fc0bee718e260a7645d48b3cb6805a24dd523d313c4d6de1dcdb16d67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9bbfb76c71cfb9e22671eb5b18a278a83520466544abfd4e5f0dbcfc520ed90c
MD5 c111c340330963eb9b4c1634548b43ce
BLAKE2b-256 285554a007394e5ece85139cfa6e23f72e532a02e8c926db738601bd4900c6bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.277-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.277-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ed685889769ac0315675ac8955164ab6d32b134117a6c0591a3179f8cf104c2
MD5 eb5ba41310f2cd54b2e29eac1cfcf9ab
BLAKE2b-256 9ea0eac591f150dd1765636cb5bbb829f34675a2d0879251119ac4828befbdea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2ae26a07e02af5cd063aa7ffe0cf1d16f58aa051327d1e00efd51d8c0043c0a
MD5 375db9b7c761ef908bfc6aa29d557cf2
BLAKE2b-256 dcdd94e06a87fd460206a0e556262f03475f79ee5b8f37521d75253db8c51cd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 90c0742217e7b29b5dfb8063f276841f56dd894160ea4b462d43b930ca1ab96e
MD5 e5107f3c3bf9ac6dd48a19222f2f6b17
BLAKE2b-256 50e034d495b49983ca9d884d3d61dd31767b845ee122b1fed2d98444bf2f2035

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.277-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.277-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 85dd9e28e353619292915b59608b27eb3070109e29f65aad6b85b7b30430ab2f
MD5 e9b34d3141189c8470f2e2c8fd9277f8
BLAKE2b-256 d615ce584f09673d655ae4b899540e428d45a60af954f65d8e8b7f848beab6fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.277-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.277-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3ba51f4b02e04bd454fde6cd2684cdc42d33a646bdc3b7b67b645a3f3647c21
MD5 8f8e380ea8ca8996bf665994801317ff
BLAKE2b-256 97f110e23f35a8467cb1d9b823fa0ca152805f78fe75620a42eb5acdbb2b0cdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.277-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40a1b41f16668e9a0c21a8e92a2ca5372dd25f49356b9def1d714ce1039e7935
MD5 3121625f055dd22593a2a97c43574aff
BLAKE2b-256 e7b527892fc4961a0218b37c7f8b34e3e021ec32c4e8eb387d7d2ab95454169d

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