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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.27-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.27-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.27-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 442ab37a3860ea469376e9aef28e4b0d155f6acb1c41450c924b8f7bd9527b50
MD5 b3d67b4a2f59b36dde70db027811197d
BLAKE2b-256 39f2cebb1d2c9b8409aa01ad2d634544319cee6a59749be0cdd01ee2b9806db6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7e9009b22d6797917ad1900e23032e7d937703ffb54b252deea8a5d87c2fd134
MD5 a3601ecb66b9df0443643457e95c595d
BLAKE2b-256 a844346cbefe643cb9690fdbe0beba71bc5f91612904abb49538feed62f7ba44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.27-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.27-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf69c1bd0218d86e51a7fff0a58962a7006b9a3754561f37bf6d42aeb62b227a
MD5 7b9e61202c6a873d53aed27396c06e3a
BLAKE2b-256 31d40d26afb666aa7318bb4731f11f724c8e9b937b85694cef7ab1ca94b9b7d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.27-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21bd188c23b0c66d5a503bf8dcaa8d08c3101ac5ef7b6b9f4d0c697af6925e0e
MD5 b00aa72727d38b4c30f510081a4211ef
BLAKE2b-256 dac41df9c7b5c68a5876512232f9a316650f4a6fdd622fc3aa6deebf9353fd11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 12e09ee4b7bddd2d5f2c6e6a60250e1d9676c3dc41a68a5c0fc48045e66a47ee
MD5 991c781d686e6d6da627a4c34a63707d
BLAKE2b-256 42622dd3d8020f56a16fc29dbd4b7ad546f668781d692edcc22cbe6e6f43f0b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e77759a52e076999d2c987054899b79b9cf60de50555798e448ffe72b6fd8991
MD5 0e7e06af75b8db8938e71eb126251522
BLAKE2b-256 7072e1dd55d813a099fb9a7263e59aff06138bc6d59db716f7297098b5cba8cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.27-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.27-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 979e74e22e207f3a4dbc154bf4f6d449cef22f908bf8360a8f76fe42104437da
MD5 1a8c427b8662a2a711660180bdc41eea
BLAKE2b-256 e02d27c6c3bf390d02cb27d834ebc47378d143c60b4681b4217d9d416cfc0907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.27-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97c3648479b5d083290ff340a3691852a2a0d7306feb584585e755d7c1f1e3c7
MD5 32cf49a0fac35fdf36eeeca2ed9ce291
BLAKE2b-256 53afedb8dbd464c00e13171c3889ca4953e7494a06df23e7278ccbc850f43a9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 324b27aab7eceb4c63253d0ff32434ee2d5541d16d38f8984800249604023117
MD5 814e9b49cdedfd608b448919e528a86f
BLAKE2b-256 d9662a897bb43bcc7f15c451caa23fc5a2102df4fc115c2a1684a5b7d6d7590c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 42cc93b7d89c95354105234a570a5d47d7b06e93de91166893cd686cf3756e23
MD5 793a5d3820791bbeaf1fba4c1abb07f5
BLAKE2b-256 d1ce31ade0da6811e28bf068b6c835f11fedc701cc6d30ea989d1a1152a18779

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.27-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.27-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a8bc4012aedc1efb0015404dbab83ef36cb5d28b4b2deb0ba3638b69de75975
MD5 7e027446bc4681fe81593a9761d289cd
BLAKE2b-256 5ffa6e685fd5c887be80af67afcd6a3a7dcaeaeb157b17436638ca27946ee4d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.27-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bd9055a7c7ea1237b64d9f646a5ed311450c45df36d6422afe4ade893fa32be
MD5 ec1c49e327c8336e64f639b9c3b3c28a
BLAKE2b-256 d1375492dc9269fb4072276fd373bd65df183a1f7590bcf5d634bbae21cca644

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e8e1a49844bc5c7ac1ad12b0a64186354d22b4ca913fb7facedd7246c38f44c3
MD5 84bd96d1038973500d48462a4573da96
BLAKE2b-256 69f3cbd957cf3facb9aa25e46fddc28bced73dc83421eb4f82845cfc49f0be46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 290b70b400d610dc2d80cd2bba2120f89e8dd231c08121525dc3eaf7fbc4d5ba
MD5 e950638bdb2419c41db7996e6f21d5b0
BLAKE2b-256 634427167b43cbd546b7308a043b9e582ba5f8605f9e2993ce6e03d4999711e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.27-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.27-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ea391af8e1c080b3ff6f855f61eb3c41abd65a0fffb987b344eb4a67f480200
MD5 49dbca72604966e1caa85d09b65404af
BLAKE2b-256 4d5ed8cdd9929be2a8f8b322b964d8155c552be92b1e62804aaad78fd3dad8dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.27-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e32afcfdf7fd417d989476db87985b10d917fec34aeedeba11a453661c3cdac
MD5 0f5222a24c244afebca8bcb108d25f94
BLAKE2b-256 2980cbedfb46b9023ac0361a56bac5ba6941618c609c167281fa918a06ec5d7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5666cd38bc132e2f688158b0e2939c31e6dc20aa63f196ddbb42705295cdd142
MD5 b6e2aab98b88a51fa6d41ba074bde04c
BLAKE2b-256 d841df9e7f217a0d5c72945014792a1f87f0173f0c598f1e61f4fb6156121137

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.27-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.27-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b42ebcc2b58f7ec19de9e9b0bedbc5ac3765d39d59b06c73b33426877e7f3f88
MD5 ca65b6d4215c80eaafb80b494a44ecc6
BLAKE2b-256 3dd7ef2fde676da20bc7dd450fd8e21550b88cec3433568ce1e22d96a8c11506

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.27-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.27-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f35c186e980fe025ca97b986cabc9deb1f42bbb5d291397f7d2cc3f6b7d6ec35
MD5 1fac32c09105d3eb350d050690b96f8a
BLAKE2b-256 b4f86cb94a3a05aa9ca9ad33c7efaf39416c9a2a79ac29f66980479f458e544b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.27-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba1c8a997f6d8472e1fa41453b3af29d8501fb830a526fbb8c78a2521e7d97de
MD5 a58ae94d9f5229215ebbefe8812cf305
BLAKE2b-256 a8be7057b29d9b3ed9980eba1728915911f2b0304bc9de58a607a8a5eb819f94

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