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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.461-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.461-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.461-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e569c1940cc07f3b53308d361f34ac5f1a5d16d9058e0e0b64d58a47792137a0
MD5 07561d9dbeba375aefacde1e1afbe170
BLAKE2b-256 a3827a92eeb8622990d228cbabe6d4dd092942ec9135db5945d62fa719981db5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 39ee0a5980af6dff23e873e5fc602289a11457982330c87fb0191ed06653c742
MD5 a690add20c548804f06c36b98666f55f
BLAKE2b-256 66dbdd84c4c1e2d0183c63b475670795350c7e82a7e7e1313865b81779e2fa87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.461-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.461-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83aec75d59f284b7cf5d9953c0c363a7b4430fc2fe77b4896a49519ea64a120a
MD5 75f6ab8f3637c118c815ddddc9a1af1d
BLAKE2b-256 87eff113c52b58e89189e093e8bb8123be5846bef4b54169fcad310f94e74017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5780be637c4553647af107e05f1f0e4b12557dd665103ad0ce990411dac8641
MD5 d0bf3bc1ada6fc03dcda6a02fe95b4c9
BLAKE2b-256 6205b55ded895d2df11c8225ca566defd6aa91b0e3ecea8f80c85ad376045b6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1eb27b52b665db06808e56c10f80da95b965a2dbd72f381d56e53723d7ba628
MD5 487c9d10cf555c48b043da7051726ccb
BLAKE2b-256 c0f68d90fe1bc91888fd9ee9cd938992c5a67d37d4aec311086d157c8e2a40b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dddc1aad55b51c60748b854550df6a0e559a22c3fc811b08b1ed981913e108e6
MD5 1b92c751092ef4363bab2b64e397bb4a
BLAKE2b-256 5fa5ad6db274fc59f3de8be3d4c7c1655431182c8c964193f6b3a769cc2258fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.461-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.461-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9cf6a3d28c264193f0fcff8bc4e3f47c91c31397cff51716015e4822b98d817
MD5 8e19112f49748fd24c5bc267a8e796a4
BLAKE2b-256 704bcbd22f6eee501c1c4661c06d57f71a75d56939cd2b532020c1a299634840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e011028fbdc6ea51552f9d023b6d2541d5c84de8cb5e23d4646ecbfd81f5fd19
MD5 efee977fd5323fc0a5f77d9562b505eb
BLAKE2b-256 ab6954da486c585e721b3b9a78e9fbccd13d9fef4bd7ffe61dee53ac02048e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9e2b5811728a12e57b3594c358eeac3c4903b073b63868d626b06fb056b6a602
MD5 f921d78e3be19333f3f1ce953d8e3566
BLAKE2b-256 b89a0e800686b1fc45108f17b58925a5e1be50e98ca650017a59c0202594144d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c13380baed3f47f7530e6da9e4c113846a7f8037056ca94cfe5e0e3070a05544
MD5 2594d36a571e0634b109b8798bfc7da0
BLAKE2b-256 24995bd2b14e8c791522832196ad7adc3ece15a3eb28cacba4e04499b8126f26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.461-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.461-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36286e24a5b62f199ae46f02aa816fde665fb76d59b7f566eb914f9a0dfe3e2a
MD5 ff58b66e739604f2aca097d46ca9c8fe
BLAKE2b-256 5d19fe38ca8bb0703eaa3f6a40344cddeed2211a6b3cc5b48cb9f90974989e13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f82fa038ecaa15d5d9dc47ee7e22a9f1e2e2e1f7c65e150f7bd9926cd53d917
MD5 ec9134b1c1fa024e8d5ad618ed908ad7
BLAKE2b-256 84639add610f6743e42009463c8b4bf806431a3175a5806909e7bb60df353af7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 17f7a14c9e331b874eb29ec3a1e937748ae699636ff02b7911e368708b597cef
MD5 82e2e71fc85b5d72e6786a0247ffd432
BLAKE2b-256 e4fd5fea8db185f206c6866653fd1f63d635d4f65c3da63921b2fcdaca341c22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 941047636b4f0f47e71b6233556c908a4c408482ccaa3926c0abeae06f747005
MD5 844bb65a99c68b0a346d440d1ff90e37
BLAKE2b-256 7f83ee185f006d9683ff218c6dedb414277d377cbfd594385c1cb828590616d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.461-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.461-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efa76ac5ceb3bdc731eb40d014097d0215802cefb1afac262095cdd9faa3595b
MD5 cff95fd9f20fd86045050e24c092f284
BLAKE2b-256 c8db2e689d8f1580c573ff1d422cd3f652b503509d0454e080acd0fa0914c4e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85c67cfe0dcd8be7a067994ffdcb11bac6c9960e13b6bfa7277311b740b97f94
MD5 9fa05ec0ac41408ba37355ee7bed835b
BLAKE2b-256 7e885fd42b732cc2f76384838c832d89b2f15dadb88784f73a8bc087c49701f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3cbf4b33af8495b133f22c942e859eefd044c9fb384252aea37bea42105883f5
MD5 75c9ac4f4f0c2fa32ddb610bd7543074
BLAKE2b-256 a9d1280fe0c65ad096974bd6b561e8a452646fa1c22b331bbb37a6dfe1800dd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.461-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.461-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6a6cf65bfd30cbea6fb4988ad5fb2285800cc649034affd80f2c2746ceb9ca29
MD5 3d61738510821d6a4d33b583ab64d4fe
BLAKE2b-256 a3508456e9db6b05433101d7109f37a8acdc4357e36ef43bc9beb09853d0a450

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.461-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.461-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5354eb88ac4719e10ae8ebf3c47e500ee05e0c44a3c6f2c0756d0638ad7ccd34
MD5 29194eed0e0bcb3dcf6922d83a34b297
BLAKE2b-256 7cdd07cdf65d22b07089a697e368520bce92a7bf8ee531cfdce44bbff9cfdc0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.461-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8fa50d5044d9fc5d473476d214daee6b476dfdfccab853038b051797e8777f8
MD5 7609e86a55f6f9c432f940e532c26390
BLAKE2b-256 ba1496958dd5455426c9dd6d2c06bebf9a29d83da8e5471f74047d87e7549978

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