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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.242-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.242-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.242-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c8dd0b0e57b3bd4df6ff791028e2cdb7dd5a93ca772a8b66fab39da2fb8b8af1
MD5 e3fdc4f2237a5a81643811a5d87f7342
BLAKE2b-256 4f309b55f439831403c8c2e330c5160f5790602d490adff3f5e8a81ef25cb9a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 84c280065bb46ad350e9c37d3c5b9f93d0fc262bd64d5bf7b2949a74a483bbad
MD5 9cef5e499a871e3b86fbd05e8ea7afb9
BLAKE2b-256 24eb185ecc732b1f76fdb3b4e7115a0d6b36483258a57287f93646a5b66a2e55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.242-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.242-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b318d1048a034da3bd35b28b187bb4d6dd743d290c6d485c45dc1dd53e7178cc
MD5 2bab53ca2f9a8fda554f55d05acde45e
BLAKE2b-256 c1adf3a724222ebf5dca077a40d822bd630962697cc70b49dc0419ab3f7ee2b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31ebb63f035e68fb496cfc4f4a517eeda18c83f28a2a26bf4b7831439b44d6c9
MD5 2b0164d76819aa5cb81d2a68deb62af7
BLAKE2b-256 9eb7b95e65a3d8c81d31e55259dcbdbdbe5ba789924010c50ec37f0a18b2cf2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a255b75d5382a5b417a24d8549c5870dc621e1dba8ed76effec7121bf5a4b8d6
MD5 26fa4aee2549ef4ca5ce5ee808383eb1
BLAKE2b-256 672eb099d0e24e2f17501bd2764690d562ec670ed3de4b065ef634dd05b9119e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fff5dd0b5a9cd35f85d08976ba2ad09f2db3ca578fc638d8ff719493a9bef52a
MD5 da05dc39d6b8b13d3d91462e20cb12be
BLAKE2b-256 dff6944f775af9a44f911b29ca0702f54df12b0bcedbdb18b6491c63647107e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.242-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.242-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d8df68766bd1f46aaeb44f2b7eb305943535f3fb28f61999c66dc13512745e9
MD5 ef93a502fd44997c05e747adf7ebf623
BLAKE2b-256 053435589dcc8a5258c4b5fea0d11aad762d6dead426971f811c2f197b47dfe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c9ce3dbd511f2bb063337de42e2cd99c8aaee470591ff8697b6550b6e1e55c0
MD5 06a63b6f7b2ae0055b11ee3fc22d305d
BLAKE2b-256 0ac2ea65cd23779e4097a48501400fce003d9147c10c533d7d32cce2f11ecbd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d793bb5dfbe2b6aa7deaa22ef6badab53e847055de4b4d137c0d12aaf5fe0c0b
MD5 85576d4703983b94d73cc3a21d1e10ad
BLAKE2b-256 24e6d82417238d92ebd65d11a2cf3a4e6601d9abc5298f719aa5adb7039480ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f17c945f847e830474f611b5b27aad7d45d57132e2f907dffab6c2df1acd38a8
MD5 9470874c4be4719b51963a37ce4ea37e
BLAKE2b-256 4c736ba576c2b47ef5e32c576b24205c4f3c46a754b2c1d7f3e84cf922d4f1a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.242-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.242-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b6da094fc56119fe5832956cbb60f188fb9e65abdf9846bb0ed353170da966b
MD5 8a3d93c6ad19cdebaec791f803405abc
BLAKE2b-256 bc54dc804c8b8f74334f4ad29bc89b97ea66f8ec394633ca4ccd0c8055e95395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b3207f4ca277e495592d376900cf4ab21a197a9204cf70b9479f1aa9390483e
MD5 e9f36f98e5e2c50a136a5337ab654931
BLAKE2b-256 dd5cef86e51d055f509567d719cc50ae8a89b89ac4855d5b44f2052de6fcbea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b7ad27bd1a0204e5fcc61de6661d5debdd26e1322ababc8c3f01fbea0b75236c
MD5 f4856fff06a6597270912c2db450842c
BLAKE2b-256 e8da984438f7e2489bf4baf504022e089c7302d01449e215bb59f851bb02681a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5967e841888fc33c9af7630c1edcbcd7d0614d4a76225b87e125c9bddefee2d1
MD5 e3c87e417762b46791f15cc899488197
BLAKE2b-256 26d3181f195acc3bc807329276120ba48db48c8c19cb0131d911ce4bde290da6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.242-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.242-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c21304b7a64cbd392f87de14155563fafb337339dab52f0f90fc5b75583b586e
MD5 d23296545c471ab93c1553c0dbb49d6a
BLAKE2b-256 c34b6152ccda75c203a9619ee31f1379c62110c0505b1ff7c66e6fe633328361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46278b950a87281b40b6d558d695abe0b7d172f5cdd026dc444820bd57f24d19
MD5 b49e4077946958b31b274aebb75338b9
BLAKE2b-256 825ee1c1f853f9afd3469596ed58f5712cbcbdb812cb1ab3353fdcfbc9378dc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fb516a253b412cb5fd319f233d1c9c4f10fc2cb618788a76f27be08776328cb9
MD5 0035733e1c072b61de364e304072d36a
BLAKE2b-256 d1c06b1b8bee9a719c944b8154ddf9fd3bdd77ba28ddc891fbe9f909370b65d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.242-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.242-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cc04f0988a8682edff01910bf7400a5ae51b2650ba6847bd2d1055c5ae4fcb6c
MD5 298d3d00b544ad7169813ab5b10d328f
BLAKE2b-256 aea2ce281ee18acaa5653c374e9e63cb49c48cf486f32cc3817ec915077dc20a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.242-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.242-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7429a3cac8cbce0a33ff137045c2f8cdb401d174b41f63ec209b24ade0c7d4f
MD5 def909df522c5f150b8aa6e56162c2a7
BLAKE2b-256 3f3819bbbe844ff689f6ec8846453d5daa8df3db37bf363ac490ad448941d8f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.242-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 446ea8feaaf2fb102de4fde0d095b2fb2903cdfadaf15c7cc03fe821a4bc6f32
MD5 b9472f770f275d1c8134915f5bc0a7a8
BLAKE2b-256 c2be461ac1f746d63da7ef56cb83ccc019962386c88c91fb4c729c75fb0b29a1

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