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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.755-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.755-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.755-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0c0898e3511f3ad615fe2c2d6d984fab2e0b7578f4ac1c5fb177c5ed7bce5d4d
MD5 ce64dbc99efb026bf8f77e365f7e8697
BLAKE2b-256 77192ca44ff0a95242d469f40b5773d10e1934e7238db0e1ba1d0356527b9401

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eaeb0a384c7bce3d4cf76d98c165d45698faa0c2b7fbe5bfe53413231741f369
MD5 76498d08bd72b9dac7f813e46b1f2b19
BLAKE2b-256 e69218d24dd62da11c2c725080a2615f7b288a9b30d1bb68fa299b7f1fe5b654

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.755-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.755-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71438ff3e014cd27aaaac0fcc23623429c38c8c42e6d91b451ba8172118c494d
MD5 ce73f5f3a37836ce083a20e31806b0f7
BLAKE2b-256 83dded8aa0229c2a552f54278903a1e33dc67b3093af4dbf8063e2b0178d5752

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a63a07d326808f6fac611434dce73076d94d1fab4a830162cd01108eca82a8e
MD5 78615c91d8c6be7ece927324ef022e9f
BLAKE2b-256 c64625b5e7879af4ad9fc1a5ee4dea440c5151b6da9d5db62cf9835b0b0fc3db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4935e7b394594aeef73c128c2cf51f1d630987aa0d9265f98a664f5dbcd53736
MD5 065418c57f4d60660f09493b6c262dfd
BLAKE2b-256 4a3f1961129462e790b428261d8da0c17f8fd4839e75fda9ce9ebf87889b8bef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ddcbf26d89976fc9f0e2818d82fbbb23708244ad81815c02212743ad0bfc340a
MD5 a1146a3776f8e9a498f474495802b510
BLAKE2b-256 8483f4ce5492fb8a322358dd0da48aec33af0c509e1b7e223e7a520c676e79d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.755-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.755-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9223e260e8cca02732268534efd4ec726c1139e4f9b51a2f1a08b982f4accb33
MD5 e934c87ee643ee95339ec3d0dcb33ada
BLAKE2b-256 98530630b7e4eacc7e4231c4a1a0f156457f73c5b9738e43faef3f913293c2fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb1ac90b5658438db252071676d0692424c7e073f106e3737cda5855fb21f094
MD5 307331b510af65931bdef2335c526f24
BLAKE2b-256 55c4ab4d1dd1d69d2e93698ef240539c2b81597b5d8dd6554d64acd6a7f4482e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9cd7accc35a13a93e351a48cc4193d62545addb4cdd6ac6028ee3e7f21cd20af
MD5 8a8be11f9a5c5a335865e6cfca8bac40
BLAKE2b-256 5ef2c594707a018b575f92360e8ecae341c2858f71aa750a7f1d4116c3c860f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2296a288a5991c600ec4ee727b12d67d2e38151c539d4748de4dc0c820761540
MD5 974bde6fbb1160126af1971619504b24
BLAKE2b-256 cc8b93ff8bd7e7b13d2beb025d63c6ac626c2bb8741f44a2775dc3816bccea08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.755-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.755-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ec69554dd190d400300f72e0f0086d49cb477a6678d966073d73322d754aecc
MD5 c509e7e53038633eab0921786fd90151
BLAKE2b-256 ce0762f019dea1dbe02c34b3f5d89a1b2f8ede664557ac1fe04f305fd83a8670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e877ec179a4097721081178391592e99e5d67b15b40a766baa0d160c8d16bff8
MD5 9b255add7e1e63e481a80cd5b5ce4e73
BLAKE2b-256 10170fb405a160b4da31b3cd1c47cef0d53472223450ca10ddc6a52c182b727a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 20f5ea8a7b1f3403eb521a35c92628a6e534f6d32c19d0e8f96b42a1d29290df
MD5 0c093e0bc7902fbe2c4b06cd291f6d6b
BLAKE2b-256 75f517e1febbaf1dbb8b336e349d2451eae45d000cfa770d8721015df1dc0bc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9d3d8a1970abbfd010a6a36bc50644290e63d8409ea2b1fa5e796b2b70408012
MD5 82e2c9a256f992d325a73d2c5b46f9f3
BLAKE2b-256 56b71a927f2d649499c5bb061a8b0ceb8c10e0a90b29d05b43c9116a4193f961

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.755-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.755-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8e73506c3f4da12b448931a9a4394e26576150094752861e474e9fec050b3b2
MD5 de9b5437f1a4805088a4a5d9b25cf776
BLAKE2b-256 9a45253775b5bac726b2c9bb1af28df328955cba2764f1005582dfc62b8d0972

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47475210a5d38ab06d693db068360d8640677ecec6f8d5bdbc60c8cf3ede738a
MD5 6bc1a8897ab084848685e411da7daceb
BLAKE2b-256 a40538149f8c220e9ffa1fbc0e1d2171a44fef002e295674a0d6a6a066c6953c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 92a93d980bdc8f6f32cd4b54770ce08b68120cdfde203bc04eaa60510e653b4f
MD5 f23e2ec8841ba547677da6c299d6e4c1
BLAKE2b-256 d4414a1766e7295b3c4a8379de6909c4bb897a4cd31e45126c0189efa44a1683

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.755-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.755-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 764b88ab75988b4037b2058ded788e61f855a95705a7ea6e1199f35f822a4fa1
MD5 60b4b34deddf131a9b6e2fb148698bfe
BLAKE2b-256 6ebe90b5fc5ab14f603b85ec0893603d6db91137218862013a6ea4557e4bb554

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.755-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.755-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 998e0ce1cba279834cf5555ed7bd4be6b514df67ae6815e0f618fb0abfab0e6b
MD5 d6e69915ab26d83d24f26149bae09bc1
BLAKE2b-256 630be693cb1a696a59f823f51dd7d34cd7d03adf3a46ed754b8422ff1094fd54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.755-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77109b974a7e51b32041d424ddd3903c4874ee2b3b116e975401fe01ce5c33f5
MD5 d62712a704ed8d0f2306c09ca491b76d
BLAKE2b-256 23adbee1790fea0edd905aabce1a57fd23699acda1993cb2313ccbcff387fe85

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