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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.512-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.512-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.512-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3533846ba4646dfeb6b063a9681668fc47ea41b58e595f3d8e91e34e294f09b3
MD5 d3c9440bea79b83e314c28c6f90d9180
BLAKE2b-256 5caf6db6754304c83489d0b7ae9ba50a1ba8f77c5f0b4a4ef842da9ce9979969

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cd98f632b4f36fac3f0e2b8bd5b7448fead479cb0a45a769030c6077c5726254
MD5 bb70f8b2709a25a317969c63f67a7b93
BLAKE2b-256 3c72fa20c1c24f540379fc20d26567a4ee586ab547d209c594554c5468c08979

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.512-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.512-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5c9fb4907adac928be7591df218ab022f78ba9c873fde925b222c660f8be2a5
MD5 3dec57a936c5fe3ba2fbfe48204784c4
BLAKE2b-256 e0dd625d56950fe868ee78291a656a9d0ed86df2706cbf13e486740a2a556ad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e68a4ca23318486faeff9488aefbbfbb902bc793b4f11b4015ce969e2ca79185
MD5 195ffcbe93ccf55b6da1bc846caffb19
BLAKE2b-256 6092f814e80e5c1d21aa31aec5b691fdd35abc3e3e7de3dcb964b2d1ee1f3f42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6808112d6c3f67d28c212a69ee516bbd307a164170b0fd99a71d3bcd77767aa4
MD5 57f6c84e6d883aecc8a0c83dffdd13e3
BLAKE2b-256 b685a475d8f6403b8c69ff2340a922919aa03b9e3f8d3caba1329f5626b0f5ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1dd854bd9371fc35eebf3eba2e94456c139e3f8054783bc7314583c34287c053
MD5 c64aafe67911264c797dd2eee9b6b660
BLAKE2b-256 f48d517bdc6bf628a39ccd7e4e353a2b5e725b0a5607a9e79f79baec96797849

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.512-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.512-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7abb5fd3fdbfcaaee8f78c3a174c2a0a275cbb9082fd15c609bee6cf47f122bc
MD5 1127f2947881d5152196d683e3f23d12
BLAKE2b-256 a205b8ea19ad9bfe77f2c46d7c04f0b480529d33cde98d860da7551cfd869ca9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce1201195138d1c89f1b105d6e4af864c2a6c5e99a22bf6b4a6fe69433c661fe
MD5 c463c8dbc77db87cbef08764c0defd29
BLAKE2b-256 78ea4c94982dddd7b4b7e004ee5f22ee02edc9f48d4957597e69d25c9a945bb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0127e29e686a8fc183cfbc782f195f4dd33872d43b9a6dc5b27c4faf3e20efa7
MD5 6746295ac3686cc5177cf88e0026c22a
BLAKE2b-256 551f32f513448412c8ca9e9c533a7a83156df872d40a82a007273b8a702012c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 99ff15ac7026192c0a428f36383fe09961b1fc25280e80b963cf130ea6003318
MD5 4fe4e0370fc2a0ffcabdd1db58730f5d
BLAKE2b-256 28158161cb9ff0d72436986e755893718bf9bcc60defc01688bd883a4dd88b6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.512-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.512-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d469001db26d8ea1c05331372d05aceaa222922525fce60259839cb06132ce85
MD5 da2d4798fabde7eb4f6c7d85fba81237
BLAKE2b-256 9211e3f521232e35e9dd228a388d676396f2397d96592000394d1d64911622d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe5b49875ecefd6a781029c26219b18ce550f0260e33508bb752811ea1c4d050
MD5 7783aac9538501079b4528ccb87aadce
BLAKE2b-256 affc1b9fdbb70c8184d964e15e43064519c27d4f06ff1797575dd3d0e8a9d278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9ed71a252c9493e7e387c516b6fcae06acb69355e757b2ff2601fa391d91c537
MD5 9ae18061ca17909a07d5350a836f0749
BLAKE2b-256 66565b04dac84eb0a8e46a6011ee40cd183e8d1e24e9a17a5847d9f99ea0b6fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 41cc27fc453dc88a7302631b682bee6a93e5c69b11d17084c505e5d110a2790f
MD5 0dd794b6392203902528669343ce6f5b
BLAKE2b-256 753f44b8579bff8c5101c1fe616329d28adea2e18f0627d46a72ee69a06e9509

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.512-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.512-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6dc89fabee6ff03fe67255973b2cd73e316b736b0f4af855c677854caea6f5ae
MD5 b2070e3581aca49b3233a36d3b919771
BLAKE2b-256 e71aa7314969086eab6e971185fa135cc8ae29047a25d5f8fb0da606c7f0e42c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66aa55e90b523e64cc3d243d250c5f78ca7c7dcef9e2bc4a000b6b460c385f73
MD5 42626fdbc164c6b23ad612d020a410c9
BLAKE2b-256 2576b855f5d7a54231d65aad71154a9c17bfab683e614795ccd16a2b133b3a3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f597731cded84d650690df1fb35a1cd1a0af8645625bfb45ca42d7d4a8206da0
MD5 17f868964df19dab3d8279aff7141486
BLAKE2b-256 71be026f6e727123863c9b68d70874f0e873e65062fba766ee60119789205350

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.512-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.512-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 83c70fdf26934c6e6d1705f27a9bc41e0545c161df5d94b976e41c0b79244c79
MD5 800baf4462555941fd56fdee377591f6
BLAKE2b-256 953d04e36d82547f235794dd9d6b34f0bf6bf1cb4fd667aef9a31404c94f0bf6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.512-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.512-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3216f237da49c6007908da949534bb8fa3a7082dffa107fd5ea9ff2bc8fc6669
MD5 ee1d3e4b24e9e81a4bb121ca12f0e868
BLAKE2b-256 266cae0ab46741a111c088dabe0f6f4ed7496bf17e5d3645a6fabf478835dcde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.512-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90f176275260c15e764934855c5cacd3c913631e5226854e0d7db301a591ead6
MD5 cc7535a161359d73a18bc7021d725bb0
BLAKE2b-256 8de2550fd68e6031441fff47b289a8f2e8fafdb3228f910c7d392337edef7d03

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