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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.832-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.832-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.832-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95057ab1b48a3eb35dca57eaa6fdcaadd12d128902913abfcb1ae7b16c77bb23
MD5 d74c405f616d99ae85b1fc382bf9b57d
BLAKE2b-256 9d2dfd91fb05622835432b1394d89b17ae2b207a93a6aa36771718871bd52485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 54567dc0c054d84fb93ac08a6c4cb2bad629dea0fe5d5b09f63dca89ca002967
MD5 4a3cd30510142820215d549530f00e6d
BLAKE2b-256 7c4339675011818ea2a196ee4eecd681d0af2f02b603a3776986417e7b685f1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.832-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.832-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7755a016dfa83c1e7562150cf458db360ff63c3072fa337d06e2e66355134f6a
MD5 16819d8fdd680daa3780dfdea2df122e
BLAKE2b-256 a7df89e0d5cd81c58264a63a853b10a0141288a25cb75770b469c9165cf567e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cb6e6c1e86add8e9180e16eda5570b88a4cf952759815d50d08f48ce1019dec
MD5 72831104b9405d353d76d920d8a363b9
BLAKE2b-256 d5fe20a662763cced662b5d6568e55d23e9a9c3bf0c1ba80717d8de3463baaa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5953b77f0a8b5080476758369f410743b72743978e777df602da4c9eda2925c1
MD5 5288df9dfbc12b28b171126c3777c43a
BLAKE2b-256 0f4edc082827a7621bc4a3cf513eaec30a5d945f2781858522f58e9668372d3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e7d70a2c3a4519cdb1eacddfb5026990984e44d0d3e74decee0fac442d26c05e
MD5 8efad972075d5a3fb5ff896672ec9810
BLAKE2b-256 431ac33ee12a89e3a3aaac87c74bbaa34c303dc6bc6b58e426222413197fd2c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.832-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.832-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a89ee10440acbb4a17ed88d65b7d67d857ba4e1947270ae85661c3576d729552
MD5 2c46a274c35c4241dc848e8ab8436838
BLAKE2b-256 b909ebe4f4c4e98eb89055d200681b2726dbfaa5c5dc118fbea2582c027c605e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a4529926cf04c4fc017fbef0753c2f89987bf9792c2fc881b3063c500a21412
MD5 04600cb53d34baa5c4052a9c07761251
BLAKE2b-256 4231d0b4b00394ea9d45c633f48da19ca5e1cd66f134f063d9337fe8852c0c1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 072a87f2701c1c2a23da375773e8d651dd11961c34516f38d2cecc6c8f943a90
MD5 d4cae32f8c93340a6911dee828711bfb
BLAKE2b-256 cec003fc3d97f32f0663d8a8762104932a3e424eae23da70a2fb324a163c941f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 df5e0c544484a7fc04e9d5191bcac866c1ff7ab74c9af92514928efc86dba650
MD5 d9eaed8acc0b9afa69b56eb0d76c06de
BLAKE2b-256 c8e451a6acb238b71e18757ef88beba7f6e27ee217ad72723e1b5c458ec850fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.832-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.832-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2eed1d181b2b032cd4504cec4b945b8d07a74050e93d164b47aa005d7a971445
MD5 e83a5662b2a096ffe6a561a8c86aee9a
BLAKE2b-256 b41aeabc5278919bcf082d7baa4f4320b0f1b0aa6362b1685adb5f5f164104ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2abc518060c06f741216518ec021397b357639ba2254052b9f23ce4a670d100
MD5 2279aab0e1d61308d7b6728ab5bca7ad
BLAKE2b-256 d1dbd78d4d8046d5b81a89e2424d5ade4c16b162fddad4aa58551acc19eb8689

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f2a13838cbcfd8e323329d8bda082d34a591c6710f473279e83b4e055f579d7d
MD5 6da95200f8c12b42db96c1f3e87e9e57
BLAKE2b-256 38cd4f08a60bbcf820d88566bdf1454bb637781f23682533ed002bcc1d84091f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 71b41c86c906a653e8d771bfe6f2479464ab83d1ab296a4fb825916ba88c2e38
MD5 6f5b2e8255a5d16501c264a6de598695
BLAKE2b-256 b1d4666879feac2eeadf0a55a0dd1a770d8d1f4ce0c6a78d0025a4a3a0ec3a17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.832-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.832-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 437ac0e149555a57c06e34482d61c2b93c5129a7f3d20a77b42d7d6afc2c8b07
MD5 d8d1129c95b1c98d7a0d0d029f6e18bb
BLAKE2b-256 c4feb7de9a4dc7e48a1b5fdec81241dfc0713a520b333725ed401b5906eba5eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cca6a8abbb30f296a14682a337c8524c55aac6300fd8867423669cd6930d5c75
MD5 08f26ed30d525b67da58f576eba15bb6
BLAKE2b-256 d06e69c887fe2da4a144f009a69c1947b521d53eee7f4e96b26569add4cac600

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bf984b952d10f9face09a4a700a89374d391ef0b96e19d47bb9da35144132584
MD5 a0e31cb384ab9dd71bd30af165692fe6
BLAKE2b-256 1b4823f41e148cf1229c2091de2da67f9ec964e81b2cc50ec1ccf0d37481edc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.832-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.832-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cd6f6c7a591e36c279b0a4735a29a8e0c272adb0b04f825fe56d83bade68d7d7
MD5 ab31a7e5c9439775d5dba7acb30b0a54
BLAKE2b-256 3c6b4fc7c9269f8f393bc5a498ef303d57a6af1342f6168fa5039750e30a4ea3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.832-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.832-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f57d37719409521c5a7864f91d47832f07b6248a8c7f995345b50bfe8f00f75
MD5 0b747bcd24cefa3cd7f05691de962420
BLAKE2b-256 40e13f3c528ffe1df28906f7e6f50a3abac22931c8da253d42d2a3a8fb22b2ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.832-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ee7105e30e84b304ece4c778ce3e927a5209d8ccbf4d1cb831d45a4c044982b
MD5 c52e4a995ca8aed054e61f0601f90945
BLAKE2b-256 b9e4f6a91307fce57bb9dfdb823ae984013b7d565436685096e2e92722f86f36

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