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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.60-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.60-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.60-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.60-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.60-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.60-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.60-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9eadc3dcb37c647efcf62d865a61d8396925e2fd27c64a3518dc1117a25e3eed
MD5 cb1ce718d0a2783c7e57f796ec3c9e61
BLAKE2b-256 4658f6bba989f470016c7577fd2b9bea89a76b8a82ebe0b50032733e24bdfcb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0cc9af785423b2f5a4585aee13a9a53519c05409b883fbffe86bbc0c535c8b58
MD5 9f6ba804c4c70e4f8f1c5064f3369ea0
BLAKE2b-256 d503cd1f04487d3cf51828b1cad3e8b605ef5950f03be400f45d663e7778db75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.60-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.60-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c2140c66d48b411a196a060110e974a4ceabf5d5c0c073dbbd0956be0003945
MD5 e29a0ab85a567111fb46b6cb5a2057cf
BLAKE2b-256 2d5e2fbfacd8e3eb0d9624272680521fd2b1750ad31aded5f6a6327693c113d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.60-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b299cc14835cfda092764e7c8ec4e308dfa784ebfef2f3c6b4005ede495cccd
MD5 afbe9a8df2f71e0a7591ef58ed109b66
BLAKE2b-256 6b4f33d8de1f898821b31748a8afa58ddc633f36a1cf028d0b59ad6b2fa0518a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.60-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c52f0a6bf82a1f8f1f9303ee4f06e5772f3d56845ae8b0cffdeb951be51e5b82
MD5 e6197fc6b37a358525b0edd76df62758
BLAKE2b-256 171b6dfb038e2ededc4c277de9d4503362a6b438cdfdaa34dd2816dcd7707950

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 07dd8d68c1bbeca70f72bf077e8dcca77530dc5327c213c04ec3880c4c7aeb4b
MD5 8868a6004e403170abcca388917fc05d
BLAKE2b-256 aca0016717778fab7ac7d6c93fdebc10c0c5b6b0fe6628012a324c2d0dcf1389

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.60-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.60-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70eb75d4c576f396076d3b330addcf5d6acfd78cdbfd6e90faf0a03117231e5d
MD5 6bd983889cb5068bf1a8ae18a2639fb4
BLAKE2b-256 68ef6a8f304c8de58570ff394f8f8a9761fd8a92e47803ea4273088b914c7e97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.60-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 798a7356cae19fa3a2d7f0443b4626d6beaba137172d30c7c60713dc12ed1df5
MD5 78008f5157cd3e1313f4f8da0ad38833
BLAKE2b-256 3a277e62e7bcdd5e2b8ff0fee6125b9aff6cba77c79a1f3f3cc60b89383306a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.60-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fd7c76b3082c70252f112da9b584794953887be018bde07052a5ca4324b02bc6
MD5 070e33c65acaadfa38ee80d2fc3c1d62
BLAKE2b-256 d49dbd1c371584b47202d2fe345dbd0a4dcb99d6979b1ebd5b245764c09ff135

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 441ba142f92041a61271ffa0e32dd0968d82fc8613d6cd0c83422be70dd30ca2
MD5 55f4fbab0bac252ab11b0b48d279c13d
BLAKE2b-256 e2c6b53b6bdd35f25c80bcac7b2011e10800674249e1ee13d672796fa29da154

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.60-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.60-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48a534eecfe440d8e0174683cb6b88eff5165960d79deb3e67f10b775652e5a3
MD5 d39454f4efde866956d246851b4ee6b0
BLAKE2b-256 62da4bc0b95a24ffb6ecd8756464a62e6a3ac5c670fe3d23390a58027b835a69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.60-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a87ee71373e5b133e1f89b9033be2eb0f8791a94352def40631535525279650d
MD5 60559b42e2011cf505dd31aa41c9c475
BLAKE2b-256 5b67e06c69bd76980674a6460e5fd0fd3dc746c064d82681aa89567919e68f25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 91785ebe289008fec6fc1608558c2b4a24f251a49cc4cb9fc554dd9b6044ffca
MD5 450e55eb723e3c1f10326315b501cd39
BLAKE2b-256 1f7b4b3aac23fe01e88190756341b94c7a2b3636134e0b04268ce436a545b89f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a6a368f05c12677d44dc13e8f5d726e7d46235c74044a9093a9c2662ee15b13c
MD5 7ae4ea26088e37cc03df84ea7038977c
BLAKE2b-256 f06ca28c44b2cffee1fd66933062b226f9459cff710e499a7500a63f6781ff33

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.60-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.60-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b039ec501af7d185a051c3c1fecd970d45c6c829711a041b51f522783df05417
MD5 d4e2e78b9eab1fb33d5c3ebd6816ddb3
BLAKE2b-256 811923028b34c254676d6adbd99843421deb16ba306ba2868b77977d0bdd4f9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.60-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22907b029b045391e956ead4ce4ea043e144889aa4d125dd2b6182dd66795d8f
MD5 e914e52016c648d09f5d32383640b532
BLAKE2b-256 c95c3a050d5d1de2fb8dc17a2134202990787b262ec79b729aa6cd6f1ba4a4fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b53e899173b4b8f307c0a984c28e227d6b0f5fe37e20c91886221ecd7987e721
MD5 92bcc2527783bca394d671b45b079d63
BLAKE2b-256 0c573edff05c38d0360c6c59ea624493138c888ef0ea3d252aa10b1359f79e3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.60-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.60-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 db8e80d38eaa60add52ab43d50cb30e5f96c1266d6f6e8480103afcd3cd19c75
MD5 adb81e978aebdc6d83dda08e0e1a4a8c
BLAKE2b-256 16676d4a5fb276298273e4afafad4798b1af9ea0860741991bde1fec9909933e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.60-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.60-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4e78e4808ae0fc3a64f906403f5c4aac6b5bc5e6001e9135f6adf935f2cbd67
MD5 a294b197389f2f030264f0de20a2234d
BLAKE2b-256 c0617fda7d1188e97d08466bd5c761c348ae5a543ebb50b4a84db135b45ec43b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.60-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aede262bc570a581a28083ac3f58c88b0e9814bac0399555ca4a814c26d4eb15
MD5 72f21702ad644b9ab9c8dd433928e253
BLAKE2b-256 e3b4a91a0eb0939980c4da47a7215afe4d1b4c0287ce524143148160e49d2787

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