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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.3-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.3-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.3-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.3-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.3-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.3-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.3-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.3-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.3-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.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a11281d984ce38825f269e19b3699f219ef71ca9ef2c6822934b263e8751e7e2
MD5 3b4f010bafe1309172ae6b0e15ecf2f7
BLAKE2b-256 8f612372004c6862a3f2e73e842802677407429ba1e338a29ed3d65a4034700f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e2ccbbf053867040b273e5b5426ff79d1ae0cead6df0b896bcea3007446c4915
MD5 c5e6c4ea0d6ddf979c4af3aeb865f3d4
BLAKE2b-256 c72c162e6a5ae2bd983e0e802d54c670ae13a4f47f45b4c0795dc701e80504bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.3-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.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95045cabf0410f198eae303ae33deba8133531af6fe5fe8ca91e6eea04a3943f
MD5 46035656b84a30e2408ff16955e2bcb5
BLAKE2b-256 fdaf7f767b60fed02e566a1881a766037081bb12271e1bee0b4b39ed6a938ac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fd9f56f0d2817f4e06a562c454fc27216f2d3ae9f7881a0772e784f3287a966
MD5 31b716270a69605fa0b51cc01fc250b8
BLAKE2b-256 2570050461805ff998bf8b633353c93bc05f0c42573800732627e1a365cb337e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e730a2517de5a08ad0732d8a94f295f0ef11d7c20e6daa42e9538a11b39f379
MD5 bc5b7932337db335acb39e06e0c1e7a4
BLAKE2b-256 7fd6ad54703699cf0215b9e37c07ee566592bfea5741021552f94e610d779daa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 877a31598d6c14e8cb447fd9c526c98a171a93e130fa51643ad16fd3f9a8269b
MD5 0ce97d9ded821cc2391fbe5b09a4a45c
BLAKE2b-256 eda037741d90d10112668f4fe17cf3ae4d6be35cb98bb75f1318433e108ff897

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.3-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.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9367461ad40650df5d42ab941335dcd5ef43f79972658eb6cb857e4b0a72554
MD5 68f376fb7839b2e161145a4091dd71b2
BLAKE2b-256 5ad8f814dbb6ac29e3309cfb1f65eaff950e59f079cb3798a3b8c790f0a87858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42186a00b9a0f9eae18db5eede245c843f2a825a4564fbb76e43d27bd1303c26
MD5 7e28ef490d95f8f50351d8c2a300a19a
BLAKE2b-256 61d13b167e5ad16d2e04ffaa301234672af265240613e4bd59ffd9ea5474cdfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5bdc95b59d5bb602aa5313de23a08925851edd247daa1219753066e0b48383d7
MD5 d9e0df47b486015c7fb0164af13c81a5
BLAKE2b-256 4cce3c4ec760880b404d6a272062b50d4935be38be80c45eff29a5f8aa8b3143

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6936ff7ed81d67dc98a303ce9c0277efd0db4192d887f6be8394a83497ec17e4
MD5 70dc9ceba4a634581ccb418f205bf34f
BLAKE2b-256 8bd295507a8a0c1a26527d4094454cc16a30a6eaefbe1bc479b49cbc3f2d7514

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.3-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.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0476957c273040dc2e5afb10edff80c55cd3cc0dfd61329770494cfca30e2862
MD5 3b9c0ca50d56a3b8294cdc4e2a0c5cf8
BLAKE2b-256 73cf1e6aeb57a3024c99655c9bdb188760f97dd56e6e1989d4e7942bf5ec7d1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df27da3915d15d13ee1810b517a36106c59f41d57e5308bad4a5897c1ddbbdff
MD5 5455d46985670713c39bc4fbfaabe92b
BLAKE2b-256 f725617044dccaeb260330d58c9aafc5671f6a904aaa63d45c5a81002c383d98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3729d58ac996dc3e4d8eb14ef352bd0f274229a36d3223474bfecf313ea16e78
MD5 c5b105e1ae575c86601187400b95ad77
BLAKE2b-256 ff6b0d776b18f04d21746895ea997b08af9a2ed27fe94deea5399f5760858fab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7924df37c8f76244fa7276ad3f867d62109aa2608667665c5b55e99955220f8a
MD5 975368fc21a16805eb87987a22b6bb7e
BLAKE2b-256 fb1d0413039548ef62da00a3c36da2891a292d792e86a527b625ea6afdb1c1a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.3-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.3-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb00b6d7dd6afe4c8d379ff3e8bf157460d4eb32982728a6243bc54ad917c0e8
MD5 b6ab9a39984124adb911167d8ec931af
BLAKE2b-256 daafd03b8b5fc16a6c672d2616b3996e80687148a48b57764e8da6c49d65067d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 064c1f52964646e83e068c4af414fb3d9eb37ad50a6be446bf575e50cfbb29ba
MD5 065aeeecab9730dea950dcdf0455ca4a
BLAKE2b-256 a2d953ca7d039f4572e6f4c996a081776815538777aaefa1e6c680b12937c646

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b06960cf891483caff706f0e93d2f93f9575e966fed2928ed02d72bc165fee3c
MD5 49393778d01441391f1ccbca34e41692
BLAKE2b-256 4b0493ddca801abfcfb7344622e02f6aea056a5f422ad2da74172f90f1d2527c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.3-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.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3c43a4d829bbee169e0e1bec1ab218d06813d9eba520b2b2777464a8caa61bca
MD5 5d11ab7e592c0fa1e679ef017bd1a8c9
BLAKE2b-256 7096ee0a976b61b997984eef87d8e5c0ed48d17cc564d787b1baa033ee5b7902

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.3-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.3-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62be12d9708a9d35c16faeaaa46fde5392f505ec5b3e2710761aa604dc216036
MD5 209cda752aee31fe510b7289c1f297e5
BLAKE2b-256 77994c01800142ed74aa7d7575e93abd2ef5e2da19e4b5aa3c93003dcdf5b946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9fcf72aa7f1f56faf982a5d057ad684e93322fd1770b61e56032cfaaae8e282
MD5 aba2dd658d814a94c00712c56a3edd73
BLAKE2b-256 5c00a4443e80711029f7e48e0d87ed25d4d34755be003ff2bf5c4c09137e2ab6

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