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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.910-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.910-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.910-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ebf68f3524a2159dfefe3a99d14055cc262368bf8b1315f1564d4c7c0013411
MD5 d7a58d83fc304240f1589f3d7ad83ee0
BLAKE2b-256 397aa289aa3dd2081e06de59b833567fbeac11b7988c5e64fb4219f9b0b6e698

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8d1586e942bca72baade1ac09e71dd28da7f19dedca199eb689e7ad7396782b7
MD5 69f7de4f43a5b6f40051393c7c1cc019
BLAKE2b-256 2f9dd479cd06dd959701acd3bdb9ce2f7214a855259391bd4420275b8b0d765c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.910-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.910-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d7aa2c2db37a40c3e5c94bd15e34e7d0382236195fd1ee3d58b0958abe1609f
MD5 6ebe2f3d2b25e48218666b6d251b5e48
BLAKE2b-256 5f66d92701b8cc486d7a5cb951f0580e3fc542d0a231ea2f3b5f618dd8a246e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f67e85113d3e6c05f6860455a5ce4dfc1122ec5a2dee05f55e91cea436ccefd
MD5 d4f3f08b4fbf8295d3c1309498cae1f8
BLAKE2b-256 c18bd6ab89d721a27942ca381c50612b0dec832d1524d8c26e9c4e569e22f70a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d04704bfee6771a2b1819bfdaff7c0f33fc672911abcc9d8ba388a9a45d35e7c
MD5 21199b4fe2eba8d1d4f342115355f2de
BLAKE2b-256 d8597a6657868b65495fe8445559c0ca29ea109385d07449be1efd143633621c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cb71f180d857b4173edfcf02f2d6f67d8bec9127ae568bf4125c8527e99d3876
MD5 69c4c532eed17f7fe1c2a1874093e3de
BLAKE2b-256 11ccbc50f6f09beb33e8f4fa7a44f97830cafdb473c8fcdce4ede64d253ebf75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.910-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.910-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e0b79318b21e363cd17255e4ed9184b049c58e6050424cc5dfd4908ff244e54
MD5 8dbade9b86b438c160234c8037872874
BLAKE2b-256 c76db65ddfab7e93a88f324a736b9c1b22cb29272c77239093159de04c853ea4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e91fa8f41a9e68831229b5dd450023648e29f06013abc849ce575f665b0d3f44
MD5 6740134e0ea2e452418eef6fd1fc22e1
BLAKE2b-256 d4b48c59f2f00e5ae0bacc52bd4bb1ed4d3a9e0bea5594ca12e53cb3aa683bfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16d6d8aa886259238c8ae4ddfd6ed9f7c01b285c9ef2195a30f2259a7500f0b3
MD5 5108378fecfe8832d83b06c2a77022b2
BLAKE2b-256 7e1e4066b6f7fdefe08162c6febb19c385bffb7ef2cdd30dac70101039e685f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 60872ce09e99d01d45bbfdf94fa2ef38c1651fc368a4d7ba8ae6161d42dc2e35
MD5 ab529e38885541ec6b1c7e69ae23569d
BLAKE2b-256 06df18ec844ed96c97a65c709cd61a0db7edc9fc6fc650afaa4dda417673325d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.910-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.910-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f188122df175b0c7968aa16a0c4964d3fe5e35c94ec06017cd76dade7d61e42b
MD5 45fe5b0816316ac64ce2903712b44bee
BLAKE2b-256 053ef215fbea127c9b5a6541dacb293e0ef10cd3622edf9321ab024d87d7a91e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7605ef1200c65c8df82bf7049a213a479bcf681df08f685d64a81fa6dc09a40
MD5 607300e2fcec76968316391228ebb63c
BLAKE2b-256 cb4286c34aa3b4bd2872298016efe16949043f4cf11ff861fe4bd633c5360050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 814880a1f738ac6f073c084032011dd1915fb4e2417aad328a7e4cbfd748f564
MD5 5139afa6372201bf8eb52909fd00c284
BLAKE2b-256 e5cd1fb9fe46a2be61a0c88f2b65b30cd4d10302bc61f29be2562005618df9fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 246e1b4590366a6035771b941dbb4674fcf58ac2945f0d7c8e6e4ce2ae48e795
MD5 72c7b71fe3e639c3a29751c69f9858aa
BLAKE2b-256 1c28f1b54c31f09f2804c849c8387114691251a7d6d5903eba75017a3e444660

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.910-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.910-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c31dee2c29aa95e9e878401cf10f49348666302f99b20e64a7d0ddd086e28a41
MD5 c87f02e21829a1484093c68b0a5acd28
BLAKE2b-256 369f3e0775ab996fa511e0659bbd7c892b5631660257a44ae7cfdb250b960d9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c1213eed03fb35072bbab5ee77042e4dbd6e3e6d93e56f92c0f60f972749af1
MD5 bbdb4e2022f477b42d7f8ffe97b37d0f
BLAKE2b-256 3cf5243465159cff5431e022e22b0d8a64149743d875460c6cedc14f537a89d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7964d39ab9b95f012e836e090b79372962448046d0e8e3a5d8eca5a5004a5fea
MD5 8fc196da3209a09702cdb90c7f89201b
BLAKE2b-256 f6ea1f9fac77b1fd23c8122eb0aaa6af1774b951f4bbd9d83fae250ea1315a82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.910-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.910-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cea46f00a0bf101196d826eb700e64c757c6891e484af107cae1eb32b1a9a268
MD5 d9d6a133287c2397b5378d89e798eca4
BLAKE2b-256 4b0a555aafe2f9d443b310b58a314e5b7970fc21e9a663aafe7447dcc38b2586

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.910-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.910-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 662bef240f0b5a2e506244bfd18ce37c589ebd1d0ce739f98979ec2cbe183e26
MD5 4dc27b640fe427e0aa1e0ce7787b7e7e
BLAKE2b-256 987c81c188fa12e543a5d349920ed0f099d8088214a57c0bdd7610087fc1b68a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.910-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17f23db6de3c22a8658ab10dab439703971095304984d64f8af6e8ef871d977c
MD5 136086fc1ab2884dd1c521122793bf28
BLAKE2b-256 d27a41172ce61d8384f1eef33cca32f1239319d865054a57e0ed116055f456cb

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