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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.237-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.237-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.237-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e9c5d0854f2b8034a6225d6f9f84408f9a40cbcc3a20b91d0ac7df8a8238eacc
MD5 4e4dafb04516900182f60522fa69c3f1
BLAKE2b-256 406ec313a66068dd69118effa05421acc3670e6fd08a2918a2602db88d975039

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a435055a78bed007e67137e88698a32f7a1d4c36ef9d918c6cbfe479c98b88bc
MD5 c051a6b6c36c4e9e0c1c52556cb02590
BLAKE2b-256 be4ecbefc1e0a582d27b4c7707503836351d95477f41a0bc8cc4ddb2e6868151

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.237-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.237-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d73c03e357f75d04c63a358ee038edb4101becf7208ff60e3fa6ca35e67853ea
MD5 12112680b55c7882e737b0933f426448
BLAKE2b-256 7f1481848d9cfadc8603e84f6cc1f1c9c7952e3b5c52b2f780a8dc19eab01dc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd75cc6ae230f9b3c11946a5334d17a2e4540dc9266d11f5ebefe3ddc999a70c
MD5 e32759a0032a9591be7cb9c456f7dda2
BLAKE2b-256 9458a01a6dda79d26224aa4f6d52542d01af03b35a98d12fbc2e9506e29b8487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eb669d9b1d423f5484a59a46201c48d284a24948c7065c2ed068160c987fae82
MD5 b86004f7b5c23c063fecf4eca1f24ccd
BLAKE2b-256 272c0bb93c52fe58ab753c4a1d937df84586d8ae96c773450ad6604f39374290

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e46e4c209d7380d9a62b639c80dde0ddcb846048a78f5e2253751c53e3d5aa2b
MD5 4f5365d8dd95695a36804049b6c6e694
BLAKE2b-256 83651bb7e7aec177f58dac98d798d442173cb13b0d1d8e3ed96817f702eeae28

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.237-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.237-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2ea5f1ef40dd119d09a02341ef8c2aca7e6ac8d564d3039b4c405c30092b65b
MD5 7406d646d42f7638b8ac5516f7260d68
BLAKE2b-256 63e10d8c777819ff014cca7eba2b9e9c650ad035e2977eb6f08aa015974cd90a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bfe01f47818902d33b7544a9fa89e21b54b70267508fd963ee1296816c3b090
MD5 677194f81ba8c7aa4cd582eae0c357c7
BLAKE2b-256 8e25f9d73a7b0a9e203be9fa6e2cda6df0a5c71ad4662a12c1b83041c417bd58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fc5be5a5d27a237d064befd82d9d89028db0a5cc52d4a2557db59836934c4fd2
MD5 25e9f4809959527ecec05fde60712e99
BLAKE2b-256 4032a5318ebab5c444e937137129eff7beb1a45659a2fe9585bc7d32e8bd4606

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 198e072a975eb1d29be4082e08e1ee676c0ee2a52ba83a2b54e094152e6e1a3a
MD5 6ba6d08d8fce674038c21a9ae8603fab
BLAKE2b-256 ed6b4a44f40e6406c0f5ac94012b6651b1800b7265f9b71d31655fbd9e096ff6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.237-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.237-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f400b9bc4a97074dac7e3ef8d9911467f63490af405fd65dc17a4a329eb56cf
MD5 b339bed27153d554cd9461ef4c459d7e
BLAKE2b-256 d0555d4b7f8d8aa9acefec7dee8ede6d16e20d0fa741123f77b95c25d985ebd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ac1d4eccbcbc6a3f36e959419e01227eadea096bc74ea2054c77f9632a9f118
MD5 64c8e955eab945f5109b5b7a512875de
BLAKE2b-256 b94526ba566c2dc52c7d10826bf0f29d26e4602161a8e32d1c59ffd5386c1db5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6171ac7a1b1e471777239653981d2da40472b362c906ac58854f3bea7bd93684
MD5 0661a5f7d5351d48696bdb2efc2782e9
BLAKE2b-256 70f289e35a32c9140535d1ef9b1354946d2ce297f265ecd4e59032b8f25da402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cac71b6ed486fa2b4cb15ef71d5da4d0bec0b6e9461ed4fc0d18342dd8eda72d
MD5 1d3666545889b445b978fd0617d2cc52
BLAKE2b-256 2ea5599f5253fb261faaac83e5e94147ecdb4b3ea879a6887380d48dccdbc116

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.237-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.237-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f7521c47b01ab97000950210b77813a5530c565b16be3a0ec4f43f1bdb0b08f5
MD5 2862ab5a13905680ae551b37c43918e3
BLAKE2b-256 08b407f0ebc205e9296792ee5a7a9c929957f3907f59ff62ab1ebaa32891bdb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a19c35e129aeebb590053b960e792d9b80966a2acf3991f8592f6a1efe857f7
MD5 4f069870959688641b2ed95a137746a5
BLAKE2b-256 28a22a6e3085d6c81743d52649cfde258483bf4fa3d4ed92a98b7006728e576c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e29575f9ec8a57d75e9a75d330137645b4cd245bcc9b1fb2c1f53d8ddb803017
MD5 579477b3a5b09268e3676d491004bc52
BLAKE2b-256 ff63de53f218013ad76e7f556e0c5d16fa77abcca0a9da6bda07cfaee11c68fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.237-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.237-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9a44833baf924e24b40765c501567fba02c674496a63576b8fee42841b704058
MD5 f2b96c1427932eb7fd9cd20472fdff3f
BLAKE2b-256 81a08e8e07ffac1972c73cd99c1abed83647ac7d8d90670b35098f5f404921a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.237-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.237-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a6da882e952310fcfaba58fe0771cc76c159b5db3e08e0a2c89a74abc2fa3a6
MD5 487bd81ce5eb7a9219a4ae88fb707086
BLAKE2b-256 b32a3dc210e25809fe691f1a2d6493e6b598d702f0571c2f920d0798bab177c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.237-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d870fc2f03280c5b0bb9edc40e1c92b1d074e7c3a3ea899ec5e410bc3e311bd7
MD5 0d36ec04d874fa83e1fe396d74e11f7b
BLAKE2b-256 018cb81f2f6d820cde993a3d21c32a923f8cfbf2ea488368a25258e5b1c4093f

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