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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.380-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.380-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.380-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f7261ec77ea4a018e0ee6d2246d05a3d154c62bd87b82d3fc3ec3bc98d2c1b9b
MD5 36f543f03f1ec451c6b4eb9462ccb1cb
BLAKE2b-256 2315853f00f1a2792e5aea6a6ada4e174f22bff405ee322b3b06ad5926acc097

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9689ac30a938f26d4ee48f919c1eb63fe4fd560a63edb671394863115f0d2477
MD5 f168ba38d0a7e3acb6a7a7e6fb454886
BLAKE2b-256 0a395c8b7f1085b595f0b863d39f53c449359fc5b2e7e3aff71a6b78e6f03682

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.380-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.380-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14e0047f3bf0ff0b50212a6259dbf6b480e30b70725c4007fb343c0c98a618d3
MD5 82bf85312da3177df70164cf25eaa621
BLAKE2b-256 e1a322c7dd6c8e0697f5e2dbecac19e8b1edcf32d27ba61382d8784e3fcb0fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0c223ec81df1b0003f3f4cb3f153225d1e9132b73dfbe70452207fd7dbb8100
MD5 97b63d629b605e1665a32987f691a561
BLAKE2b-256 36a5ed79d9a4ba784a1e7e3e07073a25d8ad72bfce1e9b93945846db12f34e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 db0bc214226bbefd4b597ffe4235767456b2bda1a6c551d1da122b059a89fb25
MD5 3b508e251e3d2cd914871ca76b508e95
BLAKE2b-256 32f23d3a4aa3f3535c8800d96a152ae03e9e681fd7885cd4cbb0410cbc505fcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ca12fd18ad9ae2d73c66a3f7a84b2f73c6d9b0f8bd14dd089377a091482bb5c0
MD5 f6943c476d20c3876e2df820cc13183f
BLAKE2b-256 f1a94bc4656200e34418e5cf4c292996b0ce793b42c5ab9d1b45f10fdd029c1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.380-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.380-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d80dde28206d37b9299a8ebfc73092b99c0605d5b729761ab06706a568a8083
MD5 b0734ae1a9e472ad2a6acb06402f082f
BLAKE2b-256 692dc107fdd5a09862a1443230768bacfb0bbb1737b6f1e7fe75c3f8448afd69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aba7f8dedfd2376b04f53956061d22198e6fe9abd395fb03bd6c6f16cff2c21
MD5 1cd47d596ff8d1eef0fb9ddfaf1b5005
BLAKE2b-256 ae3d887ae5a40cbd828bad0318effd1190018f090efb4d9663f14b1ee48ea3a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c286fcfe6691bbd09e493eb88744ebf17bd3cad935b4668fcd3ac8ab65857e57
MD5 76bf3d0831defbf57e366fa50ed6381d
BLAKE2b-256 702cfd95fb21f00f70b8a446075a52abb1b3a8f33adf7460730436eabcc4c8da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 224a7e5fc9cbadbcbf38219522f2d9f86a4d13ed762d2d5648324f9edb49bcb1
MD5 f960b2ff59efe43bce5d73b24bb22583
BLAKE2b-256 6be25ebb44d7ae47c3b2de63db79b94f6f5e9c60b87b40fcf770c069f91a18d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.380-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.380-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 424507cdceed48028c014c776cde26b4b852b7bc08955227cbb290b02d51bf68
MD5 12f4eb7c1674d9098a1b4a995cc80a08
BLAKE2b-256 671e9cc722344df2682d4ae636942aec9c30d615c1b5042a5c7fe847ee9dd19e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0095d83ac2b520f5b00b67e0fb2f9f2bc03948d8dd1909172ce5e15c994c2c3d
MD5 5301f0de3e87688371a6e29ab3f573b5
BLAKE2b-256 0fecc16c60fedf10beb83252025d39300791366197bfc771102b5166813b0a14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5ebfe509b0df9e420fb41cdc476b3e02af2869cde492d54fea9e87da42052852
MD5 8928bf9d0a8d17424da9558a2d3ef5ff
BLAKE2b-256 50e5fafe49304206c78b866c7414fe62f8f64ad7fb7c76fd23dc967f584018a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bb0c353d2a51029229febd7bc26f5705d69c3bf0fbdc7a7e2a2ac854a33baf24
MD5 3cbb4e2d1e21322bdf0bfc4504a30c61
BLAKE2b-256 edeb7d1bb0864d71020a3ece73f4db0331a9e750e9f1aa0a1e375a35d4c0d293

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.380-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.380-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 08543b4b71c6ea0f3fb730c36d91151be51f350375f3eb4a36e31c3992c5aea5
MD5 fbd933abaa6682df730591003e8e4bc1
BLAKE2b-256 3091eaad1ad16f614e248aee1261c3cf0d0dd01374c5c28cb9aa369ca99e6888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8882e3899d0f131bf7c38872eb5ccd330f2557f3c5e4f4430dc4afd859781db0
MD5 b119e3b43fc06f73b90601cde79716e6
BLAKE2b-256 4441e0ef1d71809d895544303a682e9280f24dcabae6107cbefd774ab1cd859a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 daf8b9542a8c40ce2374e64758a1e898c98ddbea8a9c603eb052f14e38a4150d
MD5 079971f86b97f3f38321a45fa9d19625
BLAKE2b-256 efa140fdd08ef35bf071a5fbfb2ac94ebc0e903d56819d3db6095b511d805796

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.380-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.380-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dff775ee663097a1903d691fee9880e047dfc60f25391c817ebed82c0f010844
MD5 f11a10cb9e730e5689b56e758b707a4c
BLAKE2b-256 5ecf0f9f92d29f1ec81a277c082be2616ae5894672ac1655845b57fc34123f14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.380-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.380-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e352a503ee58679bc6a9dcc7e2dd46df2ddf89157a24ac9176d3dfa446e46c7d
MD5 c1bfaa9180460aaf7eb214cfff2f3824
BLAKE2b-256 023840579ebbf5a0d403f980029fbb2aa102577eba00e6ca40e45a148f2e3f41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.380-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 866070f475bb38f08e8dde58a6f17151d43bb15cc0360731ea636e5444f9ff68
MD5 94872d532101e3d010b675d53a312788
BLAKE2b-256 373de1559d1d70017c4ad26e32a6a2f8b4a60390706cb056a82a0d050f362bde

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