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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.513-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.513-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.513-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0028e2dcfb927a21f15b7072d77667a107ee9c409956810f98a6e0e9a01c6ae1
MD5 e7fb6125b4e0d5c408a29b534ddefc5f
BLAKE2b-256 f356314b83c6693e956705913d37858e121130aff67e507e5e7ea19d5fee00c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f68d566b81f1bed347cc87b560e3cee93556ca6eb2a79e7fef15d07437df50ab
MD5 32de25e2af969c820614eaac62cec52c
BLAKE2b-256 aacdeb861be287b363b49974dde95a24680d5ae12b459ea3ebb1ec8383910da5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.513-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.513-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f308172d3030a3cb17d21a684d58a23c8820ed244530d58eef72fa9f25b8848f
MD5 115d524d5bf29fe078194b75c8680b0d
BLAKE2b-256 db43942386f4b8c1027793cfd49a81962d561981dc72054a49389c4587a06d8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44a55619beeb2f0331f7bad7313fafe48eb623d8e6dff564cb22ffac06900b93
MD5 baefa7dfc08e8436838c618be4bb29a4
BLAKE2b-256 2d5498d097566269ac7df3cbd3de0cb5aebd9f435d00d7fbfef05b95f76e3845

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 522390873ffbc88b1294c082896614172175dd0a48780710ecc89e4754250158
MD5 c7299152a1bc72b72b288368fe73885e
BLAKE2b-256 d74d309e49a4e70657feaa03a2be7bc29c297bed9e169aead73e740337dcffa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6a433dbfd2b2d9908026dbbd2a2c903420456e12f67728b1b62fcb37e4f083d3
MD5 65c1d4626e161b83fd7b9f0af8e86382
BLAKE2b-256 de33eaf4a445140924e79af1602994860f6219e77a95a6c2045ed8364e52838a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.513-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.513-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d31b127a8c7dc58f9d3cdd41a9454adae50a089ce3d1942528453f98f74ca666
MD5 c11d76d5f3db3ee58f6b389661b406ee
BLAKE2b-256 2c62ab8f11f089fbdeca7949575469b7f19697fd304000737a9c7c4b5c941e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f588c79fc11af966bc2f5db6f65c2308919bae3c511a5e33f19f00bf84739c5b
MD5 1450e56f7a10759f5674f897ffbe8b1d
BLAKE2b-256 4450cf4aad3192febccf52cbe93e6f40e36bda03519c8330e131c5c4cd9af224

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b8371932e8bdddbb6cc1732c07d40ce14a5b22b68085263e0b875012f03fee2f
MD5 1e803f89e68a6684e0165562b56469eb
BLAKE2b-256 b3f2cb4a33f79c0a22c3a10fa2fbfdf1a1d841d6d9a895834e072338efd4218d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0d9af6abef09339a346387c5a91bd3d02e2091875f08d949fe7b8b1fa180b05d
MD5 00976afc9fced8e2d12b4f68459cdaa4
BLAKE2b-256 b082127b3b9c3bd7d6fdb164cdbd8e2e39c736d6447b25b57ea137aeb3a488ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.513-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.513-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f2ec0dc974a2caa5b47cc4c561b326cc121a444bbf101c9e37ab3a755258e47
MD5 6283ba6743149ac3df8cfcaed505e0ce
BLAKE2b-256 c6045a180ee93b95dafbfcb3d46d4180752ff9f9198bb5050fe08815896b7f92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40a94872955e0405551d4469cc3c3fef38c0547b2294c944527583dfbef16ec9
MD5 d1e17ecab85491fcbed5bf206c5c52df
BLAKE2b-256 ffbe4af83373e42777a2da401702f3ce6563c5d16a57f1fb5983c69c24d2f2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 38bd40d6786e39e7f68ce56097070038f861fc7f3ff35cccee2c0ece8883b15a
MD5 9a3e5ebeed21b75198547d4039e84378
BLAKE2b-256 c41d7beefeec1e51608b53a5ed15a69e0b0e276f4c148bf21178eff23d159504

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 014027eb644f5a33a78fac6a89a18d58dd8b28681bbbfd868dfc9be9e409a731
MD5 85c9fb841254d9de3f715bf503c32dd8
BLAKE2b-256 f08755a75ba3dc0525ecc379fefc44658b2d656adfd163ca6b18df7fce0ec895

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.513-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.513-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af7a8accf7a6888c052a352d3a7201a2de9c0a6ce7b9069d10df6725d5d25ed7
MD5 466330e914bfb0ad2352a57e549f991c
BLAKE2b-256 cabc614baa8c7186e78201e4d88386bab9e4abd8b51b394f2baaf72de17ed8df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 796774e083dd4d36c6ae92d8637f2eea31a5babcfd7524c285fc7b94f2efcff8
MD5 300b7b0de01d73eea38b3afb27f04837
BLAKE2b-256 7f28d48d3538a76e581c6d89621179dc6df514fb09e0df144aeb961cbcaec08a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bb6bf02ff7b79b524cd6cf7b7184c428528c1bd97ad5d0ea2f80d038c0df19fd
MD5 a7072f5d7b8bc5af69588fcc9c60af3e
BLAKE2b-256 47009ab75854963a528299c0d37cc804cd592501d39baeff761382a4d2ccbc40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.513-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.513-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2acc2b8b22467155a94c201b19da5fcbc5a3b51ce38d9f26a24df3f43ec841f7
MD5 12cf3cfecde02925a2b3cc9b78bccc10
BLAKE2b-256 12ec9bd2f91a7ffd62c08b8d32aa06c128081a5c77cc9ba438be81d95636132f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.513-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.513-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb1dea692bb35e6dcb31e57e55d83fd07b20cdca00a035f82ba534ece5ed9a24
MD5 95cbc93a4eb2f5c01d3ad53163d3f3ad
BLAKE2b-256 9d88cba852bb66bcde2fc82c2e5d83618c7fee8608f74a24092cbe9777526f3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.513-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cba629ba63c822543bbe921e9097c4fc02c7cf0fe44ed252b5723993c25528d8
MD5 1ce9faaae24c7a5425bb6950412e14ee
BLAKE2b-256 26b97d998b1ca142a5d9da5beebf3d5af70c62232f4ab3342e9cd3f82cb8dbe7

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