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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.447-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.447-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.447-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.447-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2fe67467a9015daa20b12773fed93d32e58f3eb5de462fb6481be1f3a284e85c
MD5 064c68982f34ca3ea5bbf8dbfb9a51b0
BLAKE2b-256 21fe991cbb0006ac1fe37d855d8ddf407e67db0a6a9d3686c28456bdae8e7e34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-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.447-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5798f5d05a72ce86c55b5215089daa0d7eddfc5c05f735c27cd9c3e9c3a26052
MD5 ad92a2b1843f2dbc2c7aa4e01fe65ea0
BLAKE2b-256 52d890d5fae2bdd24815d88a9ed0be8d95d111411f23b36a8f4d5bac63af0812

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.447-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.447-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6333dd0b96028507bc90dc3b4c0c8be42f50428b26fff07151dd71ffed046ab2
MD5 551c0704a465e03f3a795da11118d247
BLAKE2b-256 a5023c49248727edf0aa23f44abff7906b366483ec2ee541bd9a6a21434b2a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b70a2b7751ec28f994432a408ed2ca1a260e87590b5b6dfb8e60bd14a69c8e60
MD5 7b6d14b52298553192e2685b9def7180
BLAKE2b-256 08ef37b6ce70ac57c9c6330807b2b0b05352d9927fc95143a3a7988827e9902a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 22e444e9e701f93cb88155b29af3851ff275fa2ba894b816d4d66492ed8e58ad
MD5 b4e2b852a0695c5aeda49487ea2ae097
BLAKE2b-256 8d563623239ac1b66325b83f8eca0f675288c1fa875af1c7841e941e16df61f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-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.447-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d10da3aa76c37e8edb00aa16be093a0ec5e4f7c0c1fb75d1ef7df32456d7ce69
MD5 692a675407ba2cf1801a01cb56dc219d
BLAKE2b-256 7ea9183abc3e6929ed1e9ce7a8a3702556bc98289093cd8ff709851796c1a4f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.447-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.447-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e42e33f07bd72950305fc5ad9effe9fbef5070d3c51f259664143543e361d0f
MD5 bf0f915a68f6d14d8fd29afb1e26b5c3
BLAKE2b-256 218952974e822e1e02b3b348ff16233c32a6d4f6b19f1311b87d486968f81b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20861974ae3f04bf08c586eff4781b9d862031bea4a6193c29daddd1bca5ac34
MD5 312e7b079593a246895edd186627148e
BLAKE2b-256 fa822fda6e5e3a0059cf54704b98bd855f39fdb18dab474c87a9c2920084e1b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ffdfaf9dda112a83f99946f096d416857984daa60b33a56de8fa5ccfdb8e837
MD5 c70a655dd559b405a025223d5896f03d
BLAKE2b-256 86df47946060d685bc877e2ce9cf99d5ff09fde0e903531ad2850d750987bfa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-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.447-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f5e944fa25e93f620d7f118917a1504fd179698d994cf71a85bf8393221753d4
MD5 273a1fe340e88719e24eb2cb0f6da4c6
BLAKE2b-256 13802c67786dfe56d29b10aa6ffde3bed7babe53e2e54fd69494480ddba8056c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.447-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.447-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61398749880f9b0dd1b4a8f6d1c23fcd07df057a131a0019bce1348a63ae93ae
MD5 45b4ec21871a80c41c9829408de73b05
BLAKE2b-256 4a4c5283cee5c427f92c27ef8fc648bf51a900940d150c6f2ef19fed35369f26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9eedc42c463135b0891f920b59664b5c8964addd05642a9b193efe4d766a75d
MD5 51d48d5551e8b439f6f8d376a865a7e6
BLAKE2b-256 ae247987a8ac4dac310101a4badc222f639a27e90a6011f8a9d365b183871797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-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.447-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e5e9ad7bd55de9b9b69b782789b6bc8ecf7fd8631fd2e3b4271dacfe3748d69d
MD5 780f3809e00d028cdebc1dcb16c93135
BLAKE2b-256 e2327ccda12dacc433350ab8ebc54e145d63f866685861388b8d7c7f0961b882

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.447-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 249a0086f01d46c3910970a23a8b6b98b44690fa40955241d4a9d89a5e8e0a71
MD5 2071ab62c0d46d94e54aa293d0abf4f1
BLAKE2b-256 f4f9e7331779843911a4caebbae8118dc2421ebf705b5cf2d51c8d86102c84a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.447-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.447-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6440a3c5f0564f6946db4f9739ed2b3022af6e95910ab1dbb1a2905289ae1b13
MD5 8a340555e2770ac222246073cdf68108
BLAKE2b-256 f35cbebbafa486ba14ffc9418035530f1244a88384d9afa04861d14a919c6ade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c3731c851f52ee81132531554ca693a43eab2ef3e2d3b0eafb132c5d5b32bdb
MD5 7bfec18016d1026d3e78fbf678e9e4df
BLAKE2b-256 7315624793b5cc146c4fa551a534029809889f2c3a57cf2d7d5a96d0df52c73a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-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.447-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 93cd3a63d949c49ff7c8f50596cf77346cf776246684b60785896d7ef6cdbc87
MD5 982d32bd25fc8f128cbce6a234eec594
BLAKE2b-256 e17945c11c5f6fc3c938c76e489bf74535eb885a1d637cfbe81fb71773046474

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.447-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.447-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 50ad57557b148d2880ed3945ea11c759596378a793e08d69149830ed140dc332
MD5 2e333d4e504af1cf53ca4c6adfba9f4c
BLAKE2b-256 5324e91e10ed740a3ec00ded24ea309485bb73a464563d4fdb19975f1bbcb543

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.447-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.447-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b78e272f806279754c4af3dc421d0cc282cd16b6b5dfd1b35b60b45e1330294
MD5 39ac8c09729623e4b58992cad4458a2b
BLAKE2b-256 f8aeddddf0266dc889f5b1777b711d260b890b0e403121a26633c554e94e0bd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.447-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f7a2d6bade45a4efd68f7aa2a9c7272def5d3eb73cfc3dc8ea1136dc1bca5cd
MD5 fa450ad971881eec8721cf088f4ecaac
BLAKE2b-256 1a7015819a4d27d6a0dd1c27c5983648170203c7eb4ae885f85dd5cdb25f06ea

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