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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.492-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.492-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.492-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5507a667122c280d5b2806c48e872b0fb09d46d33e0175cce9887d9bb8fe026a
MD5 52cfb03a83690ec719b02109654203d4
BLAKE2b-256 fa988acc18af99170a0891bce7ba1420e6a4fe07a63c2a1e5dd8484541c89b8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f658f7767c638dbcaca1cb13134e941bddd02f6775ff6b055e88b0826c20d51
MD5 139eaade0580b69308a6ce1daca1f09d
BLAKE2b-256 0c26e05d626ed160efec647869453993c242a9e254230d9194169b86304e8645

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.492-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.492-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 067dfd344c54123c10dbaf8aa5a7108d740242572af457455eb239fb18c3a5a2
MD5 aff37f247b4b4d5265fa082a5b3b89c2
BLAKE2b-256 cf87f6a151832f697962412e9001115b4ffc24f627effe4b44fd805a0dabad50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4bcf167f7e380122eef68d3506d8236bada389d8ddc2314996242ea4b18faf8
MD5 54e545934c8d45c90e1f455fcea674b4
BLAKE2b-256 df79e7a81f2cbc0ab7155d0473fc62a179c78897638657ae9b90bcb86b4b2d1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 756894cb11a7c14510016b1916d4bb0cc072a41ddd40aac3d6e7b143fc6c610f
MD5 2672e6deb9dba880be92ea533b8e6ce0
BLAKE2b-256 cafff95a5dd5c10eacff82df18d9a970d5a12834118faf0bcfb4423f2c5e6b50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 906bc9f493c789a568795a782095c5efd979d2491d49d605194d35fb689d7a38
MD5 aab638e1bc3b37a07c1c4789b485f751
BLAKE2b-256 43415dfe19a0eb97f9909301246981612f0ada853f8428b519592d0f665a848e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.492-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.492-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b8175dff0e0fcf2e4bccd375abde1388a4a125dd575d5404fffc11725256e99
MD5 a9c95178fe5bc1045814fe42a5dc8366
BLAKE2b-256 00532a14d2568439b46390e44bf1966eac7ea62422f1d9795cf3909a431ababc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11aa36b993b7d2be9644a70f08c52a0019fc7e4f6e2a5f3e382516c59d6cf669
MD5 468ab0599e041de763e6dd1156f67116
BLAKE2b-256 f4057a582d7d5b0ca9968ac78f9dc22585ccb5d265ba18fa40c79fe11deaf322

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 576048a34835285750ce9628480c554eaef045fed5e8ed8fbaa82549c0a53bd6
MD5 1816f9346866cdcda11f41f70f191baa
BLAKE2b-256 0d1ad7fb047faee70665c91a16825faf845cea0811b96d5267c1e6b1959fefd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d2c65a7d4b157f7be6e7c7186c07bb631de7b5d07da653783619ee155db3b598
MD5 d69e1d6f5002ea45c728476a48130884
BLAKE2b-256 0720002a58bd94288d169e5402d85542868153d9c1a96950f4baafcc3f323f8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.492-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.492-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d573acb78c8384cd92ab2b0de215a16af215a68ab4a45f3a45f0f7cc6985073
MD5 48b50a071e42ea231aa6ca5bbab1d2b2
BLAKE2b-256 9a3c32b180ebb5c4901160cb45d5f226e49cf8488365fadb7c7801a24cd324da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27deca19dcd7d165a3d2319efc32d96a5b44f848c0fe95a26a82641bf85f8b4d
MD5 11405eb01e241fafd0d28fa046ea79f7
BLAKE2b-256 9efeac4329ddf959018ecb54be055d1a260bd8ce6755b273861d38acd75b54df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7dba65b21714bb812c0a43fea427e23cae560457dbcafadfd3dd5ae5c8f938d6
MD5 6d681db11f5b7dd9bc6e6538bb287a05
BLAKE2b-256 905679f7fb92ac4e5726873b763bf50a4951e4e1c6b036f9343d950a449dbc42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0fd38e9846857a52bfbcf48587f6956f4015cf3adcd0d0452b60a3d74a48510e
MD5 0e43a7c5496b2dbc8e00291a745181bd
BLAKE2b-256 7d8335e00d26178277578be9272f9f0be3c1bfe63181aa965cb5fae19f68b2bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.492-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.492-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 492d1a1f3351876ad9ada1f0e19d3c3894c4ab755527479270751474a2f31a18
MD5 f28a21d8410d61e308c28f864caea07b
BLAKE2b-256 f43485e2139b6d7042d5834d2c747c809f4c53af0f43b5b007cea6ce0d978fa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6db43681593d3fc7f75238aed8c175a49cabe88f4380e0b9643148b9ad42a5b
MD5 30fdd2e94cf005f8945e16c994436a48
BLAKE2b-256 b8289e86a7fda2dd26a3da427c222b4dd09d722080f232c6e339043a6ee8fa86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 536fef791b35e8782ce36f59c5c0ef9d0b12936a56014c960dc8f6ad39fcb928
MD5 aaf9a9198681934582d426db5e585f47
BLAKE2b-256 44fcd5d4dce8760f74b02ccc1d481bfe71c9aa961ec8c4c789bd1727480809f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.492-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.492-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a964a69db2b5925a00c232cfa78717740f98446ed7892641e7824f3583c9f424
MD5 f03958cefd8a41c41d1efb8749fb765c
BLAKE2b-256 9fb864f133fd77b08232b7fdf7e68c1338c11980dcf795132aaa44dc9ea8aa98

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.492-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.492-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a2f3a55bc9915356ca2f2331957906436177118d2b46d072499deb15f6a3d14
MD5 cfb36ee0c39dd8f6e14e7a94915b5167
BLAKE2b-256 71b4fbebd3175e7d3ba208ef213eb4e688f98e21d5ad70af8947518491d4a405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.492-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b85b0ed34245538f11386fc73f1f459bac459a60110cfb3a33c0af89c9bdae0a
MD5 bafb41ac613edb7059fb605403e7d702
BLAKE2b-256 115cba65cfe2f024609dab96703e3e252d0e1d4837487f2a2fbe604c7eb87062

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