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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.222-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.222-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.222-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a2fa323a90314e4d8ce0c12846967cfb490dd441aad8fbd65b9331fbea370520
MD5 093daa9e2a48590c56d238a546b9a4d6
BLAKE2b-256 1806188b9e4e7280978af6c19a1fde0bfb31f253beae8c5147ab1e3570bced55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c373ccb9dc967ac2674792de302dc118b0a87646cacdf800e0b2167489ee8977
MD5 30059022375f1131d85805896b8fcb41
BLAKE2b-256 e43bdadf8de8fcc78e3464435fc61a874a679d10fbd14d1acc7f3c6b8d08ae60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.222-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.222-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59e2a19eda2afbe3b6bad166bd991ddfff6e324be7dc646534fa70331a0aa915
MD5 863cf691a38cf60863c03f6d2f220816
BLAKE2b-256 a7ca1e967c8f421bf88f2503d6f187245cda0758e102378afa51a374f0efe9d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b227846d60632ba74070d9b4aeee6c3173c6ee31f05decc7875f19234a1c0c49
MD5 ce3fb2a82062325e9a30cb2d837cebd3
BLAKE2b-256 835526b744d492f4226e0f0e11c7bfef7d2bcd0c82de6d1ad5f1a329f9474763

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dfc0174877c5372f2e564d201b8f01216a0d894fd1f32afc60a64461c1166a32
MD5 2ad38684d6931de4d0aba453b3c3feaa
BLAKE2b-256 dec64c233ac958b7a7e8f72f2cabb466766e5af1790998bd58e1ea7ff8cb39fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3a4633e3f763c93cfd307a3ed48f12f7131e631915f4ef6201adf608b43f7899
MD5 ea2634a7092b44843ef65e810b8f684b
BLAKE2b-256 01aaf0ad6458b20bf941da14a2bc0e38a05882a482b61430bdb01a69334a7db0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.222-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.222-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6c01705c03df7189ed36de34b84719ce4cf0f57eb41cacf5b68940dbe6912f5
MD5 2cc5929c56aef85826ede3d8c9b9ac6a
BLAKE2b-256 22d675dfca5722ec2294090d2cf4bc840036196fc4d8efb1af60627184e5c0a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23cb8d3d7d8fd32c87861cb2eb812959c568a46c57a49526d1475e76fcf94b5d
MD5 5b6cbcbbb9955ad3d12825b7233bcbe5
BLAKE2b-256 204d6df7441bcaee200e994aea88e76ab8068e7face4a2ec456f8d48b98a5019

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 260dcf90c6225c921ac6be7d32211c9bba08de93cfa7f1f942807d48cdf176c2
MD5 09f5595f19293b4362de020429ebca8d
BLAKE2b-256 a7f609995d464d482258e66816d9b12f909c3e81a2e29842ec64434c5418858a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3076009c3852e8c62e4e041f2d67b668f3134bf1780a47a98a77e7ba8b479f09
MD5 cf4d6e095d197b5dc0038bfe47e5305c
BLAKE2b-256 95bbbca4045ed67b6c236f62511c6d7f5b408ee362241d1f249ac8faab482214

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.222-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.222-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ed6f2070e42a4e36ade7c3559079229a770949dcf4d02105097074cd955ed17
MD5 f41e12a1db3c81a60a2e0cc71f9470fc
BLAKE2b-256 6453bf9edd62b41aa833b6f111155948b4d292ca0209b3b4c08fc288c5cc1a46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05379ea1e29eef868651d0abcb03bb376f9249b34cfff2e368a0b8cdc7759283
MD5 2086673e605ad3c2a6d56b55d3e3c325
BLAKE2b-256 8505dcdd4eebc2d6fc63d8b2c4f2e485d67fbc70ce9467f4650b8d7b92d4b5c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 26723c076a0df91adb60f2358408ac229ddb0b4452c84d0d486a8cdd7ed4a095
MD5 53718da5f31523327b8cfb494fccd47b
BLAKE2b-256 1d4a591ea0252bbacf8b05b4c6ead571aba33a87627fb3674c07511e0b2f33d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9fd40d3e0e4e8d8ab79695061a106ea032350dfb5de0da8f1280638338ffd608
MD5 bb2e4c5433b1b4ae4010b36ce02df09f
BLAKE2b-256 deb62ee4b9b4d94ce8e8cd2ef9df0a8771325c25a19ed154a3165e2f6535a8a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.222-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.222-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 863c299b0660c72687ed9a90c310ca9217a0b920c0d434210b02b4595f1b074d
MD5 919f363b30390438cedfdc7d84983020
BLAKE2b-256 bccc9c750f4c593499c820617cfe0de823f3bb947e42fed216b677ee6509f0e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80f7c7b6365e21ccc6b80e9f3dc60df7b8cfb39e03e543cfda483ff32ff9a753
MD5 ca4a37136e4d37fbeb3e2cfcebd1d748
BLAKE2b-256 4e3834ea86109c58760f60d7ca63374ad1bd7846021698b22e7022af05d34c87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24691f435975f136c7b58fe5f15ace5a5f77d62c10429092289718ee0dd4ed29
MD5 1205316e3a2fd1ab8bf9ee7e5c296e39
BLAKE2b-256 da702fab578c0e08cadfbbca365845e062f1738737f0c92b413fba3c8ed0a915

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.222-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.222-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 09901151325bda34671b135d8a4b9b3202702e25d0887e486f945b16cff2bb80
MD5 549ab6742a789dc10d45ee44cf241dfe
BLAKE2b-256 bdc8b2e8ac83c7cc038f089d2cbafbf0a8783b03f6c9d275085ea43b57920cc7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.222-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.222-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59336758f9f51eddcf0be2e1b221579c03375375f5cef3ab998736ad8a6daa0d
MD5 680ee3df5d9ed1405f8db394638ec20b
BLAKE2b-256 0ef60bf2cf2f3e48f22774d4f74e40069d851999911d8cd72720cc12ea56d6b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.222-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 368a17b0571110b0185be3b625e90692d9034dd24434b14dfa78515b7e85aece
MD5 65e584d8ae7a6eb280ce6105a3ec5993
BLAKE2b-256 a6f211a7e47df99f5d578e81d595f69224be13228a7ec88872034f84db86a5fb

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