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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.52-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.52-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.52-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f05675ea6bcf75d11286b4f84c879fb8947d0b843aa12ecc6ac01eb0787ef8a
MD5 994c4b37943bcc882718da0e126d38ea
BLAKE2b-256 e86278481268a996373a0d00355290d8e15d22be81795519a942a3b64b47854d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4f274813466d0bc53d3cb3681220595858f5672bcdc66c7486b9d6e8346aca39
MD5 84d363eb80453e7f7df868ae27aaf6ac
BLAKE2b-256 026278cb62939c84a50af4c1f518485b24db3985dddf2482db77ddaa22107adc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.52-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.52-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa41d05ae17889e84397722a87567c63ee44034f685fcc1c5f73d4374e0bba79
MD5 fa65dae23864615f488a93cd821a51ff
BLAKE2b-256 2e7af7fea55b23a863a5156dacadc2fb539bd25ab361f25c38c49231453c4dcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.52-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0c98eb965da044461dc754f5e3f6ddbcab810252ece352f776d46dcf8086ccf
MD5 37e98e26148ae82a00be63a6f40926b3
BLAKE2b-256 9552f19a860ff4a49c7ce36d7d8d7406123907b43b3a8389388d89c44920a312

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fe549ae87c6c78273c184fe3ffc30d43fc374fdc9bf869b0939ada0b8c1f5652
MD5 e4f52784cc85a08e0a23467689714ac4
BLAKE2b-256 0fe376ecc10f9c51d9c69d3e6c367cf8bf204775ad6bd24224f5bd66aa75ab9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6760388628ea05d7792e200f81a3315e0a056bd7cb98ac8dd7e12963dd37bfff
MD5 6d812621474753571a524bac5dfaef02
BLAKE2b-256 ab9cb8a04978a33d2b815b4c4d7445224db8eb495ecd799afa644e6a80dbacee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.52-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.52-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 112dab9238cbfae8da5315c70a2c2bc3916bba897ec0fe0e155837acd466a569
MD5 8d6fc65f3fc136c673d0de97fce79d33
BLAKE2b-256 c8bd7fec7a133cfb0f5c21a394bf5356b334fe2adb8d639691ad0e505c8638b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.52-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63fb1c65a7b83058bfbebc1c958c47bf57e869baf78854138f99c4845d92c56c
MD5 3ec9820c7b08dff4125f5d32e4fada77
BLAKE2b-256 cc75bf6c40c113ba86fab6c5ecf65994c0d7cb16577dc0b90b4d5e03248ea673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 48136af0399c90606df1d57ec092b0a307da1ee3d5a6c1810c7088cdc2d9585b
MD5 a11bff39feec2b774d466a23e86ae6ab
BLAKE2b-256 a1835019915d2e9b69c222e210a64c5e541cdd5d5caf802cc80c0428bec3b623

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 479a32cea15e1de8656a8fd5835a7820c90119ceba38772565aab3543bed308b
MD5 6a28ae6ae9597d0f235661e344dc8d2f
BLAKE2b-256 e3890d76fe9b7f600fe8b295bae74188d19fccf260aa9ffef10a1bbec0882984

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.52-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.52-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4039290ebbaeecb26d6e6fc0d70f5fe5250a001d5f49ca27082285a548ce6bf8
MD5 9a6245ddb6399d2f95715651d9ddb3dc
BLAKE2b-256 271c06600a13051e370bae57ce65789698b83f6423328733496d8247c19243fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.52-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adedb24a3695606aca23c86c94a6c3855534643825ca599161f7efbec4430ea0
MD5 e8f7f457508a4e19f751762e0a8bc8c5
BLAKE2b-256 ec1edc203c9c8c57ef2544e2a42c7916b9500aaafc4fdafee042eab943437ada

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 88317310deb91d2d857b77aaa7cd305797df3c5289dc35d292a8c506fd1f7439
MD5 b3d3617334fbec42b9d8c5ec7958e94f
BLAKE2b-256 58ce0cb3fbf100548b9bd6ba04d1624fc9959a1cd43c9a2591c7f771cf3501ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 74dcb42c9383d093abb85595ca02bd1f9c7ca18e104336d930cf5656d2470072
MD5 941cc76de99f5ff3b4e901b109a50d9b
BLAKE2b-256 d765b9dc9c41ad428dc4b088860ff18b01d545af67d9c18af1106074333946c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.52-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.52-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9fe4f4dbaf65e0ac2809c5a39da323296a2228eb714013380a1317e7549dbbe9
MD5 5073cd2f0fefc68f2546b295c66831b4
BLAKE2b-256 76167c5df8806fec2584cd05f0e3b37137c6c316f05720ef145e056d20932331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.52-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a945e43da519f988f095b045c16eb9fe5fe7d80639ab4a48de9e34c6d4f6db60
MD5 ef8ef5ece9d737218bce2e06518a80d1
BLAKE2b-256 cbc9c6b9e1c2597a4da35f3bc20efffe143428ba1ac391e424a5b8f0e181621e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 760756bb77beda75ff12e4c0413780c6ff5a8349da176c59fbcea21dd898eca8
MD5 69f39613e1a3ae81abf0978e145321d1
BLAKE2b-256 cd3fae44b0f0da68b89a4a3f84cb4a2dbacee15741cec44478eaa7ce4f91f1f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.52-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.52-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 17b0713b90cf2d1297f222cd3b105f7f30d06332036b596e0ce91d2f0bf3554b
MD5 850924695b65c65339bd175d5e893a15
BLAKE2b-256 4013182806567b973d1a0222787d2a42b71e736f8b2118689decb74070065bb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.52-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.52-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e587090d672c737c923f9ca3bc0da6babb0b233ac1a218a338577e6c75e40ce2
MD5 50420b3a961a1ba5252fd662ccdf4411
BLAKE2b-256 951d61a5e705b66e0ebefe9d57b3de81d73fc95a47780008b06cd62802b234f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.52-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcb7f5973d2db644601ec84c13297a18196c2f7767f16138ab937ba64ead6c86
MD5 662ad95d1502cef7ca880f171b82953c
BLAKE2b-256 e0c69cbc885c854d82ffe83f87dec6a901aa2a17d2819337558cb7a1bd00bd36

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