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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.137-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.137-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.137-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 786dfc7c24a793ed46aac483bdfc1a6a2e2d26d65f3e27a5781f6c2ed5a5a1d9
MD5 d7948c5da23338cffa4f36a7a46ecfff
BLAKE2b-256 70edb2835191c2c1e8d0ee1b2cf9c9850e7e73feb05e5e53e523793219f2642c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 54dc0124067807477c7faf751e2af96858420382642190d2f74733690509bd7a
MD5 82e60ad39b35ab73b4ec3019a111e480
BLAKE2b-256 ebd03b1a2e46167f96c2999101bd2a04a6e0e6ae40363f338d2a62558620ed23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.137-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.137-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b98adec6c469c8789b3eee8c8a0edf4aeb6576e08e46e3acaf610aee01b7156f
MD5 f855a77ff7f9600b7a7b8297157e7bf0
BLAKE2b-256 a2e5f958c2624d0ad8cb7afd77accc32f2817bee8091247c6121583447cc01b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3839b54661269d85db2f49899406ccd2bd348cda7fe363b28ebb7cdd56c58b81
MD5 fe9c33cff5d48cb63cbe13de93440c06
BLAKE2b-256 fbdfc42c0647a5688b05a5762f4382f6c1413cafa5f02e218e148a4d33413039

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 04fd6a5730985e29d54812dcbd993f46b4ae78fd0f8fc4f695eb247779ed166a
MD5 ee054ca2356d6505d06b8d056dfdd028
BLAKE2b-256 ba8aa09b079597d45f71443c2a0ac5348019b94089312d7410418011f267546e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a910477f488a1f9e68625de341e98881a75aa02a607b63af4092a1c700d21822
MD5 692d136e5002c4ec6832f9111acf80cd
BLAKE2b-256 5f9433425ae508bb8ebecedadde34041c9e0aa77b7ee334917b516464f198958

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.137-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.137-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94dbe75c1de82269f0be75f28fef652b180a9ac7a390487700c670bd48a7da8e
MD5 21cbf8f2036166920ba4a55c4cae5204
BLAKE2b-256 785e253275013b16c7ce3ba1291f41689ae131010eb0f4a12d9412b8f272b9fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 157ff76653b0edb3d19a6815ae0acbd01872b10123caa92fee356dcb6a204751
MD5 30df67fd15f4f9c934c1dc83c53e7413
BLAKE2b-256 507d483167ce0fd2ce27dc3e8424ef0e1f3d3773071e62c5366007228199406e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d6d2c4d5ab18ead33688e7d522e395bfbb6c69cf4426b62d885f9f93327a468a
MD5 b4c5e597187baed4a1248171176136f7
BLAKE2b-256 5748cf82d3e800b9c9e957ddd023f55e7aeba9e65beeab73953aeb87a9b26ee0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 10366f8d9bb0c419eea98b2c4f02cd958e84ae8966962f2f8c524b33ba7a22e3
MD5 8af45b7ccb692525918ff4c7d7929722
BLAKE2b-256 8cfb6fe208fdc51c2d85a08f8a09e8ede16f00914fa949920d2a520ed9627295

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.137-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.137-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 823f8aeb7a6099f080e460681c5c125bb073af9ce53dfa3062c4f1da8bc1632e
MD5 7263b0bb2a8b1090e7206453969f6928
BLAKE2b-256 3e57837b8615b58c00d29c13b5af3cf928d08d0f885da0ca8a0488db1830dfeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d1f95a2b05ef56a129b571b64899f090d8b4f8af78a85007da8ab3d62077125
MD5 329d8e52be207501e71f9baf935c1acb
BLAKE2b-256 1efed4fd8c16964032ec0926aad1eb816a4b0f3f02716d0866e7c791c9c815dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9d7dd56a033fc697135994d28d423e51c4b1018cd613749e2ee3680a25748308
MD5 91afea564658931f7efb36c0c4411dfc
BLAKE2b-256 c7c76c522604c01512b7d83ced2eefefd34ccf6adef1635252f0ef2aaa4d0f32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 35ba5533f00484827383fcb32b7f1798d7eae70054bbb790786fd4060279c28d
MD5 44265e5a8152790f947f1b6679285ace
BLAKE2b-256 13cf8d9b3b7234caa15d1d6914a94fc904712bd29a2f5b7e068ab600552f1bd3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.137-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.137-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 285cc5ad713a2493d1dfb3d391f29d5ebe192e1ec607f6fdb945ee4c240a9197
MD5 634300c21b90c0b5ef5e41a80cd42c4d
BLAKE2b-256 ff90b38bed0b281ef3abfb3a5a6f088eb2e568d3a9688f143eb3a67c230209c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b36fd75586c04bcb0aac67721c2d36f0c35668437fafbb712ec9a9e4a16a1572
MD5 b4924162db45d15f5ec2316eebd08fe3
BLAKE2b-256 d960948c48fcbae939cd7b9c59ef5db13f431792466b6153b8e3551c7b27110b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ed55865555d784f92b10c7e7dfb7d60d72c0cefac7a1deae12252b4f2d03b09e
MD5 41dcdcdabdd54634b6296dabbb5d4ba7
BLAKE2b-256 45e6cf22d3089c94ec0c4b4dd7d73b69578ee785177baefbaa791c8ecece9db4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.137-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.137-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1cb7bdb2b4ddc102bedbfc8f5cd1aaa7e12561f9feda4d7d98b3a039c3761375
MD5 61e49a8688952b334980dcf283a875c7
BLAKE2b-256 5aa32eb99311144e64da845fb901903e958e5f420f80cfe6ec2c8937e609735f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.137-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.137-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47a0bb395c6a11be487d6af09ffccf5151906a9cafab5d9f2fa7ea0b0d89bad7
MD5 aefc650fe8b444dddae63dad49e8212b
BLAKE2b-256 ed9b76ec3bca0d49682014cd37b625ac56b60f05d09a442e1bf0e8009067d7d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.137-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04adc4e168570ecb8a842bf061a976476155777d41d4dc43146815f81b5ea0aa
MD5 c2f841bd55a4ceec3b3dbef69216ed43
BLAKE2b-256 cc3a4075691e48bbdaa7a6b73d159c01f0cc67f5f5ac57ce159a7cee7e63e1c0

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