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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.686-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.686-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.686-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d1269c4b0b12d56838a87ca276412e6047f927279b331e44b10e9519f15faadf
MD5 de17c9a52e2f17ff30235cf131dce6ac
BLAKE2b-256 cd2b11bd5433557714e2708732c45a26ba7ecbdaff2f19c6f4b3b157674882ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 107f8b7aec88363926767576b511b458b53d0fcfb28c96bb164c1b7c237f9c97
MD5 b4a2a3f70487f50a5a0c6129d0c1d483
BLAKE2b-256 14ef9b3165fa238cec00606b421856ad548e6b79a7e01c2461876a8e8c241690

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.686-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.686-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d3318c031874111af731962e51e00b60957a28a74ce12cc555f6a6edb25ef0a
MD5 2b5e38f0f8af8e0715de8355277dcd4c
BLAKE2b-256 1c9ba277a9240860c1d697e0c88a9405c92a9cbf6de3afb39cc80a1e34e7a322

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77c6f690cdc4a0ba26c236724410b9af3244ddbf393644115047f68e290c4074
MD5 8ce802975a0b063a5e68363c396e4ecf
BLAKE2b-256 c5858873520a3fcb694c4c8efe3a6e2744af6f84744f39bb9e3780e80fd02c30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13b24e53d60e024aeeee6087aaead35addc3f97e13b299a042d39552ed9e02a6
MD5 128f7cec5b056c724ded9ac2233f9fbf
BLAKE2b-256 1113d84c0f9ed10d01bd72c62f9c7135b4f13d90d93ea5e95f71e9c7d49f3dd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 055fa75617ca379b9f6036c38d05ecda9dbbc6151fa6fe707c0480c9723349da
MD5 243c364a6e315f30522219240d7058f5
BLAKE2b-256 3b77ef481517835a4607f2e42c1840ea7a2c1a4f865a5f92065eee251d43c07f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.686-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.686-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39798e50fffe6aac7174989e0987516bc50b2f9de5301f4cf79a1a591b6b5e43
MD5 7d197ed09cb3cbfcd630941b76d7e429
BLAKE2b-256 e3556da573b95106945b269248cd8eb0d2ef7901b522334d952aacfc83ed3ead

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9de9885830e098c80235042cdfc1613e46916a1bc94ba7c89845cae4f2f447e
MD5 a91c06aef3242993ff78c83fc1e267b1
BLAKE2b-256 28913c4cbfa0b75b662dca4f262d1e08b8245c20112b604840f83f849112b800

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 557fa07acb615a36674adefee7a111e9a9d69c11f7b5802ebb0e727998c6cff2
MD5 d0b6b094fc808af8639bafbaa4b34541
BLAKE2b-256 3be4f1fdaf067e5a356f962ee1c8238c12a899c5682ef276c080726811b7cb9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1ddc6159bb431c319c8422432828593eeaab025918af0399ee6bf3cf3ba4bc2e
MD5 60be17351f08c7dd384dc32e2c792624
BLAKE2b-256 b9b44e7a4f414717773bc049701a8bd986c0b32895426de53faa86d0a516f28c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.686-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.686-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49804113466a245192f8799e5b6c94c3deef7965f06b30555b06cd1d3550a0b8
MD5 2124ff91684e8dc8ae89ccbd7a4cbace
BLAKE2b-256 8eb32c4886e2ca471ba0be51c8ed9540b05629b199883ee0511aa2d95a8937b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7f91504c4741bd6b7429095a67b3cedf1c339449613488657f81e18b2fa8ff1
MD5 ccee24fbb958e1510f64cd0e9ad6d721
BLAKE2b-256 57b4df26b0063d59233731a1eb8343ba119084667e9f665d5d433cc039ba8e91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a788eadb591c1c2cbed5d81eaf23c2f511dd0dde66b7d9c878e4c937a7f8f32f
MD5 c3de78bc3c1baf4adca938850245d82d
BLAKE2b-256 9d203ca4c3ece1e16e64aac67d8a360c5441cb5648a0f4b48c57f27414b46343

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 de9ab6a0a3d377442399562551b9f909d624d5e1cfe0634b6f2c9142c48e4f91
MD5 2884f4c593a70ae5a28ea74d7b0630b1
BLAKE2b-256 86b81c7c13873ab5dfe3f6e4b46aa86fc28aaf7c8a554ae3e48c9fcca168a566

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.686-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.686-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6632a1ca2e2e448223e8fc24c39f531cc3059b56d1c5692ad811e55ba30a00c8
MD5 0f34251f2153b0113142564db3627953
BLAKE2b-256 fc6d4af43d6571eb2030b952b067eb55143a9153dc9f4612eabfc70a5fad28c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d10dcac0dac76bfec26220ffa3739b01a54c7c9b0379880dbecd5e11dfbbfacf
MD5 22a03da52d2fc504112685da0e51f910
BLAKE2b-256 c54410c24fe3777722eae44395ca897bbb4ee9a22af3c3ddc3dafcedaf96cda6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4a13da17e26c904ba919ba9c65f0e77555eb487861d2040d124fc1b0ff583860
MD5 d50b06cbac498d4d5f76542816fe3b58
BLAKE2b-256 d9d62799ff1c79e756efb17378018dc9395735d04cba2c8c1865ec527ae9e476

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.686-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.686-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dfa59beac83f8b22ce45466b22f49ce29e8566b68fb1d23ef535dc750359ace8
MD5 d5f66a664ebb2ef75f50335cd6d958d4
BLAKE2b-256 7f0d5d23177187667b4c4badc4ff51e19d71bd9c5444bb5acdb59440daf91db3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.686-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.686-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af19e93f8a2ddb45336a887c147bcddc751629eb14320cdc8860e8a5a0988b17
MD5 fc53844419e3ddd7d98837bb9c80a746
BLAKE2b-256 3b931f791530efd62ced7024b6f886b7c5610f7614ca8661eeca5fa1c286a2a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.686-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0809c803b43989a5f76705331529420606bf4ab8a83c1cb19a5a2bb4d1bec50
MD5 17501873c9ae50b9608171072679b046
BLAKE2b-256 960a67d25764da92e47ebbdb45173960ec3689698c4eacdf2875ae466bcfa034

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