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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.692-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.692-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.692-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0e9e0d5593aeabbfcd97e8ff8c426b92b4f84137ba72f195fe5279dfb3b3a9a
MD5 9bb83aa6c15d8f9090695e89bc2eff51
BLAKE2b-256 508505c7534d25f96a1881d5d1e0941dedf005a57ce60b768041fc01dbc25aa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6af2e3c92fdc82a5bd2621419f89a9b3bf941858dc0093be8445112d5fabdbae
MD5 57eb6cfa5ef908ca1bbfe5b70f290501
BLAKE2b-256 016c2579be28be2e6d959e43cdc9cc4da6c951a3ad6bc7979eacad99dcaf7566

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.692-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.692-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 743039b087cf2ea6728b4acee43351b0f936097d6d827125f2eab50cd1cf984d
MD5 a3371953053bbe5bde4bb14aa461af6d
BLAKE2b-256 c57a49f26cc786e6eca54f02ac327fb7703987526b189fa55628a87247fb28f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a7e4e2ab00e0e8f709d7e4cbb661c9a62f81b7913373a69a935036a21c160ef
MD5 b5517011b9a8a00ca10c594ba38516ed
BLAKE2b-256 f621d455005a07c75b7633e6ad444574180d044b91da0f02eb0ab93cd7173e0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f99a72ad0077c354c195fe9b7f01e07f32b4b839c810c64b7b18f50af7e564a9
MD5 f14e762d80ad533f4799eb409077184d
BLAKE2b-256 e2dd0cb67db652546bb8721e820347802f3c456662e64db4661bfd51c92b4095

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 171377a4ab717be3ae79dd2cab170d7b404e33b321adbc5fe58f3ad0ecc20038
MD5 df2fdc67a78bbe542cd546e12debbc6d
BLAKE2b-256 90a4d7dc39daf51b437b8e49f9d5b52401789aad5246ef2bb44d9a71014d3057

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.692-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.692-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43a7d6d62fd371a8efe6be3fe25b3c47b8adf42ef0e9285b2b66180754b4c48f
MD5 970638e2c7185472f1f0ca81049e17f5
BLAKE2b-256 f510f65e78fd8713cbde006df65db860f76f91caa2a8a5e676b1ca5399644abc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8acd677ebafe0542dfea1dfa9727b61f7c525d9f49a486be9f2881967d68db79
MD5 53c1de3e0c5874452ed10ee7975ae3f4
BLAKE2b-256 7b588282881952746a041087629cfa6f5810e6f3571263fcb3ce5046b858496d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3e5f9a6f2cd8e459da5b57510059d47216f1df4768e7b545a6891452d19d408d
MD5 d0bc47014b310a85a1d78319faf09934
BLAKE2b-256 4a425786f1c6cf6bcc5395f02cf880885bd12151ce35ba7e8e1f6f37660d8d9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bf19eb8a52fc97b1881627adfb083147cb6c2371a7ad8b257dd6d99e99f8f37b
MD5 947d15cd0aefe9a42203da2176162773
BLAKE2b-256 18e674d15c1727f4cdb9afdda0238c5913f91b060a7ea923211644c574808dd2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.692-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.692-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db6131057c217f5f351daa88618222e7e381d21b5b32b537c8ed6c5269c43d1c
MD5 687a8e530b667983f82b38dbda5c76a6
BLAKE2b-256 ab9f4a3f5b0486ef9ffede3183744405de143bbd22d8a5a77664dfaa9928a146

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9aa9cb202a56a5a9ca7eff5fec659de3446f11a55de7d42d634486dba4cee2b
MD5 e0b85e955b4f14d6633c5e689456b171
BLAKE2b-256 8670d8ec9072f87600fefb949cee3f63c4269b25a23f84523b0d2de8f98b9a2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7afbc86a438af7518e1dbf7b691e755eb2757b418bd966a65dd79f38f6453b75
MD5 59680e5eb9629e2024c9abc0cf4aa228
BLAKE2b-256 0df8435696a2e452c12053b0698682cbd55c8a76941fadf1da377c7e42b73c77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d693a2b64c762649894ec1c5f90da91b18e4ceda77c9a22d6902a1b91cf7e168
MD5 6c15fda5fc449b6df4378f531abc50b2
BLAKE2b-256 566d3b19adb121fa9607de0698cc2fc3c9865f1d9b97afdb9fbf373b807c4eae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.692-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.692-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02a4b68431fa2ff13f840edd7dcba7fb2115386b11a7d2947bed1e7ae261066b
MD5 e2f12ae8251966aa304f2d1013e264fe
BLAKE2b-256 a52039846c4c75615680a8bc9b8a6dca2496788b91ac11b41ed2443a773282ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0da5c6f7143cd076fc21d9f4c8026bd196be742feb34dce9f46fd0e0aaf1487
MD5 741747e3e797f31b15da45a3341e9e96
BLAKE2b-256 72f6fc3e7dec8da3c8e7a4e7c65c03d4a782937a1c9835790618c45d6856313f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 60763acae25a572367a93e75f0676a2e66ce7d1b213787061aa77592aeb5bb88
MD5 90834c7ac7b6112ad7bec04dbee7a380
BLAKE2b-256 c394c239a9266ab3038b27537cc80e65aae52dd877563c1210a32b7a3cf73d1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.692-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.692-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 aea9780cdff2fec059fe64ac09c028fb76713bce143a8ea26ea08cb80e14f6b6
MD5 4158e471684993c034b4d3e691f49a92
BLAKE2b-256 b59e9fc30eb5fbcfc5b468b94fc1d867ea3d55424a97e37dade5b97e63dfc81c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.692-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.692-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36bd052591e3077fbab00244d0efb12bee6b04b92081e4da777f7c818d69c43c
MD5 7662da37df2be3ea21b2f2bb0ead79cd
BLAKE2b-256 6c94ab2f6e0ed7f25d0b130cd8a68e456591b38332bd71ea0c20663d6a1948b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.692-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f31ebefdbf7943e66d51a94714ea609f8b137a9edf78806ad62f6b681aa65143
MD5 ec8eb9c5c1623e0ada07cd1086380a1f
BLAKE2b-256 6448cfad80e1e6a8d2a759dee7cd8ea9132fff35cc8b2f1b8460f319fcb7080e

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