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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.444-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.444-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.444-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4b84631637047b64476a7ec3da2368f2ce1d8718499d0e4fcb6c6415299ec75d
MD5 266d99c426c99491a5e2788f4dda1475
BLAKE2b-256 87de7c80e0801c697abf5d84a3116c40dc197f1352d8e7b782800f9ff8ee4b6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b6eefdd048cd662cdca09d6e73e0ea0e8e49112fa3dc975b927e2f32c8147fd3
MD5 21fda7ab6c0c62df5d89ff523f6758f1
BLAKE2b-256 218cb32ce4a7f3956405e48466893460c15708521925c60219ce80a5b76d6eea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.444-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.444-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f66ec45ad85ade5b1a24b9cab3825c182136961d53a33b8b1672b5846bec6c4
MD5 7f90bf45a0130784cd151c5d5ef2a36c
BLAKE2b-256 7acaa97495721f5a6a6ac2bcc8bc1d3659dd2602ee04eec8ae424fb04f9feff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9621f0d0b9357c39f6a336cca22901f9e3a6bfc28717a768e11996399164c31b
MD5 943dc3c2d61712cc710cabad8e70048d
BLAKE2b-256 43ee51058556b4c0485fb57bf29ebf741bff3757d995fd3721c52eee3efb67ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 33b16db06f1c9a0525a834ca160c58b9d302e17db0b73cb1d2a226ee887949cc
MD5 562316d407b78a53b022c6feaab34c85
BLAKE2b-256 44eebc8c6fd80696d8705027c73d681a58723f30d20396ed044d6172a2ab997c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0e12385511cfabed3affdbbd135ec75372eb7acb32188110d5806434be14256d
MD5 4a0b160f55bbc49ace51a2d74cb55c09
BLAKE2b-256 d2dd0fbf3e2427a0150f36eac427c882da89f922db9eb2256423c846caa2da20

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.444-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.444-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db97af716813d5c585be6d9bcf3e2915e23ff529a32bca1f506fcbdf86bfeca7
MD5 a50561d05e3e870d5b69cab8e33fd116
BLAKE2b-256 7b48b0428bae062343fbd50726a49c9976bd92fb4dee38f8605945a94c23c946

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f29e135a03646430d29193371920ddc3ff22337f92f1984cd797efd8efc2140
MD5 f5125e756c9b4ea29dac48ce871c1dcb
BLAKE2b-256 6092a5d9ff5f51adea314b53b349c61d9d40ae6e017496b06779cb05e30a154f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b58eea5bf865ba20c8cc7eb745608b533e3e1f932dda0fdf3c93976b4381163
MD5 1d294cb47b798330ce1d32652ddc8875
BLAKE2b-256 2a3eb0c9b018bf8079f6f7d66a70dedfb3e0af981a4c0fe0b3e77225f3651074

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a1155991359e4d47284be8b2c72ac45fb8a5d7e2eb455330a8d5a4b85f5d65ee
MD5 b0e9570fb99e4fde737d40d33ac8de39
BLAKE2b-256 4247200aba40294422ed02aa1f3d14f94a3d0d882336d688ecea9b1e42ccaa79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.444-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.444-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e61248f54fc4071ec862bef2fe2696f13c28a1c9a6c00b8690c95be60f540b3
MD5 4b878cfd5153e17d645ab90f581f957b
BLAKE2b-256 c63009884b49fbb8d7ebd2e33dc2c315271ac8306f89fb28c1c40443503a4e0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6988dd52195853b12e9ac97aa852588d7e5f5609d1e097a767862c23df4d3701
MD5 12de0536306c7bed4f62dbd9ebebddda
BLAKE2b-256 621f2e1962e5f977751cf1e1ef8309690ba03bd8e1b118de042b6af91e49e996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ac72297f2d756c8b4ba18c9102701808d8b4c478384c58eba9b5c07de426cd18
MD5 14329305ceffd48fd7a725ccab03d52a
BLAKE2b-256 7dba08702bf263e60f0e4cb474711b3d5c7eb9e08f9d237ab1b508ddbd7d01bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c36bdc5c83b5d7b9fdfb6d63ee653c841ac2ba00fbb02a91c433f4588845859e
MD5 6f2e28c5b4350910151384d1bf815715
BLAKE2b-256 8318bf2cdc1970b7f5e7541f7252712f4bf9118c9164ea493f2b8d41f183646e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.444-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.444-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a233c226ad4c6c10e4639b83ce39496a5eed19400c448ae32d5154e954ebba02
MD5 6b8552710099671022fcdbfa6d8277f3
BLAKE2b-256 ec98a4fa5c38b7ff189f567bc400fc07fa41e8c2e750d711000c08678b23d1ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ebda526a28ebb92f70dec32e3513531049cfce361cfb6e503d76d498b789a44
MD5 433b2738eee7f73fb57ea41120ff1719
BLAKE2b-256 3ec0fbe2ea45a807ed42d1c027f9add730ca637474ad3d1e843d35514e3580f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5456291b95a775ea23edb207aad89ca27b4198f805d6db4ec4a1118942415119
MD5 123f0ccceb32b5b8108215e908b76d65
BLAKE2b-256 b0c2139b8d894970e87a82e36abab7556c77be45bf028db5eca643f802de6bb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.444-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.444-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 12fd8dabd44396bcf01294d72d0793d4db0c448342e31c26f363324a71b16281
MD5 865943e2cfc319e925aa5a824b4bf1c5
BLAKE2b-256 4c5b7145250524f8c4ee6ca9602aea71390b29ab2918c0bad027094872ca0698

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.444-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.444-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88b6626eccdc5468fb28ed0aa06ae97918abf96b324a457d9c0a4df2a10dd902
MD5 e37edff28d24536d715a94c128f8c4a7
BLAKE2b-256 f3b70eed8a795f7402d1c371190875455fb9ef49cea66c50384385f0e378dc15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.444-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 431df6c672c2059e174c3de6ce81ffd11e604e40680881bbb42a6b74a8d7c796
MD5 6d53d7cfa715a3b4ba1a313a3da40993
BLAKE2b-256 49c3fa9677a42b6c04aec0c96163511fab57c730acdb4a0deefbaf41fe67b5f7

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