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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.20-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.20-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.20-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.20-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.20-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.20-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.20-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.20-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.20-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.20-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.20-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.20-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.20-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.20-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.20-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.20-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.20-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.20-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.20-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2170d9878c0f57e713e2eb2a84cd78d321ad7cc6216e538437f8b499881474e9
MD5 252edb3e59fa4702756ca11d9bb04f15
BLAKE2b-256 505e73bb530ff76404106f2780d354acf676ee19b78800c56026e182feed215d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.20-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bcd2b23989e57f39a2d309f7cd68c58b66e87b95178da33f9ae71b1d986b54d9
MD5 9a20ef806bc22a68a15b18b6bcc6cd8d
BLAKE2b-256 019a599b692d2703ff1e9d3be1ea11facdadf8bc5960293ffb4478da402342b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.20-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.4.20-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 11ba737fadbf410dc4d05d431f54aceb24b26788b9300f059de2859d769a057f
MD5 32bd1bc849c1936b1e36436d798e3512
BLAKE2b-256 3823c827bab5e8575a2e46759eddbd83cb8f3170d27925e507425edb0834b1e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8116d5e8c3fff15a43286e82481045a0ff905682c478065de686ccab39369065
MD5 67533da855a39b625027b897d241000b
BLAKE2b-256 6064ef80e34e8f6aefbd6cf4b418432be4ffb1eff8d3c6269676c07602ba5afe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5e8190d02d2633f728c3455a857cb34db9360b2e4740c0f804deb2c9357e6eec
MD5 4a2157910dde5e0c3d8b4f976bf58200
BLAKE2b-256 21c76ee436833321b73aeb9684856ff694ad9f111b15b942bba6a61f85e30030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.20-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dff51373cbbb1fa8243292a5f98b522ec398a2a02dc36a120b7d8f27667154ed
MD5 8221e7d1ada593c722a175d9f06b7442
BLAKE2b-256 841e0c3568f837e6f1f47287c1258c5709501bdd628567238d99c97c2f836e8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.20-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.4.20-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a6c9d244df91808c292e9f553b3d9bd95c7c041997eae0e8b691d4cf7a8040c
MD5 5e1a0e64d950112438e0a33ba486ab69
BLAKE2b-256 fbb54989cd22aa0ae7f4ef7838d9565f04ff230363e1e80c8ce86f6dcf5574a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.20-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36d93d8575ce6dc39fe17e96dfba31bc248c3684923889b9492b238ef21265b4
MD5 1ea4ef4e6ef91a7b3eb625e89eed457e
BLAKE2b-256 f2c77caacb0421430ff89c59147110cfa28940c7a1a64a73b0768ca75107c01b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ac347ac86b1bb2a5b3794f1f19fe60e2f49677336c9e4ca39c9c72775bdbb749
MD5 5080b3b7fc866138e498379c1bf07d89
BLAKE2b-256 f6e3b65acac50c37512b1e62ade16c1709ef328f6540515c8cba33f7dafc26b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.20-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 55c12a7a339832efa94c1e0f08d41c887e4df8885a45b3ed151cda58814f0744
MD5 5a8f0f5579a9fb6b0c900095c28e0727
BLAKE2b-256 9db26f3f3ee28b505089e95d06ba215ef7703ba19a353fea6dc30ae0ecdcfb2b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.20-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.4.20-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d5748147142627ddcce3a52b205e203c244665a36bf98d7fd2ac8f5676a3b44
MD5 fd4c2561e657e754a5e13c4937b4ae2c
BLAKE2b-256 3757b8622e40d9b583e175b031f8af67a465b254a407299c031c42bf1e6ffd99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.20-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52c248b2d7523a6ea1a3ee6224053bbd405ac55a8749b0358133dd43c7ac1e1c
MD5 c0ccbfe4241f866893b31ea755b6c07b
BLAKE2b-256 e0e2c0a204823cf2272b7e243af706e616f1ee6e9f89aff159305c456d71d5e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.20-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 07ed7189c7ce967e0efcd26fe17d7ed15830377d8d1c5e822466fa8bbb8f7c7e
MD5 170c7a9f52e9b0c4a7c315dd0a086a9f
BLAKE2b-256 06cbac4d16ced6c654afba621e19b2b6c1721270438782e6c5bc85eb253e6022

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.20-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 456479ec711d2af8c0ab3056d8800948a6897dfcbd04abd37222c7507fc037ea
MD5 1cde45c071c16014242c2121bbe9a178
BLAKE2b-256 034ad3a8b20e4ac25d6c1540f459c45fb110b766f8d15247bcc1448b39dcbb23

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.20-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.4.20-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 865a275e6777a61fbf2bf0d987e9de36910b44b7c8f79fd58ede0affa8a05d3d
MD5 87ce921c62e48e7d9a088284a03e1cec
BLAKE2b-256 0f0babd7bb4271c2880af30bd7c55f5b585e449752d775bbb6552e25dafad077

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.20-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d292f002ff82644c37b28bdbd49e8ad8a7ea83e818c12519c5734d880278fc3d
MD5 ab0dd327b76c2f17c5dc4c704a4074f6
BLAKE2b-256 4855b20d5eae990bd6b63c16dacdf09f817ae7d3b8ce6a0787d9d38cdf7ebe08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.20-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ab7b38ae4afe1e97102708008e493594502d7f95e2979ddb4d99922e70d8d392
MD5 93397ca84e472a4625d8c21cf21cf526
BLAKE2b-256 ca0fe8c2664e546fff0aa3309fb168756c278c17d2b9e5f71ed957d20c072ced

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.20-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.20-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2d9824c435cd4b53aa245ba7d41b426b9a8ddddff9f8f155956d941312e3397a
MD5 9bbc2b8fd2f09e447287d68b548a9178
BLAKE2b-256 b55f929dba35b4ea7a505b3718fe8cb6fb9d7f33b435cacfc4874e9cc52583ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.20-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.4.20-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0c32d29a91686d28bb547243d8eaae58c7ace3dded7f15a5e382919cddf0547
MD5 b191b246e86bfc6c13437e821d49fc2f
BLAKE2b-256 e151230d85a1a74a07625aa2dd6f7ba11589ef4df6699287f4756bb355dd3b81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.20-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d3af6b3509775d4b5a9609ab22066f2c4729178551d01a26211e75d7c239e52
MD5 7c9a7d2dfe6f05b5e0ff3dcee425a019
BLAKE2b-256 f94d6c91c95729e219646e7471824057d60222a0778508b0cb676dfafe4580c4

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