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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.728-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.728-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.728-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 210cee8c8ed2c06b6d8f6a6560055cdca8d3fc1b74b5025efd178c5f8bec4eb4
MD5 c918a22e28c938fdd2832c95dcfddfa1
BLAKE2b-256 271ea09e9a00220a9aa7d5058a3b06ac9a5852a8f4559c41a31888139ddf42f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 80e3f0292e81167bd4ccedeeea63530ad8ff8e6eda5bfa80b56904ec35c1d883
MD5 e3ae656917f7b9ff20552f93e9ef4ad1
BLAKE2b-256 8c24922ed8a8ecd7440c67011308082141786a168bad9845170495874d86c4ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.728-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.728-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de73e361a7779ad6850f69ebba184aed00f58523534f86489b7ab1a0d409b403
MD5 1f1ecea5fbcb8ac22252913be86fafb8
BLAKE2b-256 8f6220ca337ca2d053867f0b516e28a2fa19b08e3fb8ac45bab60fc373e0cc4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 635fd2d6e7f5dd2d2c027d5b1b36aeae1cd0ec3044c64f569fb141781fb8b901
MD5 1be2dcfc40c41f2d38bd608eb8aac5df
BLAKE2b-256 6d70b68386e8acf8f427c0a0ab6a0aa1b1d19acef18acd0ea6a99b4e6bdc0298

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6b8c45e84f87c219046ecca4513736e78e8a85c96c17b2981b8ec5a682ce675b
MD5 e27ac69d9add1f31a086b32a94e12636
BLAKE2b-256 aad3f0186ed1072788886288dea47e804a9287ddf2120a09b5537b8322553bae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 680e9195078c216560ae9a13768b052f74e709914f94d4ba763052d01be09c00
MD5 68bd5d0cd5ac19971032530a7d2a01b7
BLAKE2b-256 92705ff1104aead8eeeff3c1ca6af411dd4ff3ecf9d7d108eb8a144655bc4c42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.728-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.728-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7c52c31ea99a05a7f40030665698252c22fd6fd73729503c3ac1c7b4bbc17f09
MD5 64fcdb43b9e6bdc937e8ce1c98fe5aab
BLAKE2b-256 9a5675e31bbe0455be170b4039b00494060f634286a0433e0a8cca810f0bc015

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6207938ce150be7d7b535b10c42478d3979f0352e9de9fd328f265adfa7a2f2
MD5 83565ef90caa27156d9584ffe51ba745
BLAKE2b-256 13ecf42a9705c0afd1c04e4cc2f01fedda6e36a0dd2d762a964dbeb831b68077

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9e2d5280ab58a053b597ae116fbedb6c05a6ee8454336fb4afd2210efbf143d2
MD5 f451ecc7becd08d896becba57b42cb2a
BLAKE2b-256 1ebc0fcc2563a383debfae92f0dc0a229b73943cf05c71d0badb5ffb26023dd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 01e0c109cb3400b6f307134f1ff55566a5b2486e80630ab352dc3e7c8dbb0e4f
MD5 03839e1bfb57ef2ce2a5ce0bf281760d
BLAKE2b-256 6db6ebe2ae51e423d765954ed32d7f4db414d41724bc0dfc74a46e8e722fbf3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.728-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.728-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4a4009a9d1dc41d23c0cdf173e1c4bfb7b0aaec2bdaeef20e1b66513a3f14b2
MD5 7c9a72454dce05e8cd849d8c37d6ba4e
BLAKE2b-256 3116b4d32d9dc3d083d64e1121380934a7af9373340e1d53b1348baeb3b35cfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4f354a861a3346e630800f5340d1584b89bc4bcfe13ab36d82ea9a71efd4ca5
MD5 2ebaedac5eee67578b3ffed304f41288
BLAKE2b-256 6d6d01c06b310000f0c4da676d4645b0da1042495e085193c58b95fe80882b35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ce4a4765fdde24af32d77ce21efcc9ad77750b24f0002ffddb77112e52887892
MD5 75c4d3fe727a97c184ca5b62c947f6a2
BLAKE2b-256 2042343c51db78f063f33a1cc5991904752ffa95c94392301fe22c6a9325ae58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 166ecfdd0fe6d206a3359a13446e3cabf801180966a1a121159f97fd2ebc7640
MD5 c940c1b67d33d8fc00246e13237d8cbd
BLAKE2b-256 d4ffe6f3c00ce7cd13031c455007bf8e856ce70558450865d162fab4002b902b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.728-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.728-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41b33b3ca9569483998712c7037236a183b6d83e73e878d283804eb4ee9466d6
MD5 32c0581f6e59842abcaddd148b7b9794
BLAKE2b-256 3ec9c812c7b586b32b49f68b016ab92160283d7a1ca2ea2e62fbac6a397ac9e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ab3e1cfd6c34a3c9dae4158e64e07a0d28ecc1d4984581b74814faa31ccd758
MD5 1f87ec5acbbc7c4e3f4e78abd150dc7d
BLAKE2b-256 dcc05e9e5a439614e50c22b0511a408cb3998f52e789b827ec6484b4324d244b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4505175d11d67b953bee1fd65734fb6246add50eef9e196dd795ffc6035f0bce
MD5 3d8b904afcc47a6e9e8f272b063b688f
BLAKE2b-256 2da3a5f79d64b6cc5d6892b86dc7819587f513d8322697c4556537d12e770c8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.728-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.728-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6617aa3501f328a5887c2eda588d2c19dac0e1a94781e8d3ae8d599438fbe7f7
MD5 4b5cc20a9bd3faf3ed919ce86fdaf773
BLAKE2b-256 875089f155d3cbb29dfb17ecd48ddd3752dc5d2ce0c605e680836b573f518bb6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.728-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.728-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5239a2bf474e956b92d30417320eea73f5b3a21113c42c737ff523132fb7fd35
MD5 aed6033b8061cb28fb77b9a204205911
BLAKE2b-256 54f1cf659aefe3ba11289b90cacdf6f2ebf1f74cac3900d92cdeb8535c504e41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.728-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c936c90137df43c94561e3310b911e472811169f14c9dc7b647af8e1c1689e2d
MD5 3624cfa6cd84fb08df74b4971f15fa88
BLAKE2b-256 faaef6771ccc5fe9889d3602327b43c0a5e507c8bdc31cb1eab0f2e220714aa0

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