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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.118-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.118-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.118-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4b5cc733c71dff25a045fa0f3a9e0d478a57fbaff8cd7a3d92d8d5754176170e
MD5 84da0550180dbccec69973e577494ab4
BLAKE2b-256 a67b3fa45986d5373f2cf84235750759223cf1a84cb2eda3c937065ee3f1e68a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2b4c3a9847a1c7cf22e6e607c49c04d2d1baf040fb98e31f962fadaf98c42ac6
MD5 c487ac7ab9bcb84494437cac877f1179
BLAKE2b-256 27b1de3bd79dc1ec4b210c42d6cbc10524d8711e682256e15525eca22e8261ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.118-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.118-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0b43ab4f436eba9b8aa42314d611fe94382b114b2ffd861f2955bb3de30f1eb
MD5 a55d95bc8279b1c21afd11fa28841b98
BLAKE2b-256 8060fe9af7756595948b5978a14901c298d4aae0c4f29f8c4a888c8e11adeb77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c8ca7cb439bbd29959445629582ea648ec39bb38de750939cc1bca1f758c799
MD5 f620e2e53383eada90d7882f124ee448
BLAKE2b-256 27fa84be75eeab45acf9079c2b102427aaa557f738839afbeb8d1c45f2139abb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80bf7c43ed1f1c074799e96181e724bc2930f9745ee2874fc499d8d8438f9bd1
MD5 c0a5e38ee4e2ebf3900ea9659bae0bc9
BLAKE2b-256 bf200fe787aa45e5a8b146ace1265c56d0add09b315e9f387d9f25bae20e5785

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ad721881e8b9a99c1cec410e8e3c993cb4ad2c04bfed28b6d74371acf3d2f345
MD5 bb6e5fc24f9e9004c043463f0d080426
BLAKE2b-256 8d1df272b3683d91bf0212772e642bf83f32aff01b46076132621c95bc83660a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.118-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.118-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76ca25008846db358135f1f3cce7a920e19079a2e6c7bc087cf5ae7031aab414
MD5 2a7c98066366f6399981272c516d641f
BLAKE2b-256 79419d926224e3544f7b616e5f7b6587cb38a634b5683584805ea61c02c57694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84d0f7042ba559e17a20108f71e05fa1f011bd2c5a8e0e52da092db119182b9e
MD5 7d2295f01f4c908cdc93f8c1361abb90
BLAKE2b-256 0c94c2f8ee2789780093e08ea781a7777c5c1b0fd86450e34e99086d2ab5091d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 201198ed98906a5c00af11220c0e9ac6a9d016f4d9aa2df8bfb81f959947db33
MD5 d7b71637fec388020ad0fc542f56310a
BLAKE2b-256 3c418d779100072ede1a1a9bf9dcdeeb242eb3769b34590442d15aa74014a0a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2b3ba9b797d7729440367f0d108e977d1bcd6fecca01cacbd459149481b38313
MD5 a83fcd693e47901b9702119b653d11c9
BLAKE2b-256 2aa2e2d38710907acf832434e2ff1936d61a5bb7c5734b6f0df405c49d0c32b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.118-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.118-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9d31cf49fffdfae04030c4fcc6008f0b51debe33ac71802f7fadfd75132c9649
MD5 31192e4034591db1f2ed3ee31d02c694
BLAKE2b-256 5e8855b110611a640ca1232600561925ea83e37ee5b33809817d27c8b4e080af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f9fd67eb8ea26322ad8545f8ae4fe0b12e484d8990065945173a2628da37162
MD5 60bdeb641657eb8e7b066fd7505809b9
BLAKE2b-256 6bf79b66c5cee5308aeeb3149fa3a2527afb02a30cd55da759954071e7a4fab1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 edc5662597ea5e4575ed3837d8faa3ff7af7ef7ff256a05bf4b8b09b351f490f
MD5 fd35f41b541901ceb807e2233a881140
BLAKE2b-256 660aea5dfc71d4e5dbb3223cd892233f44cc9278acf5ab0ee703b426f36320f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5217ba4deabc6dec3ce33a23de4eb5975cff1eef68ffdb23ff7dbb8d61231105
MD5 51d2fb7caf74e6169bc53ead6902f553
BLAKE2b-256 df50dcae9f5c10b2724a836611d55beafd50b250a605ca966a6d4735712fd9bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.118-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.118-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf934c6f292d3d2b16719a96e512ec5c8897cd51039ad78eb64b917bebb662b1
MD5 33e0c738eaea74278d6168871ecf892b
BLAKE2b-256 c0def9f0916f237d28b0f9a3dc6bb9a93b7dcda05dffabbf0441ae3741584c09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43a77e1e99a07bf031947d4f42f284b89560ec3061c490477e775f9fb73b7913
MD5 805edfc51acb450e13e3ce721dae01e3
BLAKE2b-256 2d51ae2e96422ebd02cfe4b410f1d727cc8ea10fff3317f562d5603f43a212db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 02ccc164c6a068039c22ee7c8d778522eabe0305212c117cce25d285953359d4
MD5 f1b94651df79955c6424b6449ad2dfcb
BLAKE2b-256 7c303ba352644d200ec774ce283828ac9b73497137080800e37f048625e43ffe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.118-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.118-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3fa6d2f9d00a97f68c0aa3cc1b64c6b8ef52f4935c8ca45fa2e360403992e21b
MD5 4357011eee55a4714792d665297cb75f
BLAKE2b-256 bdd02894f11eeb41483d364c1ae1a270e167ff8b095a3cbff28c9043c65ebc74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.118-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.118-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a48fc2b1ae2530de3abad1e233f8bfeeaa079cfa3e0717f4ab2de67b1a21ee19
MD5 a802a5f265a5ef1f434c01d4f384d114
BLAKE2b-256 05008bc32fc10348c83408878ab419d6a09e545c62d7cefa1a339f83e846344e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.118-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40fb7c9c965c3baa4113b7833a95c654d5b01bab14b9adac541f5c5597361b24
MD5 4c776a82eac8e20e74eb5d6a6407089a
BLAKE2b-256 098b1715e0a13f491854d9fe59c5fd510d036b7bcd21ab25ad6570cc3d7e593a

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