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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.233-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.233-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.233-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c619f11523f9b32af3d470d7fd111f4524ec7295e8d42ba5299bd3d7d16625b
MD5 4c44cc7c32e75920b271835d1869a0e0
BLAKE2b-256 fbe2799d36056db63cbba80fbf3c16023d2c7b50b1b9978152f3c6809ef2674a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 64dfe46ed3872ef8e1ef235382b02368d84259df654ea338161a6a44be94875a
MD5 f90dc82aac16900753395fdbbf8e28cd
BLAKE2b-256 83f16ee258eff0c1bc35ea137e0c5d7e856ca47bfd76c9c078c4e23520ca1ae8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.233-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.233-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87d9d830d898353a52fba5afce62f9a5e1fde318b2380cdd2d727590a1fc2437
MD5 4c5df7cf7835abd647dbd6c7ccc874a0
BLAKE2b-256 415cc376d6885229b47a54d05921fd73ca744077b11a93e0ed4d5828d86f2d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3de6400d0b6ddf579e3c649568b25018bd4b6a22d16dfdb6a8d8e123d4dcafec
MD5 ae64898842e67bb55cc8a05e2f60c96b
BLAKE2b-256 a7d429d6d9253becd1da30f31e93ba0533a4bdf9b08259c9139357691868e24f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 65208d74693563dd47549ea505aa32f9f3d5975a7a828e6420b6f4c6b2426bbf
MD5 640b06532d143387b575a375250e94ae
BLAKE2b-256 842cd23f46ac1a7deb0520953d4f3ba2c28cf10f5a670a80ac04f8e1540e2643

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8b796a9a60e7d28820a6392e2ea02cf2754c3180226c69902cb83eea19ff3c92
MD5 8fdcbd95864c7047fab5f0138dcc2cdf
BLAKE2b-256 7d5d302b574f456c4dcfb3318c2000b11eabd563637e0c399bae24b4bb70b0b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.233-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.233-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b6531b8d89b8830092ede2036f1b83eb85585919fbacdb24401e885398ec6aa
MD5 43e6ba0f2259f884636bc65f57a0756b
BLAKE2b-256 ccd72037cc7f31881b1487e2e5b365a1305b9a8916b9d77b7ce797709474d160

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0d22d70f2f2f7c1ef3dbc5bec5c5d79ec13c98dce7030dba77e2e33d889d8f1
MD5 914d3ae97db2c1650cee2106e7bf7995
BLAKE2b-256 8b2b9822898fdde08621e1da08a9fb3dc9541993dec1d6056ed3639560023244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4e2b56c75186f8c64713263a34646386954c4a4cc7fc6d3ba5e035109c53959
MD5 3381d66f47e83ae2e3121740906429d0
BLAKE2b-256 14f3ba5e1969823f0b7cfc6ad86ad07af7d43379fb75e31d19d6097fc03a46cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4d2761541939698a10d2456f23ccb04a709447d6c761b4658e07411adab77d31
MD5 e191e6946dfbf5059ea81b1a1a2211df
BLAKE2b-256 d1d9c5678a262f113d438560740e32f5550d9a6c71baee9747cc6db25647d94f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.233-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.233-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c5201a436cc5d8d5698620ae8893b0d339a844fb26ae7d6eff920c2d3e9f5d4
MD5 eb24b783fc08d7d7c7e7c108873441fc
BLAKE2b-256 515ccbbb5cae8ad9a749b8b0f1db9d960b5a4715cd666bd2be14f8a675264baa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfbf03634c91f64f43ffb5d3061684190f563d9a3f56227353802bba9e9401ea
MD5 a9a1091978e4b49b28734df91dfaf10a
BLAKE2b-256 112217309feb4ea586a55689d360564dc30e170dfa701d5b154c759444f109cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3c846d39e93b7001635f1d49e4332e66128376991ada5deb142f067df5e191f8
MD5 e4fb286d5ae9bb06813ebcd7d769bfa2
BLAKE2b-256 0cf1c4aad97d7faf566d80643afb573f4cbef9ed27fcb8baf91cb0e2ff313ae1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a52afb837b4790982b259748ee971becb1514b86a25b2896683af9dc38911410
MD5 1b5d1f21c8367e1a64be38bb8ad4dec2
BLAKE2b-256 1a5196637045c79a2909d5c8d610b59a7dd57221bf88a658a3ae05359f3389a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.233-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.233-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af38498569194f15422a3766dc45792e36b4aed68cd3c1e8d184de70c04f900d
MD5 c4b37cc333e86cab8631690313290f2c
BLAKE2b-256 d4d7eb981f2bb7f6a9c0ea1badae3c3208ee99372d9677425378dc2662e2eb9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0467f47495915221563291406c286f5c1f5956e233544aa1d20e21e0deb7991d
MD5 b948f7ce904768b3d5b97ab7ccf0ed00
BLAKE2b-256 8ef021cbd82d7d33294a47aabfca773abbc37f38a07f7f2b7dc3d78bcf54a482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4e5517b7162ed8ada88c8ca3456cb2d29a8a7fef8c299670ca8a2ad125366bcb
MD5 6764facb19961edf7287e85f6bd6ae32
BLAKE2b-256 e1e11587263184bde68655e73eb7eab5d8082a7707fec3963f6b90aac15582b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.233-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.233-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5c323f3dac92fd8c16e750cf408e9ba410da3f4d74782f6837a7474dcbfb186c
MD5 ae4681050408a5e42239d2eeaaf174c7
BLAKE2b-256 60bb1f9b803f02ceb61171dfc2640ae2b14efd91c3e2680322aa3c6f02250043

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.233-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.233-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4101cee6c7697729ba11591fa1c447d775f1eb1b6cc51afb406ecc4d00ef5cd
MD5 49ca9edcaf0ce2b8a7fe718d78e6a7d0
BLAKE2b-256 955bc6805df4a9de56cd6c1332fce1f684d1f8a7056b3f1716afc949f3105d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.233-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5dced6ee6113285433dd08ac3bd2e62df124670d8cc901970463e8e1f28f0281
MD5 f23b4d38a22dc999be63ca09cc1562b6
BLAKE2b-256 79c821c1f3b8dcdbff201f45dc56ac8c880bfc52ba2882bb71d8a3515d1d8bee

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