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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.544-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.544-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.544-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6ac1929bf28ba0af0f8938e249477619bc497f96504fa54b79e39e23ed0a8ed1
MD5 17159618c7ce2b7359602b6fe6378307
BLAKE2b-256 fa408d51c0b287d56dc415f73377d57bf730057b831d8cc5899548bb603914ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85d3b8565f246d17b52d5b403820daeb9fe708bd4395299edc16bc64c3560de2
MD5 e02e7427600f20c997ce9a4928801b59
BLAKE2b-256 a2840bd4c42ec2350468fa1240f077cbdf17734bc97be75f109d68a942c82c6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.544-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.544-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e05ded6fa5cedb812fb993163f8b07c0309e6abc9bc182e6f2fb6f72342ef901
MD5 d398b9ffb30d06c572efb0242193258a
BLAKE2b-256 4b762b2f8cf8ca508b2c5da1ab8c95afe4cbda935e574cfae54f3a15dd36f922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eae2a2f64c3e85a92a9e4426aa1720e6e565b1885eb3218257f62e575da4b39b
MD5 0ed9255749338ca9d5b0af48b7ef51e5
BLAKE2b-256 4f7d403565b3fa3cfc97a20db9af4010c1ca29896e0a12bec3d615096d8d34cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eb74e6d5960217005878b707dadb41abfc58cba7231685f6d41e5d37f59bd97d
MD5 1ae12ec92a21eb336999203e004a881f
BLAKE2b-256 5487dd631a26925dfe92caeaeb99ad1de8114445dbbabbc15244808b7bc6b465

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bed985df63630ea8345034841068a98260f9c6019f1402ec352717e471e8480b
MD5 05b8e06b15babb1cd31e8badbd3c45f4
BLAKE2b-256 7b0a974130a6dac1dbbd4b2fce853bbc27864585b6f09fb8345911028bac4edc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.544-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.544-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 986c2411cb14b2672fce00fc44bfa38a815e8634860b51b64fb85bb9fb853a81
MD5 fe5b3c48b4122f64bbdcfc4452491a04
BLAKE2b-256 964cac4b28a923977d70f427cd31865502e606984a39ad66357a1ece85b0b6c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f80f68a8159d26234b82d33405146931b0cefa275e965b6d10250e4e0f71062
MD5 8cca27511d148acdf319be77e9ae49cd
BLAKE2b-256 bd624d9b26de50400800b4b72c9804e49ebfaa563b3ea81aaa2307fab42faa33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 33b58c32a9941db58322e5032ddd0ee81499b8c98974d31fd9b0a81911c05652
MD5 6b365b9ad422e5cce21d06058e9327b8
BLAKE2b-256 6b54dacdb054eee057958290b52e3ea09e75daec0288973141a677f3893b84a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 37122d70b48a2fc1492cbd23245ebd6bc53eec04d5a25037b2c83da9c9d199b1
MD5 7f86e1479e0559826d05d3387fd9bbbe
BLAKE2b-256 5cbda514a6d1627cdf128d85eabadc676682b9750b954ac5fac9a279b6721742

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.544-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.544-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8718549bf339c2aec9881d52ed2a5d6777e377384f09b32b653f5373b305f2b6
MD5 37c1a5872c8ab5bd5ae4b6d589963bf2
BLAKE2b-256 c0ae93c8db8b52495c6e4a9c9689094fc4c997b218973ecb6dce948f6720336b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc267bee3c63c8729df0eef7126b38c17657482ea5c2ac6e364b590411582479
MD5 bda79465c931911f5074efc26ed9d224
BLAKE2b-256 6125364088c9f71116f453cb7fb1f76388e0677f724f75d7b2750d1a02e9b27e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 978e2f83ffd671ac8890ae0667fa2dcdd861554ff186750295f7a82e6eab0c89
MD5 113290b419d564ab855211a4b2146793
BLAKE2b-256 daf0b2ac01158c67c9a400c82e7166bf52eef91b91572c0a0873d5f70a2e1699

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a620eb2cac627ab4c4a45d42e31a7e9ece465d6e2c93fc91f5c86887d961cfbd
MD5 3f919f26b129ac47ea30b4fbd44f231b
BLAKE2b-256 10e0a87e3dc80014585067f0d31918ca6e2e50cdb766f820a8cc60d30cba21e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.544-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.544-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 617ca639783d7e1048417d578952bdafe0a8dd5643182f8dcc291151bedc01d4
MD5 c5579ff3f6aa47071bfcd9ae708991a3
BLAKE2b-256 c5897e6424d3d1b85858a5497d475fc37efbb57511525f6cee0f40384b726e4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6739f863b4d6ae3574959ce4f6f8c3edbef24cb344337ef98a20fd933d26f244
MD5 a449e2a5b9e59892f2aa17052ebbf894
BLAKE2b-256 c76793db12d33162dffd4e1de7c99dde24fbcb79c8450235266b489f7ed46e6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 647d3dca9417ea33b930981f25f0a3fc432cae5b085087075cb30cb6a2f2c63b
MD5 172e1303365034d429926afc76cd0f43
BLAKE2b-256 8abd46470e85762ced941eefbf28cfa5a515a82863b1a0f72c844b52ce7ff68c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.544-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.544-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 253901e6c12a15ff2e1b070300cd4119c7dd2421a19de5a4933e6c83b9efdd4f
MD5 ce6e8cb247ef060ba99f5fbf14ea569d
BLAKE2b-256 3a05bb3b306887890c277c212c535a7328254c3ce988d309a98f74cbaf13e6df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.544-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.544-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca8539bd9ea1f6a385b4639588bf43a90d4bef7b614250df5596502c50e57f74
MD5 6102b766a86fd9a80216890bc63cf43e
BLAKE2b-256 0a4716c2ab7055be967c0aeceaefa6adf4d1fcc3cf5089843190f2078a4f9066

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.544-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1da914d81fd906d348c8df957cef65d9ec03b67310362f5a89797e39e8186d40
MD5 a7960595e721ebd8e41f5dd461875415
BLAKE2b-256 74c09b98d512eba69179e0197e3601b28fc9efd7f35e6eac77bd649d9b38cb37

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