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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.408-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.408-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.408-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 117aa9d7be465a21d8652c73e4b511a3b6544a299f9a10491e23fc68b24338dc
MD5 3ce382bb17c9d51756ae7f76411fcb1e
BLAKE2b-256 31b945143ae35c34805ebd3558a7024efad9b161a7610b1f89188efa0a6e0637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c18371204a5bb55fb74603aafa52dfaf09c724ad52cb97d410a72882d499bb21
MD5 da7f12e49fdca20851c5ee2f59b21a6f
BLAKE2b-256 25a7e9e3a9273a098cd44f01903e8242397823ae6c69cf83991cabfae9fd8464

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.408-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.408-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ccfd26811325c53943319e0f28f53f7396550ca0ca720cb036f28aea4969282
MD5 99bb64a795f2ccb39b5f8293f86a6d12
BLAKE2b-256 884d969e64ad264b5c6b7dadb2670c178be7fab178bc33f2a7808b2c65da1051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96217ef840015a0146f5285c26b8bc651da7b540dc41509e0bcebf0311efb0c4
MD5 0779780c468b5f86d904faa0c3f94ee3
BLAKE2b-256 9a99debae00a2091b1450c594e836272154419dfd2e803cd0c1c17221b03d174

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eb378659260b3fb5edd80de7d4c34481a8a77dc3c056d5511365a061455d07c4
MD5 7d549e3841ba9b07f6de9dfcebe8c838
BLAKE2b-256 3a2b1d99b31431ce5bf8b75ff3941047ed1d8f9f4e1d6a84de606735d475895b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1f735018ef277cfe4e97e794cecffecc0a8172976ea3035145eaeeda6e59e61f
MD5 78fa6747cb636d59a85a133a1e67d39b
BLAKE2b-256 10fbbcb162cb123b5161041f622a088e192d343a6af03b311891acc9ce6c67d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.408-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.408-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8098254afc97e7439d3cf830bbe94654c1a8d998bc354f35b3e89e9cd288e41e
MD5 1dbab77dffd26e63284bbc292e63f1c9
BLAKE2b-256 03cec3621c28dd552286868489dc5dbfb566237c7ac744a67311cafd42daf9f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90367652480ae3dc9dfa8871a8491c800e66a7c94ec50f79fac391d669938e15
MD5 f077f9a1f662baa388bbc7061a77a875
BLAKE2b-256 3fa00dea2d1ef93c7b8d5a3ad2b6a6ab031372aebd18c3687826d83102fcc365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e41708b9152e5dbd96c760a851bdd60d12b2f18c6d6f3d9c1719b05e5a94d078
MD5 c3347570266dc34dd86f4338bdc8cdd7
BLAKE2b-256 545aa4d43ecd274389af19df1a64c46748c6750d5320fc1edf0c5c87a797d56d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 45f34d4c1f5fe4f255fd2721e5078be0b4542dfd636d104c1c56023b7367ed48
MD5 d22805570e10b7e26f025020513f93c5
BLAKE2b-256 efc52d9552baa8c48306b0fba9c65f36c7f668503efc13bd2cca30f6b64d4991

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.408-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.408-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e35d59a06e92c535ba62bbd379b621fc5103856af213ca5a9e4314fb05961857
MD5 06b443200444a70d5a43a3c0af5e0501
BLAKE2b-256 bcab528f1ea621997a551ee1dd946be36f7187b499839e20c3cdaf46973738bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c303a26693f4f6e0464ad07ee477ff0d1784bb8d59875a2b8dbb5e601ed4a2b
MD5 d4ab38b2a05c2c0c904d7db79c0c3ad2
BLAKE2b-256 670e6e289889e629122460aeb6938adc09b187149a3e4d4c321815e5b27ea779

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 64b935013ae1f7a202ef91ae06b9c6b1ec5db1964cc205045d73176759abac65
MD5 dd8760a910263b01c7b491b759898cfe
BLAKE2b-256 24d57a28a98b44aede3f9e36ec6f38384b847fa17d1c6ab8acbbe6c1482d8df4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dde0494ef5653c9405b21c090b3a34172752deccef73dfc76618cc2fd77ed18f
MD5 3b3509d045293a26dc3dfcccb311060e
BLAKE2b-256 594577c9231a60d90c526e0690183d41af502507a3567011f1fff9b8dfad2e24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.408-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.408-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60045d5727f1c006c3fa526873701e88947ac94b50e99cb33e5ec8beebec854a
MD5 776159ea726b067dbe4b07383cc55758
BLAKE2b-256 bbe5ef97ee712de098eaf0ce42c2c907c22d338c0d9f0e3926c79a090e089511

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bf02db36d0fd18725dd38ab208bc46a024e944bd11637eaf7210e9d15bf675e
MD5 25a8680e24ee372d56cc1b1b7d41414a
BLAKE2b-256 b939a8725e89e4bca8cf478bfe8f63fdb906bb438f406cef4cf70d9391df4837

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6eb87859297a63418b475e1e3dfd22b009a094fc755f8c6539fa5399c665bd48
MD5 8310897882ed4db2c8381b616d907eb2
BLAKE2b-256 3475ded49bc4d494dd81b9e738aae472f85e580a475d26601b0bac1816e28b8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.408-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.408-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2a937bb074dba4b32d31658e200dfe6374392587e34cbb2f0cbd349887f96c9d
MD5 53549d2cb8c4a1f01e436fd96351dc1d
BLAKE2b-256 3572e6ef897a7e01ac2fdf257fd7daeb191536c185e3d50e1f9517bd41dae35c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.408-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.408-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c505070ebeed64f278a6e4e8bed53ff7df504e8c997f67b8aa8308d9a40d1deb
MD5 d6239f7d6313034c532ff6beddd3bc9f
BLAKE2b-256 8b8b29cbb5c00a0dff087388b6b84c283abecea016c0f616e68389d42070b206

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.408-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 078a6d418fc801d7202dd091d40497bd29d5fc8cb8e101d8e5ac468c5e124d96
MD5 9ae5793232df69328df58e6da1c5a50d
BLAKE2b-256 481baf43b17dfdb32774cf1616d5b663b1c30dcc0282918e4f6649551921d5b9

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