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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.363-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.363-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.363-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 47828bd023b3c619238307f47c41cde77d07500e75f5b04643b2f117af4e6673
MD5 d8eb576bf176e07f430273de6ff5bb2f
BLAKE2b-256 4e5aeab00f8df81d63d275f2e9ae6a6acbd998af4d5bb430330df38c7ed63609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4b7c87493bba7ead71f3fdfe60338087aac7b18771a9d06774dc7af9a55c762a
MD5 77a8672e699ec266b76d164729d8beec
BLAKE2b-256 6cd6e7eb3e2dc910f3819e4a7529f0f282f36780e9e525287993c6eef4009e9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.363-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.363-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efbba73ab7915fca2e4b2997bf5682eea66e80e8cd50b7bbac33c96c49a06190
MD5 295f7c8f5579e06bdace1eddcd0c3eb8
BLAKE2b-256 c2e581fefe17f02288e3ab76d611d6091c83af0dc2f2c7f27b71f5e9c7de974b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d23ca57bbba89c54624764e4d96399ce5e6cb128c411f6944e6b8205e0156581
MD5 bb26b6b35b44d961b8ad1e3cbd2db4ce
BLAKE2b-256 a307b617b0efbc019dddb820167a5932f5aeb73325d5d8dcf64d68897a2adec5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8d020b7f0fa32e84b476965e03c9faf5375ebffe0a09698c28cfa6c9c4f8c492
MD5 f6a9f30b2940ffacf09490638c5d846e
BLAKE2b-256 76c6ff57ba846a0f17d65259d8536a27e5521b8ceb378dfb7d246f68f0f1f3aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e04d8b5cbb5260728ddd92e814455609a578c9390aa9f27d126d14ec8a0e5e0a
MD5 74c595ab8020b279565f3a0d36e5529b
BLAKE2b-256 dcc9f46a7e0c11422d54ad00949bf38351ba9f72f5ece8c8e0721fbec547faaf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.363-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.363-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 056f65be2a8107ab71a9832d04a97cc9028bc981c8fe43f3359feba279e4f72a
MD5 66ea771888a6df94c9df29c2927b6ec3
BLAKE2b-256 7c95b1247b22bea422ec80f25745d6e7c979796a0e12bddb677112076362b7f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed1fce240034e6487ce3af48e3427cd6dccb26cdcf64644aa8fef33e009232e5
MD5 8499bf6657360b430e13ce73080e4242
BLAKE2b-256 2618a998becb644358b89370215225cd58a4032b66241b74bb03dddccf974bb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d0d7a844e26c466b1d66cbd9ff94bb57c123082f95e8a3966173c62a061f6b87
MD5 2e5072f347f062a7847fa54a1c06edb8
BLAKE2b-256 fe5d708d8dab35fc02b33d0fd8449d075f4b9ed8f5cf861b2486d8a897d69392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8a63e6709c9f591e935b8373a5f167853148145773aedcdfe6716c559ea4804e
MD5 c5edbcb14b31063c139ddec1eab3ff4e
BLAKE2b-256 7280bd8c804d8ddc9e0c9f7435518523f84e3a8d6ccf2885f5696e22b267c199

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.363-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.363-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d35310498930fc68bef35317a1da9e0699289f127397c1b46da4f602362f86d7
MD5 a501f2b56361909cea5161269f778e02
BLAKE2b-256 510e279ff74c4f24a5be879ce4a57a85e94c675af7eabb145af468d9d4951c3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6de296f5c95f7af8992f71aab05c037bfee174a699bb3e288d5ca775f8a53bf
MD5 f4de4f3705f5c4aaece192be05e1e407
BLAKE2b-256 d1b748f1185326f9da5c167d63dd548de33a68bc6a2da02050214b82a2ad1412

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ff3087fbc2f434d164b154ae9e18f3527387e0f7070746ed47bcc843f0897226
MD5 19c48d649fd34d4c3eaaef3eaf79fb59
BLAKE2b-256 4d95b83996450c12d2989ce93cfbe8d2681b27ae13c33f1cef5a849cb91029f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d08e04d16848e887bc6e869b7dee983cd5de4878f933121e6093d574cc3ebc57
MD5 edc82025452e834fa20e354ddeea32ac
BLAKE2b-256 221e187557317c368612fd15a30b4b2511b96a498112efea7429d360675f39d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.363-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.363-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbe6b54ede2c07dccf535e2eaf320892fdfdd5b750bfbb29c880f35dcf79d775
MD5 efdbb94b52bdcfa8058eecb08fa6f901
BLAKE2b-256 7f01dd6557d5b79e2a1b12784ea713159dacc9abc273bafb650dac0ae8c7bef6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abf5d9868b9d256bbf024cde361966f546eb7389609c1f3fdf3de5ed5ae56978
MD5 faa246ea0352b63a3221f56d939af079
BLAKE2b-256 5dc5caa099f294854c532e39d46091410d0d9086e082460d7001c1e56c12bb91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d60f4a0be49dae3bec71b1db0ab196f10755b51dc316d3cb4d3914ca4a721587
MD5 6de02509dc35f61954612a54baa01892
BLAKE2b-256 8729b6ed34299761c45ac270fd6f8bac73f047608cce66e602f4200922b1d922

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.363-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.363-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9993baa242ee9167a4df3640d3a44629e490d0561e2cd623ec75f9a554b952ef
MD5 4a08d1cf7af839a246a3ef8babf70a43
BLAKE2b-256 1a1238984a5aa8a7d7f593a6d52cb5f55e77977699e18bc3bc51deab30f4d3b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.363-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.363-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40e979e73c48aab79fbb4c08df6016d8588b4962b9be6f84fb368abdcd36c95a
MD5 0c2a3a3b2671c498c1df870bef326580
BLAKE2b-256 487a0ebf603028881fe427664d51251d6508bff2a6286e91be785985eb258c33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.363-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74cf52c94c80403767390e9228b14bd280eb0946b7649065d4e23e2b8be4ff15
MD5 e5fe8cc21470c393808e542e1efececf
BLAKE2b-256 d621b83247e089f5effa492376ab828baa50ef2904219ea370679f493ace2fe2

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