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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.915-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.915-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.915-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.915-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5770993e74e702f84ad431d56d77e7441c1f901e180590e067b9f9cbe1ede24
MD5 b7473ac7c4238faf9b0e6eaac31d44f7
BLAKE2b-256 8e19fd59d5c36a81812c1143fe14df674931b0e831aa3689457e5d6d6d6efa9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-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.915-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 69e569757b4c92b4b4996f12cbccf74b34513ef6823dd09e7ca3c5479e852097
MD5 b900900ccf313fe742fefad2092fa7c7
BLAKE2b-256 f814deb4a614a728325a6be81db02dac7330637f323aa843eecd0e5d566bb31d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.915-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.915-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbd729426eb605ffe5cbd8bc23008a9c8202fbcd3d902549abb1ab458b126eed
MD5 c3cbbd9d0b26d5fc168b19378c7665df
BLAKE2b-256 ea7602f6c5bd96e5f6ec8a2da32652a540449eba6a3e4b0bcf00b9b431ac30b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d045da2a739c6dc4f5b3916fff6aff5a3863dc9d34d0c05a43f007c246cba15c
MD5 98877dc9322908503c27592431ee0b71
BLAKE2b-256 c00b6187c56622bf635dfa1ca38f8de2862428fed845f1763437d53b616c4b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea9072ab1ae01234b5a1b83347a4794bc048a6ee5178c57da997921ccddd873f
MD5 2eaa7251b775e135804b1d2c914e2e65
BLAKE2b-256 e04b7035f53aa933fb5d7e826aa6c0d637840065607d855138e1207cd0583f6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-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.915-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 723e7d4d1f120b8cea9abd6fb5e225c19139b49352edc814b479c87d23e4fa0a
MD5 82d59fb2dd752d36f47721cb02df0374
BLAKE2b-256 8cdbec3ec7dd793ab9d01b8bca9ec872714add7e2da85cb9160b70416aaded3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.915-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.915-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de11cf1803aade0fb42fd148ad2606f5623a1f92b0fb9c2c3415d3df942998dd
MD5 ea799cde3b3b534884415d7d651942eb
BLAKE2b-256 9a1966bda027b4815094acdbe1f8d81247ba63d3649e967b57e92afd4467ddc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f2be0c7c3091a9a12db94eb7dfb344eb9bad927f47bfdefd07f5302798aba76
MD5 b816eb0fb841217aef6c3597891486fe
BLAKE2b-256 a6551f4eed5a270c599bd3b705a8ec015bb6531bbdc1134e5e5498193a8bebe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 971acc4d987ef18e5ae0f8eb4d56bfb8a6852babb1ee416cabbda6173a508ea6
MD5 50914e6e329d2e544164a7a49874fbaa
BLAKE2b-256 587a903d3208d6cae53e1f67385d90be8a46c4c4e36bf41253e11c02dba21d55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.915-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e79ed4f33699c5023abe2743454b667a7f1b6b02dab8e44294404c806d3cbbe2
MD5 03c59a78eb0af96d5939291723a7ca50
BLAKE2b-256 08395ac029d3eda8876dba258d5a47ff86b108b28e33ba929894fb0bd6d5858a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.915-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.915-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c137f4cf1a0e178742b29986223d925fab82cbcc1e8619f0850ff36ccc3b645f
MD5 243fcd531919755e7dcd971a49a1d67e
BLAKE2b-256 4c730528d6e22cbe6ca48b0c5fa6ae71335e03bf98c3ef0de63245d3b716d514

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75fee15c574e5fad5d0c1f87ab932323ac8e4a5907de6bb5840fa6b0d3433750
MD5 4bf21c7220ad3cd1984339b3f5a4305e
BLAKE2b-256 715a7454c05fbe47e0c9f828b38fbc9472d6f8e9ff42522f236b5261a961fcbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-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.915-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9a96daae0459c8a56a6a69110457ac4240b6bcea65a211c36cdd29ad9672baa3
MD5 23f2a28a4f3d36a3783917f64b978287
BLAKE2b-256 f6594fd5baae3c8c45caa5ec1c711fb02dc88b747bd8905000cd8d8eb31661e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-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.915-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 581ba078728a6003fa294c4dec13b073817506d3d59e28ae3ffa1ee94dc87755
MD5 31315bcd251d57027a259863b48bf900
BLAKE2b-256 9d1bce47680debbc7dcfea65cbe7479611599a13beabffd1f43521520b88d5f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.915-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.915-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f9dcd775f0ee415c43ba2a7233a3472035eeb3b5fda53ffe925cf665302a1be
MD5 71dbf3d16ae8580d03dc2e877a0ab200
BLAKE2b-256 f2b04a7500c4c7975c464f79c6eae07e5f8ff71fde3b07e215741191e56a1490

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2237ae86495e3c292c51fb859f5320c0d46eb7b8278230c5c907e4b866666fc7
MD5 ef7717d0ce26d14480c69a09411947fd
BLAKE2b-256 85be3ddd70f99f36bf1ce14d434560455d2ff918b446443b55140c654e9a0593

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-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.915-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4fad9ba6e668f3391e8633178855bda5bc2e3d5b3522c6ca650ecb0dd1a66521
MD5 69e9cbbec20ff133450e5a20d18404cf
BLAKE2b-256 8e31f38aea488699b414af6409365cf11de73887ba6672688af82f177c9e186d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.915-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.915-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9a9555fccdb8cdd7d5669496a935880e9eaa44cc36a58dd7d6e48c65a24d52ba
MD5 7e0ebd78a78e496d7daa6e47a10a008d
BLAKE2b-256 1bfcd69074d4fc3daf9d1dc011f2c654b5e872974dbbd6fd67d36f4a6f6e6683

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.915-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.915-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 363dbd631aab094970b501557f8eaa2ad928175ce0c637169972ddd6896961aa
MD5 d231c5aa167b47eff2519533387f3eae
BLAKE2b-256 715b6e855c8c19d5b8a07208b398913c229e0fe81e714630dc93ffb1c7909281

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.915-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7071c841d10d7fb6de07aecc85c8370e228351628793cbbdbdecda8299921c2
MD5 9bc8945ac4b390fea781f713b3549053
BLAKE2b-256 c62feabac1c14981064241347b42b29582427f3b031bff8bc114448bb3c3fb7d

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