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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.4-cp312-cp312-win32.whl (117.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (369.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.4-cp312-cp312-macosx_11_0_arm64.whl (123.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.4-cp311-cp311-win_amd64.whl (121.1 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.4-cp311-cp311-win32.whl (118.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (331.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.4-cp311-cp311-macosx_11_0_arm64.whl (123.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.4-cp310-cp310-win_amd64.whl (121.0 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.4-cp310-cp310-win32.whl (119.1 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (320.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.4-cp310-cp310-macosx_11_0_arm64.whl (123.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.4-cp39-cp39-win_amd64.whl (121.1 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.4-cp39-cp39-win32.whl (119.2 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (318.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.4-cp39-cp39-macosx_11_0_arm64.whl (123.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.4-cp38-cp38-win_amd64.whl (121.7 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.4-cp38-cp38-win32.whl (119.7 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.4-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (302.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.5.4-cp38-cp38-macosx_11_0_arm64.whl (123.8 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.5.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.5.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 120.4 kB
  • Tags: CPython 3.12, 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.5.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9ec266d50439a467adb2010e5f1923d96d45a4b09fcb8a69d0f750eb952c9330
MD5 6a93db7e54f56b91bdd112fe06a8b7ba
BLAKE2b-256 622d0a8fa7cc8da2cb1ec810c8146172c27b6cbf301224edd2ae7182a4fcc3d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp312-cp312-win32.whl
  • Upload date:
  • Size: 117.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.5.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 86d939ad5da5b71ad6c6b3b493bcb5b796913eaf9483ecd03b25c21c700f2a91
MD5 c1c6dc02db4bccf1cf7fe5b33a428790
BLAKE2b-256 f5722740bd53c658ab4d9a967e01e3d3c07f85ac38e54439341832cf92a46fc5

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.4-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.5.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cb528ac7f55e57e9a8333dfab07de286953e6cdfd855a75b6ed4c39fca3032c
MD5 76f2d24a27a5f328a8ac04f5d8e4eb15
BLAKE2b-256 ca723b1b4402bd6e3bf79dfa4d2639d604556b195ffb4dce33f2ecb6649a629a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07ba129f64c9da029c1359fc91c8bb8f7efb8513653f2eeaf3ffba5f86b315f5
MD5 e1cd28b196a099d758c643a3a33c5708
BLAKE2b-256 f6a81fbaa674108d6cbe296a666337fd213e733e891ce3aa7f038593a29dbf79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 121.1 kB
  • Tags: CPython 3.11, 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.5.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 df5c6ec85a9adad524b5729fc6ddc163188132e02c535c10d7d236961b3fda29
MD5 0b9f9d9460962d0eaedd22a0c3160d63
BLAKE2b-256 2d9a59e705ba967362d8e23761c3c7de309f6a241af579edb42d79a76bf28ee7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp311-cp311-win32.whl
  • Upload date:
  • Size: 118.7 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.5.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7350b425417b867f639edecaec9b8fe0803ba1bcbe6137be4f5a1a1c4f125d4f
MD5 a7ac3b24ceeddc9cb62457aedad8bebc
BLAKE2b-256 071e2cca4ee412343dfbff14b204483aef5e092780cf994ab198810314988c0f

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.4-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.5.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56cfd8df81eda1d80343bbba175323b8c2c433e68b206f34c326d4107da362ad
MD5 4a2eb4ca450b4c487d4e167601433551
BLAKE2b-256 87a04628b3791cb954af7354de26594ade2364fb2090602e21f01dca298a1780

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84a77f706cb70920031ca359a2972180193f77ea0945a4b214dda354d8218324
MD5 1202b5ebb3be3ebbc76106335a516f45
BLAKE2b-256 0443eb6a602cb2c45f6bb4d1c8d8a55ca8c5b04aab7ea70a04978a22f2ed4149

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 121.0 kB
  • Tags: CPython 3.10, 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.5.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 48fe6b9e49aca67106d8380f78f82d7858e572021164a88ae5724c18af689b57
MD5 245cd66b2ec108080580dacf1f9c1bbf
BLAKE2b-256 000d305ea092a13454054d8394dfc4079752e30f481b136eae6a49ceceff5541

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp310-cp310-win32.whl
  • Upload date:
  • Size: 119.1 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.5.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6e334624b284d6cc26fbc9ea48cc42d2eead794858175c22595415b7f00d44f1
MD5 6e63e35cd409c856a761635c66c8b991
BLAKE2b-256 88dbe683b56da69dbe9271b5b8b4587b4a4fcb1ae3278bb22a90db5647c5c9dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.4-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.5.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 708f3bbc254438d38317607519219735f7d8b24273b46d384fa32cd805d0ef6c
MD5 bff3ef686c0dff85e196e05022eff490
BLAKE2b-256 68b7bfe8f3458427f194362b793ed4e9218f3e86648cdd56b546f25b4ccaddb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 daa05af035570745c9d1d5ee0d0dd18f886aa44ad53851c5a8ec33e0bef67525
MD5 913188392d0f2aa5aa36eb17c4703231
BLAKE2b-256 9f965dcad288de4fdb9df18b58653a0fb4fc688d276673cee84017f96ab58d3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 121.1 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.5.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c06e9a59262d86af7c47d592165494d2e1facb1948e7a953a1c9d5cd786c728b
MD5 6576b1532f0342d1f44a1e2bc7b18084
BLAKE2b-256 1f2fc5fe45a94bba7ba1dd789f859a673d7f52654dc2410d413c2f34297503cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp39-cp39-win32.whl
  • Upload date:
  • Size: 119.2 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.5.4-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 52fbdd6f04ff00590ca3f8a88385435eee5feff380cccc0a5885c569439af792
MD5 41412e3923a8097eee4b327c1c7574f1
BLAKE2b-256 e0c1db4d6caa0dc2bbecae56c6f11a15d08f07671106e26f380288b4d37cc0f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.4-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.5.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8588deb9be02898a3dc904a9a4b24a3f845fe0e898c56ae49b30b907f0e89b62
MD5 a53f229e754e631de5bc7c23bb535393
BLAKE2b-256 b9ef71bd553e05c9e6bfca2ecfc4e1841c820f2334b31e7276437241583d5b46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b657acc7fb92a3799dad1ffba85727dfa352ce206b08886d302fa42fb370e3c
MD5 456455ea847964fa94197b7c4165ae22
BLAKE2b-256 40e3527cb738a2635660ca9e9814dc83dabf7fe72a8540ae45b743d55c9e8b18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 121.7 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.5.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3ed6a4318f3f1754d6678840696c208b920aeea4b3c08ce92ac62b8eebac08a5
MD5 b00053d8d821f93a8173cd0fc6880e99
BLAKE2b-256 d1414c02f6ba1f2b0c3069c9b69da8b82ff2973252fd9b96ed04b87660d423ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.4-cp38-cp38-win32.whl
  • Upload date:
  • Size: 119.7 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.5.4-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9f63ba21d9497188d6938910aa685499fe0e4eed854e50035fe38296288cbf59
MD5 f6c2fd2e9a5b665752de9559d66ecd01
BLAKE2b-256 dd5c76c3139dc24413810c213e7e2eeb3f566f7e4927cdffb0305bfbd355b860

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.4-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.5.4-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2dcb9903f05d70732b9ce2ffdfc81be7344469a0051c60db5ec9841109971b8b
MD5 1da580e859d740da599ef52207f2a708
BLAKE2b-256 a275d389f67f64737b38947c9bc1b41a412de78785755ce536c825d4245ea859

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99045e0cb03e4ab11da27ae7d7f57f4b20855d88bbf813a7d87608351c70b0a2
MD5 78d397bf30dc6f146df23283466dc424
BLAKE2b-256 e06dd0349654438b5f308b79beb7d9c11aee11712fb4b76ab85b344d9169a4bd

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