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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.716-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.716-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.716-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7aa8f4569a9aff90e6878af2763a073f4ea30896193d5700acc8e242aad41804
MD5 9e9ed7a96a6033709fc8756a88051d81
BLAKE2b-256 23a6702bde9ea5df8707973b175ddc7712a0fc13070ffbc24996b85d310770bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 423d6467641f44d7216da443bb4cbf6ba8ff383001846f3fec00ff3ff523a6d5
MD5 b7cf79272ae80af6e8d26463026e894a
BLAKE2b-256 51bf6db7ca6e75ca1e1bc217fc2d0f11bdd2bc88654a371ff8623cfd20c5dd54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.716-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.716-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bba8226a783d65c04ad5526de03f58b28fac08083d812190d1910f2a4587d892
MD5 85ea142e073ca351c944e70e6cdb2640
BLAKE2b-256 3f28fe1f3a8e38f31ba9a7033a0480630b8ccd8ba4b560163d1a36987688a7bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0d66b44bc0b8bf99ede41a7c1710d7db456fcac922c2c1ba40982026849e825
MD5 32a12ebb2f1b305a646825b1bba2a761
BLAKE2b-256 628e05810ed85d0fe41924f8c130cb3ff319fb65a777ab4da2078f1f41c254a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f81e80662e9b88a18c5e2a67b04071420132e0cf3cd07d88b1fecc84882cf5c
MD5 400730c1d732187bc5179972da13a8e5
BLAKE2b-256 0d1274393ba7089408bbf1bd6e6bc8026923b5d8facce9823a34b4dc4baf7a41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 816dd0007eac1fc7e2a164ff13ece530ea31b4e48eae53a67cd30c742181f6fe
MD5 fcd43aece2c7d78eae988bda4ab1c33f
BLAKE2b-256 615c9b404721ab2733f98df28d37750832d31fa14a6bbd96e929a1397074b0b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.716-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.716-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e750cd093b2388e32ba6e5d6ef8305ba6e9ac2a042a629e0555bcc65c167929
MD5 f9cbd92b4262a14ae5399fc84486e717
BLAKE2b-256 47ec9721407767019df308da2c4eca4e047cb39b73505027db556089c07603fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4537931a6afd3806bf46115c5daf966a1dd8d8a1d3fd1bb27aff2a9cb1080790
MD5 23eba2540f062b108f169eaa9830c1a2
BLAKE2b-256 2b8630ec63d5831c50aa80563123e9f27177df7b7bd58218abf4138f762b23c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 959665c1540f9e70709028af393a8d4faf8464e3dd0eab8fb178ebd84484aa1f
MD5 ce0ef15d14a41aae112bed9e2e1159e0
BLAKE2b-256 f889bf437bc70cb9050edf4251a54e7d6b398a4f06701e2f18f2ab4911cd6c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ece0d9fb916c6caab1165f1a72c98b8b47d7e16529ee4011a7c1ec1e0bbec70d
MD5 f554b0d48e91dfaf89eda81e744a9bec
BLAKE2b-256 049b01ac81145759864aa3dc64367b2625c02b41eb6e49f3a6a41d8f1b2a331f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.716-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.716-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 780f8d27b710535cd0fb6b2dc978a4e1359385d6fc9fdf9b5d563004142faef8
MD5 f865bd8bbf1f75fa46150e6836c53ea6
BLAKE2b-256 c97845a857ffc3ec18f92e6961132eb8f282b021cca20e854fd4a5e889eb1e4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb953196cd857b2c7a9223edcf68ee3f0e0dcb86ad6d8c73ebff3a664f0fdf77
MD5 d0bc93501578774f0f7c94a71cea11b8
BLAKE2b-256 8fbc9710b317e47cbc1a78aa6f3bbbad7303d84f7f4bcf92d66953312fab0a79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d4cf35f023b45d6e20e5635dccb8bbba8d99ae085af05f5b630a72f5017b14cb
MD5 123c03c04d9c121e39a4d3f7f0647ee5
BLAKE2b-256 cb8b27863ab3c196bcd540b07bf06c3c2905f4130f26c5a6771344f167f282cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4f4ba5427470e7315070ad7b1bda9056da5b617f27b76e67f5385e63175a14dd
MD5 9618d0d74be2999605d8d20765bfac5b
BLAKE2b-256 231bb490aa956deae0f15fab9fee9157d244d4e188f73f0a4c42502a6ec28485

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.716-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.716-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3c8d2ac7961529145b75cc29236444dc577a5ce29bdbc9ed9d720139cde2af6
MD5 86c4b44f81958407305cdbb3d2a7f8d7
BLAKE2b-256 44dbb90526de2f730cd169cb9c7093cdc8ad16f4b8b824935e80e27e0d4c7d63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7829ec79ae77e38f363b76027fb2fcffd8773b56fe803caafb427b7fa28a238
MD5 cff7fb4540e33fa0c7f94456cf9b716f
BLAKE2b-256 e82f72b74031780276ee97975c2693276d4b3f695f9fd01b0a2642123c5de615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a4605f3a833deb04337fe0dc733f85ec3f55aeb8f194681a363f38fdb7deb082
MD5 502e05b4ab0e75722f1d6d6a10c38929
BLAKE2b-256 69128d1d1e6ff4ceb5871477a003f641c1116bd0f6493142c05ed968980e0781

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.716-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.716-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 71735d2f3122002fea2bfd9c183ec33090b6991e18c77fcbd358dd905eeeaca3
MD5 fb7c02b7c2a3c8b0d7ced0d8cddcc735
BLAKE2b-256 9260aa1798345627e8d9029ce9ace3253bb6f0e2bee88d6d2cbbfbb3caf80253

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.716-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.716-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8247ae08dc2ab051594a17592ec7507f58e5ae7135ed7b920dc7ea7a6d707b9
MD5 ca3d83d44f29aa5ee3ec86cc84fc9397
BLAKE2b-256 eebbaa805db1ee6217a5de7d1ddc745b8b02f6fc08242a6f346ccbafed35510f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.716-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ec9ea9e13204985980b05eb93dcc317f26fd9c3bd145a2a71eea97ce2db92fb
MD5 2bf990745e314a031647baa274e792f4
BLAKE2b-256 d019f4f877908378c6237ddbd98f6af67822920177b2e07c28c468cef23e98d9

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