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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.703-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.703-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.703-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 32e2b492d0b115aa3c532c047203d17584be39a3b1838be0ab6d807dccfd23db
MD5 23852a194419fa3c38fea9094a339a89
BLAKE2b-256 b414d7b569996728b22e58f21c45b51ad64a07198e4576c987da900ab967a97a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bdd290ebdd105a6587b5c7bfb382a2bed53c7564e10046bb32c4dffd66e5f5d4
MD5 56e71afcb9888c6ca942478119833754
BLAKE2b-256 a3369e552aeaa1639dd9e7f51889e1f89a16d58e8f57b6c7d8782aae8c85a6a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.703-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.703-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae9ec1cb0dc2aac4c44b1d8015b1c346b069d4421134e951467b78f5ad342451
MD5 95f33aa6411a78bbcce2984211badb29
BLAKE2b-256 5142be23f43e40cd6a13dbfb0b4d478f98ec8e2e26a1c0b2e919d6b26b327c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb7ebe68a44b2fa7c4004834cde57b62e80d3d07932c9c4fe17b0ed55fb1fde4
MD5 35e943602e915f52016818411e799cc7
BLAKE2b-256 0e09ff0ed20bf50ee4c8f3898c7e55916c9dabbf7602cfa43233e378bddc590f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d4eddfc266294ccacb244de4d047fd6886b70e760f569d105b51951459087e75
MD5 88aa3da7decd5d2fcd0a01fc41f9273c
BLAKE2b-256 d606a853d2aabe28ee39ee9fb566b243119edd431d66e5bf19f7492c5f91e17f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6397516c6014394653d1babf4146eb16d17a3c0ba9d4704cb9f8e0ec71d8218c
MD5 0a8e9511f15a72466a4643391ae73257
BLAKE2b-256 574b9b7df8fd9bc05f3934678f703b6e7ba4f0b43baffe3c59755ff0799ddd32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.703-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.703-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2665765b405540e0745c5e517d2bb32f4d3e5b72a668c7f6b943d74df7472856
MD5 e42d7d8e339c1331c8a6bf824bec726b
BLAKE2b-256 1eabbf7bdff524e61b9b93644a37be823b335d88e63e1132fb774380ec0376da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 114577e2d648659711423bef19dd3aec1f6c171f0fff027890339fb887e07638
MD5 5d90748c34456bf630af89d7f6fe829c
BLAKE2b-256 2360c08ab8c57f40606e0a8d1c955de94b57a1d166b60da13a9efacbe2785a35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 63fd48b54042f8cb4134720c1fbb2f851a9c9f4b879bb6082d63c56c9aa2f38e
MD5 fb67e7658187c651235afa92ef9a62bb
BLAKE2b-256 088919a632ea4524a73b6af098ff38255b2e4d5f3595359dd47552d8eb2f6623

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 80f241e5e2d02c7dc14c0c0e3cdb6258c0c0d0b0d507106e5a85fdd134e93866
MD5 af91183baf44aa776f12b2b3a8bde82f
BLAKE2b-256 05791cf55220aaa2306f176745f0975c462cbd999dce9fb5ff15a073e149af62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.703-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.703-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf2cf53eef8a74ad74b46582f35284812e48ba44e48988357d00c2359f949cfb
MD5 b87b72134961cdf95135dd240e6d4e9f
BLAKE2b-256 7ebcefa9e188b5aab3843abca7c43eecd8af7ba9359fc4570ae7a41de1326cdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6ccc6d68ea89db54386068d77d9feeb8030c849d4ff509e9bec03c4e2576f96
MD5 bfc2780ed923a0f15bfca10ca5a9dc15
BLAKE2b-256 b26bc58afc03d1651361e3ee0336e6deb8e2421eda29b877b85b0c40d6571732

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cdc52205cf2a8fd24f30125c9ce4823d795b956605d828cd2ad30ac3f6c8bcf5
MD5 e901049dfa3a12c13c6ce2354ba1b2fd
BLAKE2b-256 a72695c8535eab017c97a9e9bf002ede740fd681781e6116312686f1dc03aa24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aa20e897b0d2bcba355a6eb217ef47e290cbdca1a2b15ab8814354c31b877909
MD5 989452764ee80c2fe4e1ae8076c01238
BLAKE2b-256 9507cb7dc23e5489382af3ef65894f2ec906b1ce89ad3ef9996d0eb5bb328be8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.703-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.703-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b861b982618f3465bcec760d0f109447452825f9e5a764670d8f6939213209f8
MD5 eeac18f609a707d3664a5a70e116c36d
BLAKE2b-256 a5da740d9252cb0076896265087ab982b8110375c01f50902feb8c204ac3f995

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03941137b0f18a5856b99f38baf8d825207ee2426c899a0d7b92c5308e4edcc8
MD5 5d13f0fe9a96ac1d0b78d96afc0a52de
BLAKE2b-256 5c0511b8778b864acbcbc610d7effa6aebf3a803acebbbdcfa16293f0eec80c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bc531ef7da7047f6f6b2c16b793f15186d8fddf94484dd661a9e795ad34eca71
MD5 d3709b7b651f253e8a945cd7524f2121
BLAKE2b-256 d67c14385337faa8df63ad637d1f171805a9292d9c5e1c582b61d24784de2e9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.703-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.703-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ba92539e62909388a1f04e064062fa79d10702df1c52cd0f6e839fc3ae07574e
MD5 766eb67c2bc23280c24bfe259271db43
BLAKE2b-256 ceb5cc5549f2956ddbea12aa910ca5e7a291c9ab2d4e0550f2fb660f0884a0df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.703-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.703-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4d7a5f8430931f059c00d38a2742aa2dc177df7af38aa7901a37c6bc8fdd571
MD5 41adb581587361a2cd3c2f0d5b41b912
BLAKE2b-256 00c9e6bddeba5a7ac741885b81acf13928bca5866c4a460cb089c1a9e7ee5880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.703-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2429e6b7cb490333955e3696938a6edcc9b877311ffed39c87c30ecdf7ed4869
MD5 49a27e654e654dc98ae83af9ea1a9c6a
BLAKE2b-256 402357356c81075cb8df4738bd77b2e4bebc00234ad842c0dc923e07051773e8

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