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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.760-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.760-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.760-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f90e7096f611fd88a12ef838572385281dfddc531c906fbd1b36cd25b3439c5
MD5 e3c208ee0b0e8ffe5deb1250e415ee63
BLAKE2b-256 76d39d12a3b3bdfa3a194dcdbcb77ae9de161574f9b743d3a3f590177507264f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 49913bc2a6ea66ba9c1c3850c2392c126a26f3426fbe88c0905672ddeea74e3f
MD5 275c29936fc762e2f24ed5b915796e77
BLAKE2b-256 2fbc2dda971c2051e3fb0b1ae6d5b5b5e79197ccad6a1531ca1a2208dcd1ca7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.760-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.760-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c5be08155ff026289a33ffe4514d36f1d09b3991dcca4e73f0dbe0fe07a4209
MD5 62c29c3bd4d3d820442b89b992897d64
BLAKE2b-256 e11905df78aaa8198bd2a32a7cf6731a285442c58ae92d4809c31af952bc6076

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2628fd4845b9404b613c163b5e2c0a60ab0779325d9c6c1d4a52b5332efa9b2e
MD5 8c5bbbcef3d42fd2ec97facf85130824
BLAKE2b-256 28bf1cc09da712d963c874c783b181e481c25f392c76f347c03159941f48562d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c353bbc497299d45246bb2d1676708976f16cb91b5275f0500b05ba34a1cafe7
MD5 aefbe633343bff16444ff5b5333e6378
BLAKE2b-256 a174bf87e6bcb06ae970c0a58f4294a1d442db5a5e6c164daf087925905445fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3609cd577687985955352807a6a285f2450d796344a60c18888924552bc8930a
MD5 7564a787cc5687186174a8c188f12020
BLAKE2b-256 6362d5553acaa1ab606345b3384a73ca9a62b1955852b25d0dafbec62941bc84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.760-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.760-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1630f533b91b4c1ee6c71229d8a046b5626577c715c73a7d69eb2b183975f52d
MD5 662a7688c2d2034179a6811538b0084d
BLAKE2b-256 62ecdba2dc79d543d20412dfe355e8aa02db4e73a6d8d0dbcda5c07d6641b75d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d052443ba4a2ca620aeeccf337b372b75f8955005acb391e5ab47d0c373dbecf
MD5 fffeff79469123f6090d2a401f8f45b0
BLAKE2b-256 9d932684c9b56225ee74fc14a45f650870b564c9f112fc73ad522ee46e8e73b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bffef47bb90506fe8d12759d8891a0557673a5e4b362f74a6aa3901d4f59963c
MD5 722a92ec7b59b0f880bde59a20f44df6
BLAKE2b-256 2a4da31b2b987a0f9a18251525d9c880b32b0d4185050dfb179c8984a27129a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 76a8384514e71f1c35206e755bacc693912e9193e612ab55d4aecdb8091361b9
MD5 64fcc1118b5159f16a7e9a806cf7da48
BLAKE2b-256 2fcfbfabdcdb722f3847022b0d5714bf6885b1e695a3aa49c5ffc2508a0eed33

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.760-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.760-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70394dc0b14fd0c5e9e5f703f5ee7e39905873e17bbbc45aefc79192f6f33fb3
MD5 f6d425b17830548c3ca83db00d2399c2
BLAKE2b-256 b4dec13dbf2fec2a60168e2bbbbcd3cb1725d8c7ab0ee8e54cdcf5c8049a3877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89678cf9ece491129e6f5af88d3556f07c33bfdc483dca373d399ea9d47e320f
MD5 c85a412fc964b59692d904f9ba55f311
BLAKE2b-256 bc0f703a7b9318142d9d759258edce42c11e38d0a0b27f662e1db9c54bba254a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6894019729254fb75f47a501dc75175943d28998cea9f112fd80c9622d4126a4
MD5 a0f6f70273b26949683e27c208e27eb1
BLAKE2b-256 5d5eb6347072e9e264f7de17b800cbec3bdde75a3bca5d61cf13eece9302ed70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c21020e94c7294bd5ce69123e3bb970c053be700352d197944813bcea3ba05f4
MD5 924b9c48f8bcb5ee6104ddf795bcb7cc
BLAKE2b-256 3376031931d329e21ffe8f1d737ed89ead3a69508783e5b96cc807e920de7d93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.760-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.760-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c51deff5af4c72ace911d6f7760d31e76963967bd4520c6cb5695947d28a6c25
MD5 df24480d8d08bc01edee59d50d7810d3
BLAKE2b-256 ef7dc615628208e189d9e0c47521c6f29a3e9aaf415a157ef664ce04b0653351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f69cce59770555067a25a036f443bce83de4ecb0b4ec6fa71b100b6b8d4de966
MD5 87966075e2edb612c35d1f099dc24136
BLAKE2b-256 932edb54b0f3c3df5bd3c70976711b10dd7205cb94c24dba03b29b5a2e5a2db0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 03553d2a43db4f9602520e4cd453e95296f9e3784e73d601b89ee704ed3d8e60
MD5 6cf75c935d3db76046ce3c8b677eb2d1
BLAKE2b-256 4b7ed68bc0d27c0c1218b79d22c7987b70d2c13f5413dc43c874e93c8d5ef035

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.760-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.760-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 03140124b986d5d2e6b587544c12cbc5c0b67d427cac9543900e390f259367ee
MD5 37774aee2af51de885c66c44888dfe67
BLAKE2b-256 ce8fb91301f07528dd62cad4cd5ee9817f636934d19220a2a472d05114ac5c70

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.760-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.760-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b11df95ea28cb5a5b4b25c4a8856b622085a5b351610c9ba6294196736a1327
MD5 e29af4f160350861789253f35421bf6f
BLAKE2b-256 7181e2b54e6505ff194de8c5e64eb5f52e796e88e00b8d42bfba4ce53d38a3cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.760-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f7fed253262d21e4752428ea768c622f122b26bb2a66c5369c5ccc1c4745a17
MD5 7a6a650709f8cbd62c22d483ad6de9cd
BLAKE2b-256 7ee8a51e0ad0b9388a2c108ad9333f814ed790abd24d00525f57971f3af1ea4a

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