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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.419-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.419-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.419-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1a17a637bc9a939b94b73fb6bfbd2f71fac50e7bdc7a3bb3e346a32e9009aba7
MD5 3ff1f3324821e69ad9fa4e08bfc40fdc
BLAKE2b-256 26cecb9645e482bf48cf39a77608aa2a94e36780b023e8b99b5a2ef496a27517

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cf20760a6caf91d24cf885adbd3603ab89be367006a001867b89076d1a2d6ebd
MD5 7d72f6b48b2d20d9fdb8ce017d0c9974
BLAKE2b-256 aadc32f765727fccad2a3664614b573b1ff6cbf1e231c33457a7575b42806483

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.419-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.419-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2695ee0ca9bef1e411315a5429cd570e51069a1f907672ea6b0acfc00c5a4226
MD5 4143e4c44e72368dac3de3cb63da16be
BLAKE2b-256 07fa51941d35aa1271d29a125b7547cdd7e2540eed39f27338e88eb40d302889

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 406a35bf03e0931660e322354ff934808cb7039575b40e38dee7e35618dc5591
MD5 874b6e6750504190c66f786e1863d008
BLAKE2b-256 bec8b80a0f3dea0adc7aebe6c0cb051e26b50f49ca4e54a42fdc88c34c4d7730

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02103ad9e8b326e801502cd8bf952523aa3990c95030644d7f0e7152bbe6ae6c
MD5 017e4281413c61e2bc48eda0ab125a96
BLAKE2b-256 a4d292a9561ad9a6c16e55cb353579cb913d171c785767eba69d2518342408e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d01961fd6929b1ae37d826f69678556db5aa658c7d90421ae20cb932d5863c4e
MD5 9f4b89c36b9880d9ded721f486276fa0
BLAKE2b-256 bc212ab30845c9276a1012b343ecb730f24cd8a6c0ddd36e1ab1742a83ab9141

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.419-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.419-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b12d3f10b7fd398cd6b60b94eb5650c0601f50b91a9303ea6c5ce4add3198ef0
MD5 c1512cee08856ba068af1d352bd0de94
BLAKE2b-256 b7939ae7aca488fdd95e7fe538dacb7d60ab39db3eeb2d46cae995c2d69454ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be93758d2916b9b6d0f45ead258b3ab24004249492f79f5d0cb4ff48dacf452b
MD5 3ce61321ff3993d09f07ff16906ece57
BLAKE2b-256 f32ed95b6d5954dbc7bb79091e5eceb8aa9dec667a65130ea3b615a18bc40b08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ca5e9b5226410ded774e4bfe0d2a24fc128b295e34ac28e2ea8375ab6ec09782
MD5 b000935f0a5529041d8d950ca83e681e
BLAKE2b-256 58c378b836cc46d9fa1aa418c9ee99d7c35f59a7113fdf60850d98f356800193

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fb373325cb14da43e44c3717392426f38c98c606b2489415d858da51f1a21e5c
MD5 469cfd251e59e922863bb1d302b44e49
BLAKE2b-256 ab81a31b04bdb1936eca6e7a96a0164c537a8f332bdea3e142590e35fbd7accc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.419-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.419-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ba9bea9185aea7d8c1933a005ce5eb5488737b2c91e45d6142f1a30ddc6e95a
MD5 6f231e79817940b3a5c01f8e30376880
BLAKE2b-256 6bcf7ce917318ff66c6c6895f47ce066f3ea76cd7cde558fe347416a5489e8a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94b8d76b6f814f8382e469f5bab32455d501964d9e669c8f10dcf2c5c7231210
MD5 c378cdd3807caa8edb17695a410955f6
BLAKE2b-256 b695fde8e7e5ae09038dd98c60cb334ea1d847b881f152820076b45a29d2274a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f726c62a0e770f7cab332e6b1f1b13036a9b4b1c22f5ad37543b7ffab9673027
MD5 abc2519a5ed154f4a81803a993b4bb90
BLAKE2b-256 803bfc291042ef7e215ed07d0bba11953c9cbbc5ecc6d94491972ea34df994d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c3600a64234e2e2843e2016e02fb88a798ca693d3582285bdb0eca4ed43cd78c
MD5 2f7897badce41202e0e4a145c12c3d22
BLAKE2b-256 c829262fee89df6c31613dbd0c39bfc04d2eb132d0a569f639f5cbac6cb61ab0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.419-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.419-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ba7eea411f445292e80a2d3e786e7627ebd74ff5481ac06950d94ffc1d0ca89
MD5 a07483c7169d069587a7f6e3f1826fd1
BLAKE2b-256 758a37595a2046c0f69ac4b126a431659a47e2694bf8f4693f94669e785e8012

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d465f206fed3f9500b49a3f5d0526104761a8cd44a9545ee4f3849e414fe4d03
MD5 b8f843e9af33b1913fb5b0b7fa8d1d38
BLAKE2b-256 7f803454ddad5547bd2c27cd3e65dfa3a2a55c6c3f4bf9f10249ceab87d3aedb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 41efb2585f9e870f98689f37bb2fe5f8722fe6173db4b35a9626d125b80ee5fa
MD5 bf33bebffc88bee933b8e5aef50fe73a
BLAKE2b-256 fd92902e0db6cdeb6b910f379b355aa350318c2fa4de9149c532ffbb39a8d75c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.419-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.419-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0ee814686cb321e2333a72c0f1cb5a163f56f3c2931ef138f67f9bfe25d7ccfe
MD5 5a7b6f84d7aea8019edf4468f86f7742
BLAKE2b-256 a763e5921e79d5c48b5aed5777ca0ffc3ddffb6aaf12c845f44b718a1573d4ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.419-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.419-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eba96c0d8682f524d2dc5a1c7af9798a66c6515d2d56413a84f9e970b3971bad
MD5 c2909a2663884150df6ea9f9cdf03547
BLAKE2b-256 60d81469581adf6543dab97575e6cecf8b0213f6d9ace5acbc2b9ec23fd0186b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.419-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d65d71f65b12b38a28e074cc5f2da01da57b083c32500d03d61e0534995f5ec5
MD5 e178979ef3c4c141ea8b8fd2fbfb5e3f
BLAKE2b-256 a2d43614eb37be868c023e573b96ecfee474da4de628bc8c252038319e6317d2

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