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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.172-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.172-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.172-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5e516543ce93c5a42e128de5f8306327b9cb88aa0f508c48d41feeceb3fe0582
MD5 04ce8cfd68b1b73df14ea95bab2cc49a
BLAKE2b-256 7a2149c5d3c133c8b45832f7006bb585c15f5a7fc794bd86c168236c50b1e0a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad36f6e4413e034303d6732dbd1e21ad30a515da445e5e48a48123e45c22c1ef
MD5 94f8b2b9179252f5fab24a20710ac171
BLAKE2b-256 cbee5fa88d1088fc03977f68694efa08c2cfeff9558d7ecea92dcef04f102380

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.172-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.172-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 742c0b0444ed796e1af6610cc78f37242f6fbd7067186361a2dc24f600089e11
MD5 93d69f96f042e18ac5a022cef03fca9e
BLAKE2b-256 6e478e930c92f3c9f67f467824b737b3097900e7b9e5b1269cca413aa8e56b88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ff7456d525d45f9d29315d9cf91997b43bf76af46a0e67b281b733566793a78
MD5 590a90e1b8d0c5370aa44386171ac07b
BLAKE2b-256 e2420bc26004c3367145b1bb02b2c723d8adb1b84e2aecc9d53a2b645577b58c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a7183e16a4f5c430c4066bb0788bc3bdbad264fe90d5bb62ef114d7b86c9c61
MD5 64d0cf029d1034ff1ab2d78ec7b43e72
BLAKE2b-256 67320a2b3edbb269a700f1aae3db41d9bec52a446ebc6682f2a32e83f0cf8536

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 be606ed6716bb4b414ee95774034f47fc681a3c42be5e88e6d2b7f840216c0fa
MD5 fc06cffe9fa05280e8696c6528011620
BLAKE2b-256 57a4787f83ba6046eea8ade6457f83af8d48442da8b4795dbeaf69caca11bca1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.172-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.172-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b81d2fd94a515f7636af3ff0c02aa5c72612d2a3ef997dd74e4212104ffcef92
MD5 dc5eefff8b6eff475ce4360afbbd1d3e
BLAKE2b-256 1a67199407b969f93221247020e77ca75d3beb5621ca8b891105522240f05a7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cf5f3cf39bf313c9efc601d595f85c9db568764e6ae4ed92fd225ae32c2674d
MD5 871e69ab5cba71d3d0319310519f8241
BLAKE2b-256 7e2dc18605f0127a9454c88ef65d21361cd9e38e2d8578c96a0f1ae9c77d466a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f11e1bb23fa76033c9c46d37ba726f4c11997c3040609e20d3c49d04faff35fa
MD5 4be4e3288b3cac00b2de33545cc3132b
BLAKE2b-256 212aa3e7bdc398c51565e47342bc652f70f27a1e17221b475e23734f8cb0b34d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2c538296b48e11dde6a5dac8c59f1cf7822945ae2167e9877abb63d59ca00609
MD5 5a7c9928f22f838f9cb6a39c091cf8a4
BLAKE2b-256 ed4decc4fd7b1ad4c5a2e189682ef274eafa473be106bd63993f652bcdc97e2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.172-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.172-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 34267e0c24c952620cc4f667a10d5958a107c3949e456d43a5d9b5590a6d386b
MD5 94c8d8339069dc78079b7da36a556955
BLAKE2b-256 584d359b05f76355fa1b6f5f1a9f29bbdbf4d795ea65dbbdd0c55c032ceca3dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ff5c65bb950697e699cc2597bec9a2fcb53f35b789c4bc3a8b10379139626b1
MD5 5a1d7d145063085ce4460484804c23bf
BLAKE2b-256 f77ec1a1d0afbea52b1f327762ae675c63590024f9f7de96c9d8a26b28c12666

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aa397dee3fe978d16d4886f21e8075738f4c0c5942d60326bf0b0519ef59d740
MD5 dc41d858910c2f0f7df9a0abb357c38d
BLAKE2b-256 e9ef3a0f4254961f49d4fba9b7e3946b17f1381d72a6526211857b5c742bc342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 29ef7713e4d13f35812dcf33949f026a28a45572533f4d1988fa021a3306daea
MD5 538fa61bc0fb38671aa3471157db85a9
BLAKE2b-256 019b65d59f3decb36d442282bd4b1299977658fe43f346a8f1c482cdf26d98f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.172-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.172-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a264439f198f2afb3b90d4b38931c51e2bb3b0dcb0e3cac9518628d28b3090a9
MD5 5c23a683ab59fd5094502f3bc974e901
BLAKE2b-256 10076ed8c11454b461f00a22b487a1fe0645f889bee0e28a72ca87e97d41de0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 013bdb5831bbfaa57c18fbc8b651a13b26e72f987c983bcf7d46d7698f376fa0
MD5 0276aee2ccfc14a098e5e25c0f8382eb
BLAKE2b-256 dd4556db73f8047d0fb039562d7792e9f7dbc32bdf22ebb0087adcbdaf5ade2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4e7b9fb6c6b113670a41272840a6b2c018c392a6a71e6edaa11114c30650fe2c
MD5 c1ecb1110a8ca269c12e1f8fc9e014e8
BLAKE2b-256 ef66a10b6a62c218993632b26e4022da3c359aba6c617cef752c12bdc6355ab6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.172-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.172-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e1cdef730f0c7d42095dddb0c4642f56ef8d1142f2e5e351abe7765411e8d935
MD5 e0ce94940cfcb50f9a28c1831a3b76f6
BLAKE2b-256 7a47adc93db07d1063b75a3236e7a357ed573f854da4ac0a2ed0b996932c91db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.172-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.172-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a399eba582748673f4fd62222933436fa9341aa8cf68d12c8eecec47b97d8ed
MD5 575a3bfccad00aea2bb8266a0997b8a1
BLAKE2b-256 2220a1b1ce4a5d7d8c611db0756deba888cbc87cc4090bd591748df825f2cce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.172-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7eed4ebf47f374eadd27f9614d87905de84332dc7614d9d05d38b320f2e84ab1
MD5 7c6270e5080f7d967c3fa749f71e9d8f
BLAKE2b-256 78dc2c3dc6a720ec34b70070da6e1daa7e77e83506ba1e2f5b7e64cfc9b9e7a2

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