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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.557-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.557-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.557-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cdf6f56cf99042c3160aee7a474895a519b73e87b43d4c8a1327fb8b0e6fe91
MD5 e31c13e4844521922300ddf39440fd8a
BLAKE2b-256 909cd451e17c68118473ca3924c19eb2e80569980c0d0063617784d2fa37e335

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1155fac23126c237fd0710858b013c4d9972590ca675237e7eabdd4b39dba343
MD5 665febd8b24fcafa569b00f8d9f63825
BLAKE2b-256 16777cca3e429a79647207d14e844c3517620cc6d0f4bdfa49544899b77e0293

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.557-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.557-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1dadc303f1010831bfd638e07033121b2fc1463db5fc4343e7d697586317dce1
MD5 71b146ca0671f0f9eee6d42e0c633698
BLAKE2b-256 b7ab04cde89d5cf1eae1db097785a85c241d36132bad3d52b87dd15e26bdf084

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5c812d6892b52ead6d6cb758bb840529f389a23a48e4e13fe498fbac97d80fc
MD5 48475d5ebca6addce6885498bd47570f
BLAKE2b-256 098b74f39f71aed926991be2e03107ab12b0bd0e6979c4310a19df2466268113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 110996a765f82c30c866dfe3c4fffb40132795dc5e9de100002b494556f112d0
MD5 a33164d4d23d691b67ed75113bc4ef90
BLAKE2b-256 68b2eb5e65364b0c44bd5f6dd2c5418a52e6d758b59d21731444157ccaaca52b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ae3717d4c97df55a4b3ffd7b749fc99e82c3f7f8804570a0c50d16b17386228b
MD5 a53cb5d0bd34c394d2033b0180709b31
BLAKE2b-256 2f6897c3bfb878457dab4824bf35462ecd75dc5532bee797f7556e1ea00714a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.557-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.557-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10be5a93347da4e7c2e912289dd1bd680b9ea14c6cdfb88fc501d623fc4bacc2
MD5 68a1d57bb3da5cd17f77e9ce6993d2f1
BLAKE2b-256 e67ad4dafc91ea033941c8c0aa6679adeef3ef03cd3e260605fbcfbe14088ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2b2cb8777e5c75b294145983e7530014a4838aaff797db383edeee9582f37b9
MD5 7f4abf2df56825c4ef870952158e9492
BLAKE2b-256 2ee112f5cc77e6a15db6a4c968deb3a453cef6e070061ddf8925a9e9f610f50c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 805f6b0486cc13366bc1a388c78c18ffb0dca806918f5e4e14b3bba58e93501f
MD5 bbedc4ddf7ab01ab456e599beb7628cc
BLAKE2b-256 0dbb33c667ccabb49887eed3e28383768a4ea1677015ae140f8f66180aa69cba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 84beac66b1d73e235e4c3c82d1d7a1d877efa3e41b2f82a014206a747297f1ba
MD5 7e393e8e68147379fa58af0d6489ad37
BLAKE2b-256 4a858fb888e37dc6dd1a9be6f9c31eeb5b583f13b2ef744bbb310ca553f8fa9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.557-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.557-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd26a887ec6d2dc844ea1663adf85c573d47bd5009f00c91f6562e5cb44ed526
MD5 0cda008dca8a2e0c02b560689219655b
BLAKE2b-256 d3a9f0d61025bc771a016e59b590d825141701415f0f69dc86e9d635fe76c3f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd25e9e57df8497ed57fc8d07b6f8b4e262d152f521f26b3ae7da8c813e8c0dd
MD5 f669e2327ffdca2e177241519a8752e4
BLAKE2b-256 27e8fbbb05724fa28430abeb9885ec6655d6a8c10b75431556720d26d01e76d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c212591fda94c7cee742754cfc41a10736209f097d331322e8b94497e813cea6
MD5 8c6df8722c75e7866338365207857b99
BLAKE2b-256 0b5fbf9a825cc30a27b4f969251c6bf4aa4943948fb72db7f39ea92b6e151502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 590bb2ff0db1f95d42fc7e391773db1dab407763165df5265e05710b56f16fdb
MD5 c953a571439d2a7b30a1f1e5f99cbda0
BLAKE2b-256 6273a7f7970da7ceca7d669b96c0748c1a34ebf8a2044ff64a166696a72e94f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.557-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.557-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06c4d790cac1179452ec4fa874e3b1d7d4f05d4c7f5c7656bb52ae70ea0500cd
MD5 8bae2e4a63eb719742853b538145d0db
BLAKE2b-256 b8d681573df6f5a48ae56bf486d4078e54eafdc691ff8195825d889b98505dbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 946a6f69fb585e78dbc7ef87f00f47cb5d74a86bb4ee1133f411efbdbdf9b3c1
MD5 01ce2091ccb84d7d3d7ea2d1a9270b0c
BLAKE2b-256 9364d7cc41ad5b5e3733763fd985f0d14ed8898cfaff1701699f42d2ff02ada3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 111860aa4ad956255dc4e045b38697ca03bbdfc465c7b4533ce5ab86cae1b2be
MD5 b54e92aa6eff367d9ae8846ed7a732d2
BLAKE2b-256 e90f8d227bfdae5fe81c98208042f85c878e60cfc4f58e90c57e0098483afac2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.557-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.557-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1bc2fdae39992f0c24d90b0637e925ba454764bce6bb6d450464c53e499bd101
MD5 33e75ca9bc44785817309a02dcc5689c
BLAKE2b-256 aba471d9770f137920f252fe0ce0e64a421579dee343d7692cbb1e91dde61bf8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.557-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.557-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 858487c3019388d7e74828642b40d1d1dd83c61d3b73851f68693b95df165caa
MD5 9c47cc32104fbb3c780b9f9be84d38a8
BLAKE2b-256 cf5c99616971df093c2d10c9ba4f3f9da162024d2ad85ed2bc51fc4e2128e6e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.557-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b4a031065da8a514b436a22f4d1725feec95440096ad05f9d902f3b3728e76b
MD5 e1f44b1a93d347a45575f9cc707f07ae
BLAKE2b-256 c4f33d17286bd8d0105967403290e0911338b1bb35b1403fad46702ad86f7162

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