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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.25-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.25-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.25-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1648bcf0447b6effaaa9db34827899c120ea2b0831448a0f3ba79630bad62a80
MD5 10139475c167f9522451e05c30d7a986
BLAKE2b-256 b6ff0de12209433bbd9c146689b7c40d3689c9afcdcfaf4b54d89bfabd9a7b03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e6a518ec2b468062a0142df39ad08256c918fb9f41485d38c853a4296db94daf
MD5 574dcacd1001de5e4ed284e981672492
BLAKE2b-256 a38922e8272e6ff9409d4915bcb2460dc00174c12f6996ab087ef4610abdbfa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.25-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.25-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8900349ed00e7c8fb8735b717015f4d9c42de396e17f0cac86ffdbdeea41f228
MD5 4d58cd84d45a9b1ac665de70467c766f
BLAKE2b-256 56a20e1431c8e1ba4e5d609589fffb088dd6db683036e6ddfcd3d1e4abea867f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.25-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9618aa536e4e9a22dd95e63c6f526c638346adfed176471b3016033c209270a4
MD5 9b14d5b4dccf0db62f3ed03f1f2a595d
BLAKE2b-256 79117b23c7f107667ec74253fbb1b10471065afb50d581830d1931769785eebe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b44d4c88fe70054dd6aedbed5dbeb5e0fa00b8610a572902ac8dbb143b43cd2a
MD5 996531c06258407ecf95321fb50e5b55
BLAKE2b-256 f4d7ea77f766b951c1c56574277226b877725297416b1d5b686d50204b0db900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 096ecf514375c7914c231ba86d56476a128466b38e99b1f74bf393facc428d9b
MD5 8b17af63f33247ff49231af3aea3e253
BLAKE2b-256 bd4de252d2dae88b38133eef787806f33da5bf440dfabeeb4bc71fbd1799a660

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.25-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.25-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18d0a17ced7f8b3f58ecb515413a118a5ee2c8e7d387ae53900043b36b3d7e78
MD5 ec53bbe36e42a8bcdb1911d8b057b8e5
BLAKE2b-256 bafdb13a953a49fbc77f7345c47c66c62dfef4182c7afc8775d8ad60e66958a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.25-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d95175e95791e484e8c80ece70d37d083f22bbb8250008dc373e7b976369533
MD5 e23e69f666e9ca30abfe64b12effcd94
BLAKE2b-256 eaef01549ea1f86df34d2135a6794c3b2f9c9f66b46a571b44ede6ac3f1a013f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b4494ec5b79a96974b3c41d42adf61767aa5b5ffa806b12bbae9c02c8ced578
MD5 2ea2a03afd366d7cc41679fb8f5f10e5
BLAKE2b-256 0a0e58bb5f1a6f18f541533e9f906c165dbeef4edcfd69112fa94781e07339a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a56e46c861a35e3283e7084d3b7c42095a421f74400a0c344d562272a2c8af5
MD5 74f9858b4de47fd6ff83553fbe61966c
BLAKE2b-256 f70b75315a5cca5405f9b610de898549a018b5d87288a74d680fd55278c0c8a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.25-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.25-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d0d32d71befd02cb590f68b09ff572e8381565eec3c78f9131b68f8e76760e5
MD5 70cb8854a48dbd72b3847587ec23462f
BLAKE2b-256 43a8f45e9ad8f97a4478e90920e77208b6ba7e9ffb266ee923de03a14720706c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.25-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00c93e63c042a587cb374b69e6efaf7dc03b0fd05cd6ff09b3847b70353f1e17
MD5 0164138ebf66aa1055d2dd70ab847203
BLAKE2b-256 347830889d25e2aa9cc2ead62e79b0ceac37ec4771447add0db98291f48c31fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e28c2517bf167d9068dcaa71a1bf49349f7c8e6d5473fc27a70bf5e57993ba1
MD5 3d3a9cefbda2adea593adf9d19281070
BLAKE2b-256 ea11b2a660d82e56332c05f1356c1ce5ddcaae285bff961a732d8433b9bbcba3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bb11c103588740c0ad8aa3a1b2ba501f033830090c6be49d4044e20ea716ae87
MD5 2038ebf7374b1f9b08210be3b6f271bf
BLAKE2b-256 77065e81babbaed0508c89992414db259a77317f350a351fb9c43971aba54807

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.25-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.25-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 317ded91fd8c33925b6ce8582cf1e907aad9123e03f875c0c84b0f80c50fa456
MD5 4678025aacdd15086f32e6ff8e79375f
BLAKE2b-256 e2205401f3b7690a51a2257904aa01c8c1d0924bd08c81418cf410411fb896f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.25-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b59991e95e5d626058395e6447837fe49b934ca39fcc33931116c0cdebdc655
MD5 c54706a311d9488a6e86f1962efa9383
BLAKE2b-256 3ed1d7c127e99489efc6ce3ee134292cae36249d172ce02629822f77dc7baa02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c29b37ff9e9487c43a58fb230829e3db8161a34e4a369477b3973eac2d5dfe7c
MD5 5d283dc90f043b2c23c1893701b9f5e2
BLAKE2b-256 857bb1f840cb80810bf11636314054e5ab755f72a172a6c5821f0a46daee21c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.25-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.25-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f594fc588bcd05e842882613c44c6f103b4f76b87e5ef501e215b33d6964dc41
MD5 572cb85a0ca0f0debf12e923f3141464
BLAKE2b-256 700d5d1a7c6d2e9a8ef37b08d265266e12ad7675617ddca5b4f92ff58d6a744c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.25-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.25-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f71a51577bcf4c6b8b1e2f156a3a5819032123c6464f65727fd337cfd930434a
MD5 0c411c8a89907cdc00eb5d8c64704b2b
BLAKE2b-256 66be1ec1f48ae181adc295a8ddbafa866cb65790554ab282df1544d39bea9205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.25-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fdbdaaee938ce83b0f5022e7f4b533039228f4153400f71c358c7c2c7f0a990
MD5 1eda09906daae028519c38aa5b77663b
BLAKE2b-256 fe0225d86c03868da49ba4369af2232c8ea9bc0e5bfe8afbfe1724d0749e2852

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