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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.825-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.825-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.825-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 85e7a9f4259835dc5d53538b791b2dfa1829cc3fc7a39e225135fcb5fbe68c5c
MD5 bd477e68406fd6eb675e4702c607d8ad
BLAKE2b-256 8e0c6308fccf286f8ddd0145beb6e286d1baf1e672445b6f0386a35a48715e2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 65fb2a1d1c72c4bba81a6ca36e1ea05e7a1c53856609dda2dab97ebea7aaa539
MD5 0c674e0f829103dc72ce0c98f519db43
BLAKE2b-256 83edc1cdc7f03236cae7b102690c1c771c66458a56b074bb6559128870ad6721

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.825-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.825-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5e1944170948e6ac3ef1c8b82b1add9b5c5f806499e5c6a0670909c4953ef93
MD5 b3e3289fc75b65f8ef002ecf6e7988d2
BLAKE2b-256 135e933f2642afdf4f5620a3fb92da36eb5e408f6763e265711b183dcf05bea3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ecf2610a9232a64f93ca08f7b350a2e742811707045ceb7cf7ec397e14b1f412
MD5 e7c7d0c8893e97873e98b6bea1dae89a
BLAKE2b-256 171b88b4e2442cef63ef99d6a12cbe8fcccdab81bc4557a193a741a4ec0662f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bcadef41de7e881016abec43247748cd48acd5f3671b6ab377638d8664bc6319
MD5 dee237478bc2f00029636dafd49ba91b
BLAKE2b-256 b1df53b010b31890d3dc09d7cb3e3ade134d5dfb1377aa9217262ef23a4f504a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a6b813251b8e4cc3cd971f28fd3d3598f4c33b29a2f66a1c723a4fa938b67437
MD5 8dec15696ea50eb54ee907ecf16d4a0c
BLAKE2b-256 41f7b42156c4cbf54e75ec30b83b86c2c5e9a19d3b47bc73f139aa41693908e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.825-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.825-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19a625a593587b40586e79db21acbac020a4b2c6c06df57569b77e97cb3ab8a7
MD5 da6f8f15cb1ea1b55d0c581fe7a676ea
BLAKE2b-256 02012bc1e2e5b21e441a590b5f545838ac51b400a33a548703de75a96ea49c51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27917f2aba47c00a37a053770b29fc7296cca6f40b994cf318b1158301926bed
MD5 e2e5e611a5d68c7aeda5ecc6f491a723
BLAKE2b-256 fccab972d07d59b650e58675875f9dccea10d1379594effb6d22a2405e6869eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6f344d73617430ce478b45c18ff1175796d31b22a5306ea7bb49a8640ec1c8ee
MD5 f664ccceda25fe47070571511366ea45
BLAKE2b-256 52b321952ef81c19c8f84a5dd81c5c23c5d09e4a298da1bc3f93a273ba3a0231

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a375dcdcb7f350684af42f2c33f666851a10b994e3652f9c678e67b7caa30487
MD5 28952b1c76e7f1ed71fb1d24da91e868
BLAKE2b-256 20793771af3687855e32f0c16bf2f2ab639e1f7b5a90344613604f3231f6f2be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.825-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.825-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6dd24b246bc833197933e9ca38dd365e72776631647f3b834c879b80b2312b6
MD5 4cd2f493742668e3e389f34538319c2c
BLAKE2b-256 40a5d13f0da9a26a2fd9335139300fe5e2029f8dfddec3162b7f78a1fa0ffe0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d00ee148360f9b4198d30e2c6e1ebde622b9d9469d02e6f51973b96f62e7df33
MD5 5c616e896e9fbf58233c13bc03060a29
BLAKE2b-256 f7831b8a167c7f4126f0cbd20c55a044fed197bfadf5e7f47b4124bb41f71c74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 62e66e2d419fd89ea4e4e5d29840f751a81efba8bda2ce7de59672c891884ca9
MD5 2e2d1361c79792ae8527e150d0000ccc
BLAKE2b-256 ecfc2913cbda4afe624696d8ba8cc92237d0586646b278131409e24ed8099630

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2e1feecfe1a6e8532cc01657bf0a70689f2ac5d9bc64c2fed7a5d5d03d64ab92
MD5 c14c1b86509b06b319a5428357111119
BLAKE2b-256 4b8e5689e678c4f5eba1e5c75b744286e208f03d750e1e73fb7a961dfc6d6fa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.825-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.825-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41f5bfaa434ecac6c61dd9baf75426a821928d3024ebe9cd298cd9ba97fe5487
MD5 d3ccb60a5b725111513086204bc50c74
BLAKE2b-256 e95ebab344985fb2c52c05344457aad5c3f686acc643c35defb32b7ea99d7a43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d322eeac4dc91ee8cf3f2b00bbbb9b7b950ba17097787113ccfc4a91748877e6
MD5 9ad4f9f0dbdbf6b93921d0b5aa1deb98
BLAKE2b-256 adbf0c92d828186162910f0c7c3880a3a8586567032aa2673a0cfe2a38c09429

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c3fdfe40963cb72721d14d0765b6c353e91561756af9e061a77d5a59525a3b08
MD5 9156703088e8f86a496b641c2c8f0d62
BLAKE2b-256 77af3f93d123a7b40f743d9e7a772d9204138da805ded454a7b2ca8ec29f214c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.825-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.825-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ea178205e97207ca4f98f1d0fbabbca4a3007135b6f73b9f37c784e3da705648
MD5 73a097e890840ff509c5bb808dad36d6
BLAKE2b-256 d31fe27a930c0a20fb3ab3f8e1cdc178857b2711c34c3de2bce8b3d0d946ca79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.825-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.825-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ca3d9a5fe549ceb59324880bf4b31def0359fcae3f9f8ef220201bd8d9ba493
MD5 a84f45618523dad3e4623ee1996b8c65
BLAKE2b-256 afb5c7c74904bc9221ef99d923110b8849d768eaf8fdb7f18a8c70b4c3bb843b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.825-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ebb69ba56d1b110bc426cb95f3626fb359d52d6c73797240d1bc6c78e3269fd
MD5 364cc4bbcb6310a4bcf969138c6908d6
BLAKE2b-256 772dc58cde277d1d310d7f93918610a547695559e42bd92ed77c2686c6498152

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