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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.842-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.842-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.842-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3163f8283a70efa2cb08b07e69f95f06852969eec40d38065bd929e24afed1b3
MD5 466a00889199b230abee5c873129cc3c
BLAKE2b-256 a47a41ec3eefec9cb97a4974b8766c2b1364517a35cf884177c88891637372c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 acb610ebae89d2423ad8d0b6d18276cdde368ef64ed39c14dbca8257eb2f8ade
MD5 5aa050b763766fd789ea2c6a1b96c941
BLAKE2b-256 6d72dc7a4c24fa2b62917e44c7fae783cb6bc763cdbc05eeafb54dd6e2258fda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.842-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.842-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7db8773b633ccac711e809d59e3799689bc3187264077c6a45137a528e08d79b
MD5 c12017d4abdf9de7576fe5efb970c4ba
BLAKE2b-256 aca28e071a9569cac984a65bd491dd74e4b54117c863527b36262aa15d53987d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e1eddc8857e45be80b84ae725223d79105e7e6249d5af55f66ced0775842eef
MD5 b22ef686f55a5981dd251f81fef850f3
BLAKE2b-256 e45de15216529a80a658097a46e0922486d292c08790cb894eeef76385214de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a1fa35bff8663d515fbb0ec1323cd98af68a58da140e87787aa1ffec4c40eec5
MD5 0e1ab7bc9523210debe11566869c62a5
BLAKE2b-256 7fe613d774351b1c2a123be5fbaa222c3733b6e5755a0e7b20eefe47aeff4002

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7ca2183dc2ae5b4d0cc3742f78da120ad8dde782b0f1fc8e8b24d056f0424046
MD5 51c675eec1c5e3aea17e29501dffe381
BLAKE2b-256 f5e98fdceefc6c007e6ad8bca2d580e0581efa1db6e5ce7bf56d6e83b9531d78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.842-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.842-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bd16d8f1254a59c7d2803c6e0aec2c452932dadcff75cd0f20f284f45e43a9a
MD5 4920c96bd15fc90e2388bb15c12bb4f2
BLAKE2b-256 1a168351f4d5229b429650fb9841a72199305162da4f94bb9df38b0b1d9f6b06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7397f7de92e04e497eda893773396eb44416ae91008ae0bbf09c252669520575
MD5 e47728c5f0c4f38eb8e5dd2c8d89c970
BLAKE2b-256 dcb71eacaaacc99ebeadacb5bded0b3ce5dee6d113663311560c63f20bf9750f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 252ce0a6358b9608e20e08761594a1cecb1a02c4412b9b2e01de039184c03913
MD5 a03125a97eae268dc18f5593d15ac1fe
BLAKE2b-256 679536e7ee9c60f8a4b3aa84afc24c96e9342d0c7696c017358b310e9a11d3e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6c89a65cad7bc1caa43375c4e8456bbd0ac19294a58efabd5393c1bf547927be
MD5 5e7f9aebf067c3f387d6f57a5a3237a8
BLAKE2b-256 6f514c4797acf3180f6404594c07baddd08a90a49896bea4312b374081a1e727

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.842-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.842-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc8c2a295d6bd0ed67ca785ab195a88f8a0bda938e5e508c5d429931b87a0ca4
MD5 4e55a3c45393484616b9f7563c089822
BLAKE2b-256 0b852685480aa4784ab6b292ec0cdc49918859134ca0766bfe53485cb46145ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86ba3705687087050287aa77dad46ac8c228b5f2f92f3fde3198c182f38f5f0d
MD5 5e069c86df141bd17722e9ffdf6646f1
BLAKE2b-256 a98f552d4120334ce22b11f7e9ca77b1cfee2189aaefb375f3d935dc877d833c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1c1f5f5d383cc00f2c7207933545389b7238265c7396450640ee6a7acff6a1a1
MD5 4e79d36cdfddc74022a625efe13f0031
BLAKE2b-256 30ba369237dc52ffcbed557955052adb779bbf1ebacfc52fd2dabc519d60f08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3ea595d7b048e8d83e148742879781bf47a6db675905daab6f88fefe34907d61
MD5 2f040748e461324f148f4b585516d73f
BLAKE2b-256 1ab2477bad16366f86321a2d6cb2f8140cb63d48ece3c93609ba533eb9d4b5de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.842-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.842-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b0e70d1d12380f5f8260afada182a8b8d4d6c3824f4e7c657725c4b8b956089
MD5 db700a113e4d321c470f5a86f997803b
BLAKE2b-256 b941478a9b216dfc3f67014a111d5f275c2b681566031391737947a481be4d92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 397e0b991a5578c7737b2afeea067c66993f01bf2a8485d5a1f2bcca344e18ed
MD5 fce8156a043d63cb35d04e68081dca89
BLAKE2b-256 0171c8ad277d72ef9e031a1a62af7cc761b99ba661e87394900ec820486326cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7887d50df432b19ab66f9499c88b8948daa4fb6b16fb09e7e2fc013246e6b0f8
MD5 b85fd25f8fb47f402b16f97e5cb6ca6e
BLAKE2b-256 6f6455082d8fcf3c2596deb5017274f241cb2a07da30f62e568e70382264365e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.842-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.842-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1846e5dd08579161fdd2e3be6c20c5fa06e75796ae86ff174f881f47dafe2d33
MD5 eba23e25c9376f3f89659350cec8fc01
BLAKE2b-256 77602cc9ce61271e952ee920a31db3e7eae97cac84925dc4f9dfbd12e94428ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.842-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.842-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c3b1e4a2521e5d82a7cc6dfaeff7c215a4ddc6643d1fdc53d2a50be9f91d42f
MD5 ffb3d1360ebd958f5a741b26c928a067
BLAKE2b-256 67d0a5a4fbdc1d0181818b3527d4fcbbfc09db10bc7e9b857b276d4577b81a66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.842-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5efa3e22bbd63360d57b76013d3c9c4b3596d7f1748a420f25556ce600cab99c
MD5 9354d20ee9180c3463de900ebfd134af
BLAKE2b-256 8ddadcc7e73ed0cb865a129e6d6e76c3e826bbacfeba04539de92caf7b3570c4

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