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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.770-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.770-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.770-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dad5b122a86fa0336c0a415987866072094c9e80b13b65ac33d5aaa320d84428
MD5 4c5b5490d194d9c761292d9488f9d09b
BLAKE2b-256 c6a75bea17e677d2b0368863de4795b928c82611df088ef4096d3a0b49984dc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f5265647bea1cc3b9b201f92e99ed7f5d29ae3977a2d907c43d90deba7fb6753
MD5 3d2d6b2819dcac3c7581bc944b51699b
BLAKE2b-256 0dbf3d733611f4a7ef96c4688f45062feb4b0e334e40f37caf1388ab33a1fbe7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.770-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.770-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81a775473e2fa8677a955a2a56450e34a24de77f2e154772ab8949114fc3803d
MD5 5c4dee258fb40201815cea4a3dba146e
BLAKE2b-256 b3eaf18a7e44c95eedf49f3578872f3a9690dd32c9326550f059398e3ea751ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0838e10031702c3dbd11f3f58b0e31dadd3c4381a1de8c7326d2303a3575a290
MD5 e1354e5bb32b6082a6d08f5982e520b9
BLAKE2b-256 4bb75da3ef83b626cf7264fa4a7a89e17614b2e6eddf1ec726737ec1c6419b3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c5b6654d235bd1c1f8966d511134ae199ee63e7388477d5c593af5fe4b3426ce
MD5 a22e33022add78a9928570e9ca83e006
BLAKE2b-256 e5ae2f33e15a0c37cb0866f6a4d69387a4f09a2219638db476429c17548db51c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1fb49d59e71c9d6f910c6dbf79820f48cb43c81355ba88125a5dc500f78d8c01
MD5 77f66d22a8880cf88883caa997ce5443
BLAKE2b-256 118bfc81f8aca32e39abb3f1b880c0562c45bcb4eacfad16cf3f17428a24c604

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.770-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.770-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d53b66074213c897f2dfaccb09fed4a22bce812e0a03bbcf92eb02bb400819e
MD5 18f70bae62ec0c3dcfdac1ab8eacd171
BLAKE2b-256 9ef60ea43eaccd052d90b8fe03a7633000e56394b47c6e412684232d0bb45474

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2121f7e6501f339d48bf720b6e8d885b30b2a783b677835c4f2513b1d5dedd36
MD5 aece1a8be3bad2feb5eb5eff16d8a2d6
BLAKE2b-256 495ea9f93d3221a2fd438f7924e085014657e0c9a17c6a72bc19b6e4708372e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a2982d194f23337655f4ae50b62def0c30aa079efea93ae5c87f95bbe257c1d6
MD5 01ab87d04388b61f8d760d0677ad6baa
BLAKE2b-256 0a485e6c8b76db1ba150f5b5ee72c3a6d145bc9e96809a2f3289dfe277d902ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ffeb421a7d48be148585b65006b3c783d39430ca198feb1e630afee228908e24
MD5 1f85b0f1f6881c050fe5d3cd02d3c378
BLAKE2b-256 cf7e4cd99a93edb6bca49b8865efa747a430485169b1a5a147f5c8508818b0b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.770-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.770-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd07e3f0a044ca8e474fb552c1a934ac253a16142e1995cc7c98cbf39aecb18f
MD5 ea60fcf4bbe082da8d5d206e84dff69f
BLAKE2b-256 aea8c3c60e109819c95ec012eccdf15219139d545ef7f4f1696c500de2603291

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d444224cb0468a5ef16f87383824ec2ee7ce2ef6a50fc20d9a6c1e21d24f6808
MD5 f8ad2bbcdfd27674822439aabb6ab5d3
BLAKE2b-256 499e2304817900cde6c3c0e05910d0e6fa842c6abdd59e2aaf30f9d65d078544

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 937cd8c5193f00cd529dc7a81c578ecafb9ee39f70066f08908529188789a1d0
MD5 dca9e1f4d41d14d392e446556c517b1b
BLAKE2b-256 20adc1347ce18f6c303fd7aea983838268a9411aedb8b25865e2d01b28f2a8bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3955e038eed8f0fea460de9422405acabb39d81bda9587713ec6dd429f8f3d77
MD5 b9cc78e568d7caac58c78dbf0f67e821
BLAKE2b-256 e02977f6776f2d898094361ad0775f3077e1dbf2cc88d9f3792339b4dfd5bb48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.770-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.770-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9865f133a345e3b056cfb9b16292ea6ed03d712fc22684481f38a5afccb6b7db
MD5 058ac6457ac63b06715ff71e32b21802
BLAKE2b-256 358e73e9406d44a66e949262b44a77be601c70026b3bb0e6e513440951ceebbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63d560419fc1dc0e4bdb7c5e961453e484554dc32974d53ba186dbc79c0b27bd
MD5 2c380555e5ca9d1c0ba714e99900a429
BLAKE2b-256 e02bd5fa5ee071644b637d55305e27002f360908584f6b8c56358d5f60f292a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ff1555ca9675daef261e92cc406d3a19d715ede3ae6161bf672aae0080cc78fb
MD5 f4dc8c0d33db2af7f15a2dbb66e21aba
BLAKE2b-256 b28fac222074c983462d5846563246657ae8fa164edda4fabe97084faef13c11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.770-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.770-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 638a76b09b81c4cfb215672cd7e92a786b740d23ec70192512b29bb68b7f01d4
MD5 426f9b1ec07495cd0a424e5eca364407
BLAKE2b-256 ad72a1f97972752a15189387fe69df73f67174466cc3b409afcaa664a2ad7e81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.770-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.770-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c1b7ea2680a6cb65077446f6e2ad3aeb4117e48ed05f5853de3d526e181ac84
MD5 ad41156848adeea70ced0e6376f980df
BLAKE2b-256 ab28c8252fe65eda2506c4f9d64c055b55f96d2e1590889ff17b2183bf4ac34a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.770-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d1451ec2b36716335be05801a100af764bfc126491851f83074c0a1e29298d4
MD5 e88e78133d9d2a1f7427dd6277ed24aa
BLAKE2b-256 c3cd45e847dcddacd3687d5b97f24975c2cb8e050f9b3508e3c90e41e92d1392

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