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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.212-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.212-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.212-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3329f3584d9f90abe601c14f89eb8ee84bd64f2a35a3a84cbc9c8b89ef5a43ea
MD5 2d2de757a2829e999222e962650022c2
BLAKE2b-256 53d33ae7b65330f1b9706f58abf46d8b59eab6bb96d699a2d014a5410a3428ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d88f20d385cb71a14fa303e4d8958c0f08fc5e47fc625fa3fc1756ea7f6d4540
MD5 9c4b08dbf26a4dd0d6a564d98ed7075d
BLAKE2b-256 fbcfb8ccb4c4e0a68fbc130fab0b1325934c5ec1163ae1c5909f140b96cb027f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.212-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.212-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfcfb9e8e45d63d892195be94aae0a96e8f9792e4833dd0b82719dc2b1606cc5
MD5 5d32e769f41184b84486581f2c299ec8
BLAKE2b-256 9f51c4ff7fa9a4949cabe2d00a8f7a5a282b61eb421430ce0e989c49f08684c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8be312a17aa93101e5339dba5a422a198c7075302d61e7910ebfd85a8d8173a
MD5 39af1c5acceb6b3e317946e5a21c897d
BLAKE2b-256 a4c1c11f13fd38a7139e8f5c5120a3b2369443cab10532c13ce4e23e286ec5ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 97e7ee25527d49f8a3b0551148d5b17713c7ad4d8e5c323919d4b6624d7bf7b2
MD5 30283534afa8c51350b87df2359a4c37
BLAKE2b-256 4808cd7a16b42a9a8786b2a805662a3bf869531b9957d169ab38fee88fafb2a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3c40fe96f34647f260fa61e324b94e01d6ca9c86df4f4a756328fcd50e1ae7d3
MD5 029b86faa8a1ab535c88ec890ea28452
BLAKE2b-256 d41328b7e4aafee780b0de656df03de5d9570e437c961202eb55297fe70f8099

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.212-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.212-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 38faf2244ff0b94c308e37584312d20711d7c39cb037bcebbdc74badbc0fdca6
MD5 037e946058856dcebb91dcfd0ba2f243
BLAKE2b-256 0db316669273c119f34d9eaab889be0d48a87751dce9aa596b73aab2294900e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f2a724525874945b44af338a0fd910c5f818702c11f4d8fbfe8b6bee434713d
MD5 910d7ff9268120bd7e24816cf334be35
BLAKE2b-256 b323868b5af5b73e784bf2729d3447459dcd59a0ea4423de6ad941b8ab14e618

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ca9ae2dd7742f86bd80217d0ee2fd64b30b81baa81638fa4bd3c11fc39fea918
MD5 8fa3038ed517af224c40bf63b7ebe35b
BLAKE2b-256 09ce85eaadb3dbf248572b84a902e9340f40128bd1e2448b85dd19899d0bdec3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 51f456cf210ac86e8a9be87866c6bf96e357fcd22dbcaa1598b72faeddc3b120
MD5 bd30b7d79f6b59f177d32d5184c6b900
BLAKE2b-256 08f13012e0ceff7107e6845151587e3724306dea87423bba52e0897054b65518

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.212-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.212-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 666106615591fbed0f594a9a296ef43ce0ffc8b479d3957c4751bc979dd7e7d8
MD5 489d24ac946eff6b9fbcb406429a5885
BLAKE2b-256 ea05fdda60f941029d3d51d4b5d9b576a98b72bfdb49d1cbd804b077889f3e0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aab861b16365d4b1e2a11219c224f90c0edd767f796d8b8668975a806d118dc
MD5 2a5c9f3bb98bfe4f09b96a7821d74da9
BLAKE2b-256 39a9ec771964e48c8220e1ccb09afae131dffef1bfc00bba259ab16cd7e97fb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 788d76906511453906e464f4e3d353b9a0f5240769734f8070ea78cdc7572edc
MD5 4af7649d6789c691588b4657b95b10e8
BLAKE2b-256 c3df2ca6dfa5734c25f5f37b17e75e6bb60a71ecfec435b2f2f3a2cc9b956d23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 da6dcdfa5e9a02fb1adb343c2e8bbb64314a02dc11e7298c79f6955fb2a60947
MD5 1580029c56f67530b4324d08639fbed0
BLAKE2b-256 e85c2b6ae2f5dd6c155107665d8bef1d90c2769df3cb56ec93b2d25486c0f533

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.212-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.212-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f37b713b72a83a202aa1fd0c4f770ece8e116d4d0e171f2a103c30049c508808
MD5 cb175fb722c632a75900a1872a740cb2
BLAKE2b-256 4f6073d0c84936e38089058d3457def6f5d3e4721939931d4b4bbeb4411481e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 076b6e8de51cb30b8fcadfca3459276a4f060ca51c396be2cf920eb6e599ed81
MD5 9be1951f9db63230f2e96f1ca20d1ccb
BLAKE2b-256 1d3ddfe7406af1b809dcf0b0345007be8260e3d59e71f12e4d814223d1fcd307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d87f228225a381649e4de33874a3520d268db3c68194620460eb16fe3eb692da
MD5 e17a0065aed44e61ce7efc00b945c225
BLAKE2b-256 8286ffd1d1467f518a0086e6f2b02f4dc4730c3b573c739f342150e39f5c6e3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.212-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.212-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a60d0034cea6bd87c6d6bdc76279cabab1c42b7484c64f6ae4bde952a74e227c
MD5 8b3fda4a503c6a14bc51ab891ea9bb44
BLAKE2b-256 cade67772f937e13df347afd9f1ce220ec23fe77f129b9fdc1d8f7fc359efe7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.212-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.212-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cdcdc9f97411c1362e0ee1d5d1bbda0f9eec16f4fe002e44f4a7d0c02f3a14cb
MD5 865ea56333a0be67aa858cda46f60fdf
BLAKE2b-256 995604f14638337acb8a1b7e27d1456460944dfc6702e17346ab417c08f0dd9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.212-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c191f532f0fcd8dcd28181ef150b6925e0e362ff2905266b5a7535ad6eea99e1
MD5 1ed0755e8448aba705a86b79db63bc1a
BLAKE2b-256 02e9d1c6cdc54de3c83b57a7d618054c4c396492c093ea48de77583427c12696

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