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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.18-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.18-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.18-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.18-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.18-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.18-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4606ccc9ced5d50da722dad19f419b38f350c51fe4ab3c9bd3fbc1021d0bb2b1
MD5 5d74e76fa3f435971888168dfe1467cd
BLAKE2b-256 9fb1fcedd511847ff9df7d3d04dfcaf02bccfdadd55a4c5da41d998d4cb27ff7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a28afb2a9aeec75eac0ef54c58598181c1553253b288cb91d813d14e2ac7ebfc
MD5 f6e246c02f30bd76e9824a63dd315ced
BLAKE2b-256 48ee15cd6f98f921aeb6cd7cd7dc886690b761324ed9ceb0bf959bb2b0347876

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.18-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.18-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8f735e09d686bba2776e854f29d6d5646d5295c097f3336a9d38c53bdbd87a4
MD5 00247472847dc0272044d1f0e4563b52
BLAKE2b-256 e8f16be365d8dcdbeb6202230c2754cf07a6e84d6232b7250ea6d3a41e6c6935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6beab1d369b01fd9a1012214a2bdefa768e5d6cffb4cdb094d9a0a7bde7226f7
MD5 9d9d81eddcd8c4bb9994e0d03bce7cd7
BLAKE2b-256 60fb69918a480ae26b74646968336940c0ba2fbd9ffdae03aea47bde17a0b0a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c56fd36e5c0ad96f1b7845d75a033a8a76e60f7f910301de7842f9ef53d9dc5a
MD5 2b292808af0964bb268d191d61c04bcd
BLAKE2b-256 51f16ad98b620800482d77296b9201b6cc86ee5799ed04ba9a873b2ad8a3bfe4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0b54dab0a34814f62e8e550adf0802ca6a27c4bb3b05ddbf2772758da3bcc167
MD5 d64e80f9a8f2e3a20b2001732d4f7ae7
BLAKE2b-256 581581e8c519fd0d5dc22b75b70509b2b8bf36efbf52d6d68fcb56c61c0250f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.18-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.18-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 466f981f0e7636a7fc2f8df24838a5c4923b524ffb436ff805a777d641c01322
MD5 9a7ebab893075ffd6eabd391d923854c
BLAKE2b-256 40666eb9b9100a6abde5809d76774c049f7636feae1d3cf692512a559831ce3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ae9c18fd032ec970f78aba25b9b77bc1ff4e00d825fce7c7bf8ac8f8ba9ba3e
MD5 52f1b9343451d2a17b735545434e4919
BLAKE2b-256 34755da6aafd3b728fbc5339a4f8c30756a9777642b585ecad8e9e7ec2689bcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c7bcb756cf113c9c91fb5fea5a337eb7bc65377ef97bbc0de2029e00a690d37b
MD5 3ddfbb4fafc831cf8486b9eaab91c904
BLAKE2b-256 b5fae00a18c06ca972f3c6739b0a9a27c46bdd5df76dbc7b9f42debeb89a8843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9e814e0d90fdeab3ae3f8e612103e89c9bdde8920c7a236ebb2168b0b4781778
MD5 3ac9484e614568200beccfd9ac4d11e5
BLAKE2b-256 0120b9b7d663180f61a8d1016bdcad9981157b9ee9a899350fed34537fd6fc25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.18-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.18-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e799509777b92cfe93f75b84be52026677f195655abb4d71c1000fe4d74eef6
MD5 e4e217fcaac5f935147fb8723fa31ee0
BLAKE2b-256 2f9d58bd8da925d2648ea4b69f2c7227aeed4d97393a8801560bf6daf80e284f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68f1f89a63b75c986ebecaa7393a78f485609c58e98f920383f9a335f7bb1f85
MD5 17c28987613b163b1cc113cd92b9553e
BLAKE2b-256 bec0a4148209c4fa01fc419e233f26db80ef3335327e53ba66442caa8771f524

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5e69d396efc580d58ac391fd9cc9e117e4148b0325118f1ff18ff038bb02d3b1
MD5 cf37fe1d368245e87138c03a79579837
BLAKE2b-256 7f89be214dca8f76c65d2f5f6c74d3a7f77a3210619020509f0f5d03037d9408

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cd3c28dd3f4659dea77b546e868a887fb98514e21ed294d7f222f95387b0d04d
MD5 2ba5d46050b65a324707d076dd709980
BLAKE2b-256 5a027363128d1fa56e80a60c27738f0d82a901c9cb6be83b64c25c7105e5a446

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.18-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.18-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8fad56fef9ef2509bdc4b7d2d1a98e159690468b84824976e50c7fb12405bd7
MD5 1fb0ef0dc5b6c25604bdd0a828db8f63
BLAKE2b-256 f23348a553287f2269fdafe3dfda181c6db6cc7c127d30b4a4ec0a1dfece2fc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.18-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9652a7fb200b2ed674a276fc12f19d884045af983297304bf015453ccacf970
MD5 13faa908c8ceab71ae49d27b57dc013d
BLAKE2b-256 88aa21e850561b9f5b6bc950571f2d310deef42ec8aeaf83addf9b83300f26d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b0fdb6b860d308e30c370fd87e0fb47f2aef80be7af5882f21b3481b61a2b219
MD5 74d7835cccbf155a5ba8aae61fdd7083
BLAKE2b-256 43e5748d7f839e94e2c94ff933a53ea7a9dcdbdd58117af2a28ac19de61f46b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.18-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.18-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 560856c5dcbdf575a5e888b5c8a67afa8ccc60a5eacca1434355bed577abf0c6
MD5 3d17f1f99622d79236e249b6b23291ef
BLAKE2b-256 428913e56c5e321d95f4835dbd93e69abd2bcd33d59e5402ffcce2b11ea0f249

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.18-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.18-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abec752e9db4655f152bcc1935ba44f44831d9b213ab778898dc4c77226ec80b
MD5 32414f7d5e012933b680675060af8116
BLAKE2b-256 2983505de15a4dda2e7cb5ffb1dd12f7368ad3ad5fdd7fec9c1db4a2f6d303b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.18-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db76bf69a7760fec2973575cefb159d5cc87dabe6b3bc645242a8c335c429809
MD5 62c57832c4ef601390234ddde25024f9
BLAKE2b-256 d0c8c1ac4bdb922350249d9f4a029039988487e9cba89557334c7f7ba1b5dda2

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