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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.855-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.855-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.855-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9c43ef315ea6114126ed9d44fd31d77d577bb645b5bd7d663fa479c3ffa754a7
MD5 6947243a8ea4bb3571baf3906d8e9389
BLAKE2b-256 8a648b0b052cbb2c1bf999744dd972af9ddb14c6993e376622b0cbe333285ff1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f5ad1d12199383ba2c1da25fe8108e962a6964e08918264d5002991fe1161191
MD5 8fb9c651e17b49c6d40bba0cde8e737e
BLAKE2b-256 06c40cdf6e56e998d2979be1bc4171bf19f569f9a7033b234fd381b4eaeb1e8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.855-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.855-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 147ba0abd08dcd702c5b2d67f75927f659b2c8fa1ae97ee6b557a8de1323b3c5
MD5 5432e3178936eb9c6f85fbe11fa20a4c
BLAKE2b-256 cad33932fc9683893343472e7aed8c71510139be0f67bfc1c0c844856304f5b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a672a40dffd782c0b4db3f64e12e3097b8ab890d091f5aa33ae67b8c46cb91a4
MD5 4165d3cc50b0e7ad8c427179ed9e4da1
BLAKE2b-256 7318c9e6792d08053df1108ededa217e4a658e5b6fd9929b40f46b20c476cf3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2d0b6fdef3d056c9e79315bf887d914d13c966a7ff9f4839e785e082877381a2
MD5 e6382663d5b5ab81480e853b393c2812
BLAKE2b-256 3fd65ca825e38c2da2e684b55aece93b2516d8e370a6fa8444aec77b65a1dc62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9ce71049a02e692ef7458786a8b893540ec670ce784d96dcf6e3481c279dbf62
MD5 7e35d02612c938b446c0fe7b49b8b8c5
BLAKE2b-256 2ffdc84e13bd32e47874be81e58480dce9c933439f60085d2b568b88b6157092

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.855-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.855-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9b4575993ad238ce3941e6166940a6ef5080d7925fe81c12feb00fc4cb328b5
MD5 ca74c305345a2f056e619ca5fc260f57
BLAKE2b-256 5ab4275ad4397fab5b420ea1f91b036102cb315d4f27cbb3b14d60d983799c7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3c1c9dab0285135f7af1acb143fc837c7fe07c6010935f1084032e1e8776252
MD5 c806a468a39cab3600c210d74cc08939
BLAKE2b-256 29d8250643c292252e665f1c0a9f95a40fab5ee197bcbb68a57858267940d055

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 884c58b8a0c4044cdf21a230387791072a29667771fc11d9a8f93691f42034c5
MD5 494447a63021ab03646c1cf86456e3af
BLAKE2b-256 b1109b169dda14b395eef4966df4d30bd2d049926f423dbae3c5d3cc131026b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 80f7b254e9d2ab76c735b6ddf6723cd67b86f18f96cd04552ec3c156c90feedc
MD5 171bc52327aa7ed8247ea1f924d7e009
BLAKE2b-256 605a4a1a1ed0e786033c701ce641fe099664367d5a1e53d8ec4575b0b7a2e122

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.855-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.855-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d39d7eff7303dfd87c1f9391557f74d531aebc7eb47e5bb295cb730adad20120
MD5 08c2c721c97086556e64ebd724bed8dc
BLAKE2b-256 ec32b1a9ff64c6a929dd98500c0185758525e56ca937b7f56778abef7c884842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df9675ee9e7b91d237720b3888b17a1e11f1b4fd865bc8ecab5cc6d598814789
MD5 2b7a757bdb39fd4674197b307e5358a6
BLAKE2b-256 82d51279f5c999b919573ddcbc37be467378558c0fa440ec6d1f75f28f4cf461

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 73d13e338ff863acd1cc3619693dbcb35c7e08225f483d1ca8fdfb67472a1192
MD5 8d2d81f339ae222e1311ae3c0704090b
BLAKE2b-256 75c153e1185688e9528438b88d7c290d2d7821fa3237c45c109fc5af7ec85d3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9e4565d0dda78f044b2aca842ec4fccf9739abaf002a0db1a2c985fa13b720a0
MD5 0bc18774ed93208df733b417afdc6e77
BLAKE2b-256 346d73e945eb85b4fb9ec38338da35a7a8758f4158558b029bb9d5cafd2557f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.855-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.855-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df9f575512f7b71ee174c39805eb35ad25ebb91748604ef4c5410f23f86c988d
MD5 da2e8da8d08f2df86519fab480e82443
BLAKE2b-256 e3f7bdc98970dcda9fe121742d7a769ad6c61082b2dc422fe9bc2c8f22dc740a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8be5c7a33848ad90ce46d0d699900d9b6ed074fc8d56e5b389a7eee3e933ca4c
MD5 e5db8e3161b8b9a9113781e3a6469f48
BLAKE2b-256 8f9697f9dd764a4ddb4ad1c28f3fc8822f4e0f1e1f782c946e94438e23f61c04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7fb674bff223ba29d8f6f0d92e3ca1bfa97af038c6941466723fc33398b0a7ef
MD5 df3a4a3b4dd05bd98ad0221442e91833
BLAKE2b-256 524fd3eef49280ff3bbe76f14c15f6829bcd3d35625b2a2c5436e34e299211de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.855-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.855-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 94acfa4483ffb720e0c9125cde97bcedb2713b89ef86823b3dfd984ec7e8170b
MD5 7d5aa5965245c8cb17e6f565385b9cf2
BLAKE2b-256 a3db8942fbe5d3d24a2e76ebfcb45bf6bdfd2db5583218991a268ae67d79f713

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.855-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.855-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22acce1117c7f2a7f93b2fa68481754a52c430136376053e9fa4b77f8210f886
MD5 773ef8a90a55dc0c5ec72ceb211a91de
BLAKE2b-256 1ebf1ad9a076087b842aa84fad2117fb07e304e71c3bf5948e7dad6ec37fe115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.855-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9401e6d9a2c2cf2a5f2d641389f800153b16375a2cc5debbb6003f19c24239c
MD5 242232d572d01cb07f540411a752871c
BLAKE2b-256 b8c02f9c6578782959b8d10833d1c0ca2b60565e146cafd0edc8f951c4c203aa

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