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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.497-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.497-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.497-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 43bce4e441dc23874aa7733e7b6cb20fe9d7cd1418816804cee7b90103bd8b70
MD5 4abf1f17f528b5b7e19e1cebfe76c565
BLAKE2b-256 08fb3ebc2f1038ff42c898373b8ca20be0d6754727b244bbb022bddc8a52573f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 50192dcb7bba6852078b9efeab5cf28d66df49da422a32b2f9dc151f09b094f1
MD5 d84fc99dd489c49641ba45b6b36bac1f
BLAKE2b-256 f773121428b4f011e0e91347b8f54ddaae267645c172ecb046a7080fb794d375

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.497-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.497-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93741781144f24550a12c57a37d939acc023cf4f3965d24277f495502b1e9de8
MD5 d5c11d41ce7a601608d95f549499ab0c
BLAKE2b-256 9ddc900ddd2638ffaed078546b5417c6d27e6e2515575816510016f528788f55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7758188e36d0a668df2db57b79e2954ae12bbdf0b5c323fbc5803cdc327357e5
MD5 f64ac35ff31a70c28ddc7afd88457eda
BLAKE2b-256 7d1b718e6573bb9470207d5587afdaec39f29be9faf8ae1e450c42e95ea22a16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c3c1e5f4dfbaba1b5e501799aba6513601a863264bdc5f039399cb990ff94de7
MD5 e7c0ffba0d3f77db4ddfcb3aea779253
BLAKE2b-256 2ee8c41f8d17f81129759ecb09ab68ab3782f8ae7267daeb2f573abd8c133158

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 17b7d88fe92f847fb18a1c69f36624de61f57ecd240bc9046bddf20afdb08194
MD5 fb2ceb1f909cded5a7e8e3a45728ac0c
BLAKE2b-256 6461940fc76739b1a6c8759212a11aecd8905a1bcc784adfc89dbe856ef48b3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.497-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.497-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32249a5e793b202d2f7b6bd158ba296102e4be9fa30e8ae71f552e5763dce521
MD5 ad91893fb78a70766195579853bde681
BLAKE2b-256 ed814da9f02719fe433ad0cf7fa3963cc696ed3f678f6b5f426854718c6ed807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5cc85ceed3a0b9b36ee2f5cd941015caa0a6aac5b1c629e2f827cfada3db9005
MD5 d27b54d4cd775369bc35cc55eb704956
BLAKE2b-256 09ee7064f5deb0395e13332ec8df383318779d5997aad1f37cb7a0da50477001

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2707ed6f2ac2f04c3ce93d5f65e9a88393a2052a5abe0bb6c63334b5707a883d
MD5 a95b2465a2a315c29e77562dfc5eb424
BLAKE2b-256 5f08916e425cf878efc8e0f0c66377acaa42d6663bff871ca6904175fecfee91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e851c294ac3a50c591bfb0d7f4f0a4c16b0309dcc0806a654098644c703d99fa
MD5 2543654772a9b11ac3d8db26ca8b45a8
BLAKE2b-256 8ea3354d6eeb83079dd9b425473f3a029e6d46145f34a97909bb0ee6779394d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.497-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.497-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f90f75c54726a09527d73f43aa5d45c96ba12e60391495ed54a835f6879ecfa
MD5 7d8879dd7d2efd48f83ec25195800941
BLAKE2b-256 66eaeff0f26bbcf3f399efcdbe615e88f09903d97c98972ebd713ae1b66a2c78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6174fa1d23f0958be99c0efbc81a5aa013f5b30d3402fe344449eb37727b726b
MD5 1fc2ac90cd44612503bf8429949ce441
BLAKE2b-256 23d101531b5fca34192e391fbef67eeb8db5d1831c99d4e3b70ac8a0db392fe6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1e37f7089ae173c464f60b9bd562d18b6efb0cdba8ddd821decf6955a83d13d4
MD5 20c3e57cd38470dd90de31083263b4b1
BLAKE2b-256 44de050a895aa7f94b4bba3c7f5c4de46d534c123fc5ea7de3deb0c52337ee0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b416ece501b161748011491a8707c744910ded95421a9c58811ec6b3e27b5121
MD5 a51625e68e143378e8f9c0b7dd2de831
BLAKE2b-256 fbe7299c4b8ac72d55937c7f5f71c9a82c56935ca25cd971d2d6054c7ed52da7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.497-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.497-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 951d03157413ea5549d627b10b11db2a85d0ed680cd2a9012d6db4c57f3adee8
MD5 5d5c63e58a80afed9343be89c371dc54
BLAKE2b-256 09e7f97ac96cb8456fca3dbf4bc9a937118486dacfcdcc7e03ca0131602fb0d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8fbdf258d6caf67d4064e6ae5c627eb23953f3160d6fa4be2b3f0c5b779b4dd
MD5 e855faec1b20679f3686a7a4fc6919f8
BLAKE2b-256 1228103243181c6a74188186fe8ae21d06f2f9d8004e2025637a5f0d8d5a883b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bb1d7f8df515ec7a8a65b589c4fa96ba3818824c7e0c316247430da957a8d66b
MD5 632bebc2c6785c1511bab4dd275d6e03
BLAKE2b-256 080b371f52d30b3c810f8ea0c3fd2369802b8454be6880145a8e4cc6ce97bad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.497-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.497-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f4e4bb5fd216a638ab5e8eaf21987a506d7c1d68dcf89f6c264fd284c9694af8
MD5 106dd46a212ef0ff2143104d3ed7f8fe
BLAKE2b-256 77283271411865daf5d356fd3ed26ccfe3bfb9d4172b7a16dbdefd00968146fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.497-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.497-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f01ab762064f6ea2fbf17ff91a21ff111f82ae8c91b31149fb5d0eb8260df4c4
MD5 eb1b563d8bb14903dc9fefe1c78a36ce
BLAKE2b-256 bfb7c8846330f011253688eef5966752c31207fc04b89c2218010c8264572d95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.497-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e4e276e1f4f7f76031460d9237b3cbf33ae9594eb116fdeec76239ed7fd5539
MD5 813f65bcf984cc5ca0c7d142e521317a
BLAKE2b-256 e8f0d458b04a929dfeb87968bf455dfe6f100df46b47962a4b1aacf1db69f85c

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