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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.158-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.158-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.158-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d7ae6bf293efe0b0aca067ecaca4442f1d28c2a42823ebf97dd99be2ad60b159
MD5 2a0c8ee203f27e9d55e65a879a976cbc
BLAKE2b-256 429193ceba852bd10c4cc4b4f22665075d00f701f5d723d73ca9f7510dcf7d38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 90caf1099208bbf8a5e87c115eb5fefac5a8d95cf56d48a4b7c59a669d1e4823
MD5 66b587e4bea95f58738746bc730ee17d
BLAKE2b-256 21bc6b4c88adff8aa8adf1fb66d6b12c206a63c2c48b4b9bce9c47deb02377dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.158-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.158-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 719c9b9b21f81ce7b97e57a6a4e279d1cbf263bd50056ff33cd576c9cb9ebe42
MD5 256c97291c3e615d31eacee8945e00d5
BLAKE2b-256 14cd6777504ebf3d289dd3549711be609d4d84ac06e048bdb64b9a59b7207be6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42e4407191316d234fdc5560a9a2f7b2afe91563ca8bd1efaf7e625e6b9f3d77
MD5 c7c5e3f1bcd0a2bf7f512c03eca2cda4
BLAKE2b-256 241c72ca8aae3fa6c7d6f3feffce38b975a67b9d749853f8c5aee92e24d55e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cfcefa8b4de56c7e46fa00288431ea03ccd19be628c3b7a4ac9fdd8d7a30547d
MD5 be63d62593ec9204ac6865c794678fe5
BLAKE2b-256 de495e31ca346903624585efab165406cbae2140df3dc84d64fcf5753e4e0ab9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dc3ecbb1bc7aaefb5247e1e893c00279c3923d3bf310b327c486539ef515ccf1
MD5 644abd68c54af8f1698185a4f5c1b1f4
BLAKE2b-256 17d760966d8f557faec6498df3a978e502291066d4a94d0c9482c6dfc0afaa3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.158-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.158-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b7c19115b448beb7ebefb1c0fb8b9f23916fa79e6a7a03b13297c5aaeec44ec
MD5 87c23ae152c17ac910a431b31a5175e9
BLAKE2b-256 8942ed34dccaa6f1749412dc843cdbcef5411c630ab572990138b48f6d67b571

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7257671c8ce9c66879d6eeca27af8dbbd07d2174aa9f6c8d593c2416bf0e49a6
MD5 9ab2205ddff9f7962ece756531856180
BLAKE2b-256 6724cff77a1fad94988952b1be901aa3acc562eff67cf397ed9dba198218c009

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ada63e482b3ffc565e97ab3f58405e58e84aaaf92d4fc5309d5e2d70d307f274
MD5 bc21f912f6f8963b28b5cefe1812e48f
BLAKE2b-256 449c76f4fb988a6fbdd50dce404f82693b44d23b30cf0adf9036bf415999865c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 428769f4be02560cb3f36cdd7a9b7d49830ecfb6146cd3f71aea2913fa05a10e
MD5 e6dd03148cf5121ad6af115af7ea75da
BLAKE2b-256 e46d1bfdfe8cdbb4ee91d5e817a3ee687e1d2e635d8b330679f394be4b71a3e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.158-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.158-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 01e61908ed391261a016121b6e6811d3e80cc34d7fb1e1ad78789f6cc74044c8
MD5 3ac2f4e53564e24a8732b626b0eb8b2a
BLAKE2b-256 bb6d785e84cdd461b5dd302657060c3ef31a061d748583693fcf94040366da93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88f332ba620be8660ccd2e42e42cd32de765ad055b76443ea9caba38cdc72c57
MD5 e3ab16ceac4c8551ba9b4691a8a5eb24
BLAKE2b-256 cf2db61b643ce66d74415736fc810b70094663e2f5d22a2edee7c83339a9041b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6307656059b4609b821e2cf84efd7ca96f88b114a4f03fecde1fba1aadd2543b
MD5 f6963db27cf32bd569a1ebf6adb7a50e
BLAKE2b-256 960b9cbb4754c2b3f5b658c1577ff6a76b9d2e97ae82eb25c31f63ea0ea2fbb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9e211373fe865b9d70fd4cea58c46dd14df70136a87b7477529f73ed76b2ff93
MD5 46e53bbae9e2f1b9b8349954e9ebf100
BLAKE2b-256 aa03b63eb9cb406346419bf07ebe4a0e721b42079900b70096338e2168cb6702

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.158-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.158-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24fd2a774a5496aee1be5a3cb888029cd629463e781f71f96ac173f60e308cb5
MD5 76c22355ec8ba3d63be0a1a467f1fed2
BLAKE2b-256 08f6e911caa139ca233867db331927e596cb5c1f3ba3d0e9aa39a311d130bd9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 743ed7c8f6420f8dfb98bb737355b1ce38412c80581bd8c0d2eb1848a8576e37
MD5 3157c2874d39b633f520c89abcc76598
BLAKE2b-256 f62f3ef49caf73163477a9c76d0f7c66cf1aa3845ec9c91e7cc3de8f7cd332e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6e4dffc0a42f20af5da1a027feee10443ad4a89529a60be7772ef12ca79efe69
MD5 6384eff9657dce78e631e631daa92121
BLAKE2b-256 dccf9070ab95d3d924883aca7b6b3b063f31f66e1176675a9723bfd063dce4cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.158-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.158-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3bbe46a8b604db5d1f1b462e4a94c2df2ef6a2d0e4accdc2bbc01534ce741601
MD5 4ffcdf2772b2c090130bdd99befeebde
BLAKE2b-256 8e9e77e09627316c4e6eb4a8166be529407351dab068fa196e11a27737c82b4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.158-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.158-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b40f00f366598a0b5fb0bd9910a313777f1d9045a020d9933a422a792d987dfb
MD5 e45b8e8fe69d8504ec77b8974cdf73c6
BLAKE2b-256 be36a4a58ea6f4223b9c35b0535862b140983e0fd6ad89d17399eed2d99db0c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.158-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d13f4d990a69e737ecc618337c3b84cba0bae35df01b71d57371b2942130a2a8
MD5 3bdd356f81cf6a158725e6d440f504b1
BLAKE2b-256 e92d5488d9e1d0fdeeb0062ecc5e60cbc5b52634dc156760546fb01627061b69

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