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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.707-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.707-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.707-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 872fce0266e3035dc94a5ccd86d224c8667064413975a9c975f6f42205742975
MD5 c2c8e9428fec0ec2d6e3f8a8e6c228f2
BLAKE2b-256 935213df267b29618376b6208f11b64c38f725595c67e4ac48e30bcdc8287389

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 77f1dea3bc70616b0de6e41905bda2c2a986a3cb7ac62376697ced27dda69e73
MD5 65974e661ae11a36493de726d0c5e91d
BLAKE2b-256 a254442992d6cabcbb66ef46e0b9127d7554b7f837efe42e91b96ed62a05c268

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.707-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.707-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12d66dba63824122b2f540c11a3fcbdcc267654018804782b9c7b24cdffc60f9
MD5 c7986ed2e813c43ae2d71458c9eeb2df
BLAKE2b-256 94fe0e09a80aa84310d9eaa0b41500befe572c5883894cde03ec5077b523ff8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20f031e7fb09de64110a6a919b770a9b552a720bb79d384a49e79f2ee93b4e2d
MD5 ca243863c332e3af063d6f70a9ce51c4
BLAKE2b-256 61b5b8731d735fc545b16329b7e99eb69100474123e15a66e2a98775fc26fa6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1b54c6ccceaba149d275edac5a28397386ba5bed1628178ae2206c737705ccc7
MD5 39611c5e2f6197c957a4640d5fdf5fa6
BLAKE2b-256 51155c647ee360e3cbc9b7a6d30297b705a2fc09170d5f2cc5ee9542019bc254

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 af37a8449fea26fd9c60a3bc963256dcccc4e126d43edbaf41ad5710654ef038
MD5 2fae18b91dd7778381ec0d43499e54c9
BLAKE2b-256 3425d608df54a6192854dbc2bf90b9f1ab3d03873da2c3b0bbb305faf43fa88a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.707-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.707-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9222cde3fbcbfae7206a955616c9c9f583fe3dd8e7bc8335c14b9db696a11d38
MD5 28c63750b44033c18b22243c6f8b494e
BLAKE2b-256 8ff6054336d581dd9dc06f90795ad57cdc8dca9d3904eb89e4dbc2d2ba05ad74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a483b50b26b9b2d7e8356032f6505bccbe4a97749617f8f0413674c4d97055ec
MD5 3251a0ba76058f490369ace6bc59e6b6
BLAKE2b-256 9439a4b5fd28fca3a32d0047c243b2644d70c9f255099c83b09efb9226da913f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fdeb6bd54eaa0becaa816f4f8b118f38dd2e6754d5abc6d22be454133c7a044c
MD5 1c5acecb972e0b3c1c32e0972b69bd5b
BLAKE2b-256 281970f92969bfb33a756e88ad5dddaff7599f281de76dcc49d1f3d2aeb611ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6a9f756c07a0eae197f25c4b2b5ffb240a79ecc981ff5a44d4323ac7290de5d0
MD5 56b9627c3a72389967b5b4e5d2a5efbc
BLAKE2b-256 2e8d0075decff3bb974a0e91740fda78e473a2fa390d4eb5923c837d7a6f629a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.707-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.707-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75c26bdf611625ea7ed58fc2171b47e1bea5011275db52af84827eccb78ceee2
MD5 c08822fdfde4a85b93a34b5ed9bb65ee
BLAKE2b-256 0bb3ad9628c2b3b85be521f5cd2b7c7623c51a8316158df9a6e4414b78f47b93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94808a6d43ece5fd22b10895961d1f8bce7d9bd8e425b0cdcd7803a5c5c44a44
MD5 dec90040b60116ac7a0d6656f5d74332
BLAKE2b-256 304857f815d7f0caaa37314ed2beac819bc4e4efe4820bec0683589192845c04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3f1b613c5bee389bb4ab714ca3af98483135fca5dadf0420c846546737bbbb9d
MD5 8a9a58b514e8a7b5b925e374b04cf789
BLAKE2b-256 8145ca2166ea122867a3b96393c002d0c6b9d70e3faf188546fd5269085fbb4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0558f976ecfe4551b424d9624ed1c779881be0a43185c6f7522e42a8ed86f381
MD5 147a3e20762904c49cc342d27015c4ed
BLAKE2b-256 ff01b01d84bb0e207191d6c06602636271ecbb10e85565f6ddb8a6dd4a10a2d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.707-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.707-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0171d88b0f95161add25e09b0c3eae526d24807df833cf4ae7307a5b3452a0d
MD5 39ea3225795eb2c32868ba0dc1f1e52a
BLAKE2b-256 b16d2d3a56aa746cc1b0c563ac625660a6c2275fc0ab30637e21e50444aac0cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87b3031e3070c320cb226f9ae931d30da1eeec5646c83d14f076209f30297a0f
MD5 689c93d89bc1f0fab9aa7085fbded398
BLAKE2b-256 b3ad8999e9dd30bcf30da13c0a67b469d42e5e38d625fda50bba1612686aa701

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9c08b0c7757fe6ff1146463eb555d100974235985dac4bc9b106369c76bbc78c
MD5 ab811cf20969f1a48c4fcaf57132ebd9
BLAKE2b-256 b9bddb87863a965feaed17d821ae94ed65c859d18b13f678c8f6fbc8dceecc53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.707-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.707-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e9e2f8650879d8296dcae068a0ad51de5c7eeedd981ccad04fbf56e7cf63c03d
MD5 aea413ec5ae8d88e68d7273fb27ec37e
BLAKE2b-256 0e8239f5a908ba5dbb2f4f55edb578f217035f7b6f35ac4d9bd51da026483d7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.707-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.707-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 318f10475f0a22b05214014ddd5249ddd67e92e7a701340753e0449270004c6c
MD5 fe96ccb2ecda67d21112ff588245799c
BLAKE2b-256 0608e96688469a844d4fc313836bd79ab172e5a5eb4263524d5c427312176c47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.707-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17e9a77db216c7aa0277c189d26afb0172f059ddfde4e5c0d4952fe2a430d2cb
MD5 e3d9e4d7cb611b5ef04b93f0bee4c63b
BLAKE2b-256 1a353c8e30bd6f8b90bde0055351820878fa0b7cc7f3139efbd4bca7018841a3

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