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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.572-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.572-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.572-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0e796c0b87954536413ec566a17e56a2948f766495a3cdb650a16796adbc0271
MD5 6d57f2e25f1619bb8d8c1cd37b3e0973
BLAKE2b-256 6df1d7d02b6fd7a6e16044449d6b14ac1f2730fd9d36dd24db90292d4551c9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 29017d0556768848dcabcda3ee4073e8227e2d0b27010b0b9d02a14bd6b4ead0
MD5 606a0f082ba5e4e17d0e87ddedbbb257
BLAKE2b-256 b4888471871defcba5a56839752faa4960c0c40f8c89515812ce9e5cdad75752

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.572-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.572-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6b50abc99f8f8ebace568f8b918c6fad57914916e9593ec67c5e8c5d43ab313
MD5 2e850a04f265d6ca95291a6f647e0b5b
BLAKE2b-256 176736da9b9c565fa677e2fb2768ff98817031a12d17b2ca1ec4815ac51c77de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75dc9c1bd4f98c2459da10af2e9eb106f972935527a7a800afc5e5082bb93619
MD5 1a94468ab162879b94769d4d69e681b7
BLAKE2b-256 815b87695b5d62571b33512caf6060ead8ea800f5526c6ecb6a120ab5f34e7cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db1343abfa3cd10cbf248d33b60b1fe7cb18496d8e3e67622ac92722f0e20415
MD5 53d8d5aa6fa41e60889e37ed5207d5a1
BLAKE2b-256 f9d22e7e9faaba4fe36d20ad18affb8797c2dcee98c33fde823e780f044be90c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5015e56a6302b7e924a73956977fcccc66c81ef9199a298e74fdbd60aed7a094
MD5 1e9e7cad522a6d8762d51e4c38ebe1fb
BLAKE2b-256 f2bd044bf5b9ab10c8015b3d71c41eb286e12a649d277f7d2c7ed690888589c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.572-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.572-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a99041acc87564145b095f67602e9ed91b2a2ef74e54e75c46eb11dc154c0b01
MD5 0d251077e55a3bba4aaea8f1b2becf80
BLAKE2b-256 317297055654a9bdf087956153590493f0cfdb6367dcbac62d06b51a5a7ca036

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8234dfced4622506a3080c6e9d7e189c2ce11b038f6c06a43cae19952416d9b
MD5 02083ba7cfdb416ca3762eff89904e82
BLAKE2b-256 7613953fa8f1e1cac5ca74649969a8f97af27c55107a1471c3f29a83131f1f8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb88c881cf5c3e569f270ea9350d5747ca2be8288d3838562192778ffabc5cf2
MD5 c7843d42a28b7f8917e0992cd5d7b516
BLAKE2b-256 d74930da6cfe0adda94614c9493a9e08122223689b02c5d239b52d4dc83f85cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 519cb3b6148da44cf09f159cd2043c22343d1d3f0e8c11ff3abce0879c1d1602
MD5 508ca9a2ad07236f425ecae4b3d7d69f
BLAKE2b-256 cd35fcd261f610c919f814e751b08bbbdc33d4e7eeab8d0d5eef575cc3bff03b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.572-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.572-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ea177b22751d83bd019e794c0971820c90d4349d674a6d729df92733ec5d762
MD5 f9053d81b8586d0f76433aa7cbc54756
BLAKE2b-256 9e9887827c135160575bcf7553a117c9d267ae4f04c774605a5302f6cb41049e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b47287d29d0432a1dbbb0fe3cce00a54d3c1ca4f7cbdd34504c52e66c6dbf658
MD5 8fb60b32e0ae85d094c77606fce6cc78
BLAKE2b-256 5964ee01d8f5188f41e3fd26183cc4c99ae7cc886610d8b4abe63c08857b1e95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e28e4650d2d16d7c47250d7be82e91eae4272a3693794735bb2651cad19581b9
MD5 946db0cacfd6e9d17e331af51cad018d
BLAKE2b-256 2fcd08f716a2980ed8e4f2baa35f6b1b5000e21c878f321dd590ea0cebd91908

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0e2dbcc1f2cf592c7b629952001de130eb8c31031af0140b931854f8d6c062c2
MD5 306b905a1bca10b677feb57bb5192f34
BLAKE2b-256 07e7eecb70425e1f8611b1a4b22c715c3f989e4cbe49007884d9e8940c8a2b42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.572-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.572-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 521ca49af690e3e532a1986eade2eff12b01e24e2e0b4334b9b008c6a8610a92
MD5 7592cdce73e82fc9eed0eedba1ea6cbd
BLAKE2b-256 541ea2b0474d3a627a4eccf406c62714244267e92f340f04bd2e8fd3d4e7d58a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9790691e1174e5993f8e51f2405a595725f6ce7e0a76eda80c575740b72ab0b4
MD5 bab84879cab6997c0c2e8b0ba43d1c77
BLAKE2b-256 e54c2b54b0b575ffb2be2023c194d189cd6032dcacbd670967716f2f47aa63ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7bbdbaf403dd11b918a8a9850870b281c0ada3bf8a61a91162d427d9d8224b66
MD5 6f5c655b106d2b54614a25faed2494da
BLAKE2b-256 7ac93ecb86c99161363b6d6ecf6f340f8b59873e52f82820f7008e6e7bcba219

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.572-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.572-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 970b25088268c6d4c98c5449841c1cc29849e3fc502e361f684c4e7ce1d53d9f
MD5 0c9509b7ad2f6721a3042f16998e4c20
BLAKE2b-256 f4a02dd7d28d0d08f04f0a343266b05c16fa47993545074260c860853ec7c669

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.572-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.572-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc61e79831011f789f782a2454bf572c05ae040be6c1962eaf60bfa12bc3ad0f
MD5 1143b31278f438ba62ab36409853d568
BLAKE2b-256 18f614670e1877449bcceb45731f69624b78d5f5d0c32e927332bcee5f8cf5f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.572-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae6ce95d83da7a657f67200fd19b89688b2ea03f4bb7847ede88b0bc5951a28c
MD5 8461319115439429ee2efb04b8caf761
BLAKE2b-256 06298d5402781ed1ad2e76842d640f3d7fa90f18dfd02a57c719ffb83c21f47a

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