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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.455-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.455-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.455-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.455-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fff36130bd35d8e26b33f05fa3d2c3b1dbd3996201f59890175cb3de05957d82
MD5 5986f3464c79a16a425ecc7d00899c21
BLAKE2b-256 9c660d7c1e0b3df038d786f7080014f17b788ad5dbb80cac800283d95e83e7fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-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.455-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8d2399f0ecc48929b2ecfe140c43752c86048a6f3dd0efa053d04f6529165433
MD5 f19a1cb4ffcbf79574bd74b5189f8595
BLAKE2b-256 1cc14de45687b67c138db148ee9da1b7387d42e0b26d7dd676d5adb0ec420089

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.455-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.455-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a46e0babb9a62c02551a7db1645ebf906be6c23a500f807c292b01ff7ace37c1
MD5 aebdd82d0d0d587ebde009a934438d16
BLAKE2b-256 7c7c2f183a08a732a02d349a0d1e64f4f4167a490f48528a4b66b0cec92e0c67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6ba9c49efdc3b92b978ca87ab7224bfda65c03b20c6b2b2ef96ab6adccb6a63
MD5 fc0cdf959f72fa7cb879f4b0e3838662
BLAKE2b-256 acc6ba5150fc724b4ce59c9dfc9bdcf4817d1eed41f2150546f0cdf21a72949e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 867534cb47d9e5ec9eeaedf47e0938e70bfdf1df050d1807f6a3de69aec99fe6
MD5 6647869e7c35f0750a54e25605b90fab
BLAKE2b-256 9c731c9394d2e124209ddedec0a435b86ab906685501cee44a17aa88fed626d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-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.455-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5cc6c7f79b38a51716c5091b7fc9aeb76432e633eb50f31a44b1aedafee55f97
MD5 9cef14a7c1e6be893be2c4267c016b2a
BLAKE2b-256 496b779664b8840935f3e372b4781d31b06f5150986063d787a6b0120a8ca2a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.455-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.455-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af7ca508cf37d5df00aad0f59c0ea7ac374227ebe36359d98022e34948208bee
MD5 db0e86461033ca8c848ff61800713013
BLAKE2b-256 aa7606b4f0d6d257a4ded1a737f39c3d12e9e749774250f9a68afbd42ea1395b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5c81454b673e6d9cfa1a10554b8f26d52b4183df9a2e533f2d9ed5c4859bc5b
MD5 0c981db0fe29ec8f85c07e64e99ff063
BLAKE2b-256 8a8b087adfad97c3072afa04828d3879342bbac1711e782a98ec9961f8f958f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a83e9159dd91b8bdb068929dd848cde75bcbe7d0f4f7eeb79296cf43443d744b
MD5 6b28b12f9387c788eaf5c6f97a796304
BLAKE2b-256 8c94353229d732ed327934e84fcd837ac16584d2586741c00f0ceb556b10d997

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-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.455-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 399ebfd449565ab6366d2daf669c173eda7940fc522a7cd07059375c64ff7793
MD5 c6ab53e02c5367dc60697e010d3ffd89
BLAKE2b-256 d74ed802ff1fddf853763aaa3a7b9558f9e8ca2ec1f9e52080946e34d6ec7be9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.455-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.455-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c05d5434d6ac176dc2ae51cd857a09e24844fb1a3ecf3272b6f94c690881ab4
MD5 7893fe8d9972fb34f6fe0912d3240aa4
BLAKE2b-256 aefff97b6f4e7d3da9e94cd880aa18ef0fcb969d3283ea3892011b6ba3087bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b73cecbd25a26edae7c3c1418b9f3e4eab60e5a00345f2a43b72f5f69e4d291
MD5 58de301f56aff819af58f57b3c5fbc71
BLAKE2b-256 9dc6643b2dd43a012cd93991f1946cbaabbb774e19bacd0c3497fd4968f656c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-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.455-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 764a6826d4140dc01ed550ef1d2dc5e8b8e8028b61e38a501e4b28948ffcfc6e
MD5 7cc9faa87db0a977adaf3f9006bbc3c6
BLAKE2b-256 d9f64ff77f84052b26a528a5bed5ecbac587e78c750689f201b69478c817e5fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.455-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2f74cbb9ab1052f0a2b3b0d58a76559f5f7112effea6e3c9543bf68322070622
MD5 769f1511b0887c9a3575e0fb1e9dab62
BLAKE2b-256 bb366d33b20fa0a26adcda6df6191e914ef55b37bd2001beadab010f94cc072e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.455-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.455-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75c638ef1492bb265dc4e84c99711d4317e7cc37da6c5f9c7b1ee8c8a4f60c00
MD5 db0acbc39965e07b14e6d29320d1cce1
BLAKE2b-256 1716d3db519c9216a69a61086e00de4c17a76642a6f9458c8e1dada74f003e11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfc7c9608afbb08df724ca869f1efdbb3edf38561aa7736c93bd96a64ea76ad4
MD5 43354a2fb82598b0e634865c1d04f296
BLAKE2b-256 f977485504887d6377629169eb023aa4335d16bd181e1b0cf4ef23cb92f564d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-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.455-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d90ead44db61ecdd8c8da8e30f7bd5a9ef8ad5399f95319aa9d20a7030dea068
MD5 649124e28ff7abb8d07842f75f6a3de4
BLAKE2b-256 1652923723f50ba471d59f19251f32ca2abcce5e7e962b15648b5f8d42f98f39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.455-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.455-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eaa50f891df2e35e2825026794551edd1512e2667fe37b06a677bb3d8c893afd
MD5 fbc99cd56e3d985f00f1b2f26c27e2f9
BLAKE2b-256 4d8eba5ae05ec582ce53e90c0fc0c70c66982351b9088088b6152c6d47ef4f7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.455-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.455-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54b853e6ed6986dd512624f4d1b341551013f22b3ff06544f2fcdebf823cfd5d
MD5 30dc5353ad408f24f6f2fc5d84a89400
BLAKE2b-256 75d19a64eae2ae818d8fdc0785edf69ce9d6701d326eb387bae13c1401747030

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.455-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca17362304e2639c3a8c94646a445d2711cf730fd82db5a67328f7cda8fcb288
MD5 f3eb127bc2bb92c3e3e929cc52e2f0f0
BLAKE2b-256 23aaf6f709ef230d347c1ac16e19f2eef9d40b3e938e49d9cc57b082c0e4ade1

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