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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.936-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.936-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.936-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9680e562f51d5917c5a3a7402e9b7f9d6a9689ab1d151b22b78af4be897b73f
MD5 9944d1bdc475a186a02d89f81120dee6
BLAKE2b-256 16019db5304437c45f50fd39c41796d17636245fcd9098258c1aacee52b0b0ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bb3ba8907fba9bed599dadbea91f664fda6253196d913f316e7346e1fbfc9103
MD5 db64cd3931929ec49855a934099f8c68
BLAKE2b-256 5f44fd5793c1301c6730d3db43750e83a9e6da62cf1da593f11fd951a1d76c6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.936-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.936-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f112bc775e552800e306a6bf7647a9108c47b7bae93d93969133203cd43e7700
MD5 a19d14b01b8c9654d7c826a7ec42da5e
BLAKE2b-256 07f06ac38c14df7b88e42e26872577f33d90e38237239bd84077ced1094d2e2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6d6a3884b3fa31eaee1fcf54fc936180bfe250e5c6cc54a1bd55e9d9472f624
MD5 f066d9bf79fdc15b63bd5e45f7a1f6b0
BLAKE2b-256 69a2e6559b8b72335d46e58faaa82a388ba98f56b882eb07739266e58fb4c281

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 67de97b48d40342b6dafc1a2493a19572421cdfaaa63de0ab44041363dbddd7b
MD5 24e2c170c2ab9dd290fd46f13899942c
BLAKE2b-256 ff99fae5ce15f1c918f198601cb26e0321cb37ba914e0298a6c548d4e807e247

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 26eca3b5cad191c3bd3cfb9494d12944bbd133e44affc8b2c123a078078cc07a
MD5 f25ca6576c33a4900045449b08f60031
BLAKE2b-256 bb143fa9c12bfa0dd542cfd75391297da4cb57913cf48e58f1fa34acc05790b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.936-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.936-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12ff635ebfcdd35520410ecee85f1c55352ca9e9dc912cdc3114a6f4ec265de6
MD5 cd0dc2e75cf42be2a0896503dfa703f5
BLAKE2b-256 09c76c8381fe3b4631f37fb386a01545e226891df9b13cd05c78698dfbd5ead6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cdf6e8defd82042fefe7ac6d739994cbb432962d90c6f795dc7add6c9b70430
MD5 ef7bb320a307b44c8a6163ce53419a8f
BLAKE2b-256 e5752defb1c22b26ad92dc71d55077b9a840df7e1f3e2ebf6bd5fe7f59632d4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 60f1a57c2afe63e7cee2a6afa9f0e1a803607eb052bbf080544f02db4be60c7b
MD5 385c23e6c1434c08e883321c5c5c0ded
BLAKE2b-256 a66f003fb7b9e2166e9ae5898a9ffa9cc6a3176871325227bc54cdb74f207a9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a6b8fbbc9a95b3ec2af0464a58a68c27dcd3d4e989562d892e311118283c5d82
MD5 979f091630128a1f51aae765d4606a29
BLAKE2b-256 8e0989db71fea20ef5bcbf7dc1af98bef5f4dec286f9fd701182db17c37eb4d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.936-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.936-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d6b1cf222ed4fc086ec73ff08c883a9077d4e945ff9823768b610ec5db97678
MD5 e050133b02aaac57dd08bc6f0b151805
BLAKE2b-256 72cb5538d3263a70fbeb12a536d62b8d6c4929e8c551929fc5819cf3f5a87469

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 134b2ae6048d0c74e3d3455c8e63312d60c7e242a42e330ddbf41e920b60ce3e
MD5 709b156425a318c89b30e59320b6f58c
BLAKE2b-256 4c51ee17d7985482711214cbf90cb29148aa189aa91aff1fccfa61ef5e2366d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 94392a0d0b8aa38cd6bc2a0d3fb25647b6e28f11708a7dd177c900ce05cecae2
MD5 877f4822efac50519308bafe0d18139c
BLAKE2b-256 f2f9aad19973974130eb722c0155f8b3a6f28300d078088c7eea9c7d4a350f2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 69d84aa9ec091a0606855ebf2a797bc224f1edd21a8fb96f3800689efb58d050
MD5 1a2ce7f308bce70edaad7a09e9707c88
BLAKE2b-256 45a37d555ef5832f179424345d98860ae153da3e2399bf37c85c0299c5d7508f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.936-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.936-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ab0eaa3893bf1ab165e318007123606b6423152abe8d06a00f63b700cd696ca
MD5 4a5266ef90150a78b35583db980d8684
BLAKE2b-256 62c231972ccbb257885ce7eb5e2c8769d8c48edc767744be6eb1c63137ed722f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91ab03e23d017e3bde420717af1d99ae1f8bf3576c49a4fbfb64ec46d9f96e98
MD5 01ed81397a3bcf798f55c2714294e5d0
BLAKE2b-256 a1f245a222cbe9e13d9939e4b010d24c378e0b9a82e013ae81c29b5f0f17cbb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8065b02e0787d71f1907d150af644474d856d7f11525e59ca52d82420624d8a3
MD5 67e3360d257fe9b99b17629914502b2a
BLAKE2b-256 2e098c5ac3ce2118f74756fee58365a664a55a88a1b1e7c47a3c8b8e7da4984d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.936-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.936-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6f090c76555744e99075ab6d1bfb9fc28a1d4ef458f08cedc9a29e3f329f30c8
MD5 b4221a9d5cebb8dcedbae1d8c74b381c
BLAKE2b-256 fc04cb4b8e6a99f74bf68aee46333b3ef594b182208da3e3ad5999d4d782b66c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.936-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.936-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fafd3663a4c91e2e5882381179c13de6e3f4e0e85e41bdd96697ca949958818
MD5 34e85f0eb39b540a785fd634e65ded33
BLAKE2b-256 a84ad07e781f476bdb100b4818201a217475266f5020b372beb1d12e4dd2fa78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.936-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65c65204b2bb7522523c67dff11e8c8697f83ce1b406645ccb05708bb6b6f669
MD5 269009825bb41fff8d023104d28d1f09
BLAKE2b-256 f33b6de199fed07fb35567c769a17e74a502ddce37fd8c702c823e0d21db2b00

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