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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.736-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.736-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.736-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9380b12035130d3fde7a9c6d05c3b1443ccb84ccb06f12ccfdfb78b118ea89fc
MD5 0ecfc5362509206a6b8f1e5b08efb7fc
BLAKE2b-256 ee7eb5abbc3584a882547566cd511a9d727e29f1aca9b390e4b426dce8434708

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 faf056e0f475032a3645d8b193fa6ee2ba9714f972af2ae9dcd81aecd9372ceb
MD5 85f49b41b4bff81a2bce19bef672ba25
BLAKE2b-256 4b3f88931c997a71c7cc0ff9b1c80338439be807c53066571a580413f1b8d92e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.736-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.736-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41621b862062272b02bf43ebca7695d9a730d2335b7a7e8a7b6076f342f67cd0
MD5 d4f20341a6b9ba6f67ccb51018dd6243
BLAKE2b-256 900bb4f8e85824e3917fe3314ef333d505badd20e74ffdfb0b62b45b97fb2cdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e9fbe78a8436a107da16a49fec7fa184485b3f2fe0fa3f0192838c9ba2df491
MD5 19c2061b900e569f43bba79df0303023
BLAKE2b-256 dbc2fb4002da96ed31f6d57656ea1ac684730f03804bb797404e6a4c166d6376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 46e27be78cd3192dfe38ca6ed73ad26ca1e1a2198daeda553289731c446c22ae
MD5 0f259f5ec65e0c8959140fab54abec84
BLAKE2b-256 5af27ad1e7edc2d07f9bb7fbd2db5414e7621334292b7458f6f612af0da156d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 66ab6e40ebfd62b4dd6f2692ab5a44eb1618b9fff97af425c2fdb6ace27d824e
MD5 5323f880462989f88324dd6e0be1e8b6
BLAKE2b-256 1faafd4a70ebea88f3aa849f54dd520e2df00847218a444dd7052c5dc4d3e909

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.736-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.736-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 121de63abb33627762a3b749b33e2017b6918d3c82d736510ef4400d7d33702f
MD5 b1212f11f0b512f2675dd8886adb571f
BLAKE2b-256 0013bc5163ee7a26b3e2648ccf855dc4c73037c63517b121f825db4a5554b5fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ba45a70e8a003fa3e6a40f8b734d1a953f722fc1f661c3e3faed677545ea339
MD5 c6551be9eadebd168926797a23ae8b17
BLAKE2b-256 2dee6e7a6512f865aeb185901168b1af3d6c013967726aa61249cfc5a95a6d37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16bbfcfc3bcdab260f1e0025e492596addffc043f3c82dd8621c604e9c711ccd
MD5 d078c76e72e88dc5be86dfddb1b7a901
BLAKE2b-256 2d2096626e788b76f99491ea45bf8bc5077e3848a5aa5e44527dc3d6050b7423

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5b26e7028583936fe4acb9a8b2bc246a4c5d4f4f7175adfe919fb480c4f64972
MD5 b13a9b112c2225828a62509b244550fa
BLAKE2b-256 fac6da204ee98893f365484671a0300722ed65d1b66921b73fb2e8aaa07c125a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.736-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.736-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f9ab1dbcb085bebdc8bc4067db1c44a05c56c230d099fe7d8cc1a4682228b0c
MD5 9b6771206dea9bed0faca8969510efeb
BLAKE2b-256 80705224ade90f9b52c6c2cc772802782cea72b6a45be7a95854e42f19a61ceb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9649d32b1b643c3229954af2ead52d7f9f865260e2f01709c46db12db26dc599
MD5 7fe6ab174aaf0a391fe54742953c5ffb
BLAKE2b-256 41d987c61cec78aa604bb682955bac6ef82a16cbac280afc55548bbc8d02ee2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4362bfad7bdf1115f00c79912b2b3c7db2f02433a9ddb0148b2bc1e671a03975
MD5 9627de762398028bbea7e40a87516ffe
BLAKE2b-256 9fe80cb94515cbc24ed37d3cd2e4c016e1b1c565280410e3b2a743e2ca942716

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1faa91cf1d6cc77360f084aebdb2cd59c871efe79c74ce5bc768c1c0f4fc7398
MD5 42245623ee46117eebda30b50b94f7b5
BLAKE2b-256 1ceecaee108135b5bb9cfed1330ee3b43aa9bb7eb227e7047a8aca3f7fc2ad06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.736-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.736-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d936edad16c875f43fd1ac49cb5bcc9e4cb75aef865e5053298502d4084676e
MD5 89a66847ce744a3e3d7e6383d51b9582
BLAKE2b-256 db1b6749029651ce6e04aaa68a0f535821c7e7cb3bb45e8d5b67d803afa4a14d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ecacce76f9de9d5f48dbad56bba7515fd9a83ec265fcf9329452f4a5e3710f8e
MD5 68a94b875a9bedfaff63f0c8245851aa
BLAKE2b-256 6536739211ca5c26854d2f847a5d7c095417e31247a838cecc58fa02b98eda2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 600eaaf08fc0d3d3eb3f8d30fe5c3e2b41716e17eba8208e9274a29b3369e20a
MD5 bde927bd602bff6951c00397b33e1836
BLAKE2b-256 1bed907e0ce8c0fbb86c3c9efb060a1378a048abd56152116bf295d5c65180f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.736-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.736-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9095810632156b6371a8341825182df903918713f3e6d3e84dbab63980387b85
MD5 d895c6d30b6d7a34e36605e051661f8b
BLAKE2b-256 969273466bc34855bb08fb40fac16f3e821964e4ee9541e3c5ad99b59f816d0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.736-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.736-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02162ad0bd96abc1b2feb8b38cd9429808ed5f0e5eba91aaafe89d5503f19870
MD5 6fb375612f19154b61f1ef1c5eb4feba
BLAKE2b-256 256694b393ef4f2dbbe9439b679909fecbd38e55ec65ff433b75a4d5ff9f7b61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.736-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b9d11c7a8d4fb95f88b7491e3d60f20c48dd07bb17b9ac7f237617ab50ddef3
MD5 6036c096278efc931c362a012dcd3dd6
BLAKE2b-256 8411e9855517d900077d9de4b599e9f5f78c954ae24d18dfcee185208d1b5f55

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