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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.10-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.10-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.10-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.10-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.10-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.10-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.10-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.10-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.10-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.10-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.10-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 29da6035033cb8b072663b28e2844cfe420178ffa3433a38596d2d918ade5656
MD5 d6062bcc2b0b1feac7bcfeeae467dbfc
BLAKE2b-256 053f9a5fd0169e47e3ca1aaf19a166c595b2475e3cadc55d2a4bd8ea74c81457

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 36167bfa8094aef31333af2a865616bdbedcb1d8a15a150ba5bb2b764c629eac
MD5 4b17654147ad54a015a3b9ede81d5bce
BLAKE2b-256 40382305d5bcb00fec780aad1995aa1dc94f9d3b4a4a1852971fd909f3d09bff

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.10-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.10-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5cdce692ad91436d41168915ad0a965e06380dfb629a46065829f6bb1964dc4b
MD5 86ad63dd9e4bcdb6c576a0cf44be571c
BLAKE2b-256 9111d44282ec7250330e42ec9aaa09e3eb3caedfa7a5c8f66f6a8f786f790b7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d534233ee070c4f1825b2b7fbb35ec6e8b01552553c9f18ac78fd5241a51027
MD5 f84331c98335efa4a819cfe6ea4501a7
BLAKE2b-256 86e682b52992aa5af955f7d1e100210eef3e255ddc65bf010398ff0170be43e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a38a0b85f1191fc0028c1560ade87aa5851d8e88f3515d1b6c47a80990080f63
MD5 428a74618d343d7664639eb39a5d47b8
BLAKE2b-256 2d54891658710b35eb404966f3e2480678d0a6c1ee291260c8cc62cf4c9e88da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 846e26cf78eab49653e42b254bb3d7ed36e9bcaabf97a4223b9e14284964960a
MD5 419574c8f6a6a47944d6e3ce5d671219
BLAKE2b-256 beabf33db457ee29c72b614a37199359e7b4fe2eb962557064a57dffbacd6acf

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.10-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.10-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d439c80bbaa8b346d6db5f3e7e68a5ec8ce4d3a1ca270663c11cabceb7989f0e
MD5 6821f23b6cb5e5f9717890ac56868ab5
BLAKE2b-256 81ffa95b01d07991edd54924124dcc40b3a0072ace0d00603753a9f05bf74138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2cbd730e82a5ab8b4d791e97c3af1ce5f5c1fa50203cdbab5992087e1f6fd0c
MD5 4c7d1e7d5d32375d4bb2c5bfb3a1cf6f
BLAKE2b-256 fa465e1b3bb528ff51ff691c9ba7da05118b1bdd71b624b3853d2409414e0308

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a0a03624a568905110d6bb3779b6f8360a995547e2d886b168cbf4a532ef179a
MD5 74f4504a26df0f73419d43711ca212da
BLAKE2b-256 32ddf2710b2a0a2b9f2be2431e25f2a01f07343e9b1c90f0e0908584dea74c30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2869fa6edb8c3dda2fffa6d2855e0e69dd18251a869d1ae6f9c1acb95d189d63
MD5 bf3888c5311ce897e58d4a8b0006369f
BLAKE2b-256 174bca7afdf61c9b475191903547bf73325c9681a86a834ade4a7065051bf1b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.10-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.10-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b392c5a4472fc627d4ffec5e8e5daae8ba8a7401288b83efb1aa90e9efdf3a40
MD5 62cf3f109cd2da785ae56a8d23c33201
BLAKE2b-256 2e6deff415ae2caa079956c030a882af75973b751646a093675d70c2ed660873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f092867c0f6811047cb7598a33355eed3fae39a4f0b9f48981a162331ac6713c
MD5 68747835d294ca9d8afc029fc95f6df1
BLAKE2b-256 df5f1c62214a7afb7d3609965940b95d4aea527a4dd813935310e8981583c494

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5d822c98562f64f7608b9775509171e3c9077f5dcf6f6f9522f4d7d5e0c0599d
MD5 9d12f24e037dc6ec8cfd47135a47b0d7
BLAKE2b-256 a534d2ea1f4f972cc016f4123ae8fb09cb85a670a6f4c86ac823fd9ae49ad6ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d13520c74af801fa6c5bf17efdae9b338290c76c9dfdd702e07680f64a80ddd9
MD5 639884d617110a936ebb61153a356055
BLAKE2b-256 f050cf8cee55010fb4830a8c9a6e57afa85ba2b74b9b1cab47f083a908da3c2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.10-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.10-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1237a30ee0acb0348ab327f7a790fab914df330568c813460e5ecbef1ec545f
MD5 38a8e8ce0146707fd1cd32e6605e8bea
BLAKE2b-256 23629799f03289465563cef5dd0f3f99104a2489f39943404d121b3c90d63fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.10-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b1358979ba3eba33ca8cd5d5aad374e0075f3b162ca17f2d17c8df0990fcb12
MD5 391d302044b22d6c2e8bad2838240d7b
BLAKE2b-256 46488be090ee7e67f4e037054439c91576defbf46c5921151dbb73f43ea4d6f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aa1e1e90dfa6cc1edc172b7ec2e40db31061b959e97e5946e6a6782a407cc758
MD5 396f3f40f7e897905669939ceba63809
BLAKE2b-256 b492e1ca3b1511c2a73573c44b5c24d8b454661254e3eae77ca008cae1981d2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.10-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.10-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 975184c55851db8447c0d75c06e024308eb43974513bc1923c4eb866406850e9
MD5 07051b6cbd79b5cbb3e30604af898a29
BLAKE2b-256 29ece2119346516faa2487d0c8db6076e522f952230729fed61301f3b7ab9a04

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.10-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.10-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4172ca47f4928360ebc658fb4fffe85bd68352131cff34d8ca501bafcfe14c7a
MD5 60870562a8b3877e7b6f0b0917ce180f
BLAKE2b-256 f165562b346d199cfb09c107f58137e9e03cba16d971ac9fcd8f9dfc8a532ef0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.10-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29ec5a3811b32e6bf1a909760202cb3d53626f6711ee285d686673ad5b153548
MD5 b772aa16ffe9fb26496a339ca26099d5
BLAKE2b-256 7365e5792cac9d04d5a893c3e0ab1a65196327fe3e9d59ce837de08fbc92f2a9

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