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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.175-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.175-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.175-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 df391efdbe8cc804cb4053d45491acf7d5a4a1c1fcd83a96ab9b3b684bfc6740
MD5 c71d2a3e79f1fb2904b448f15ea93cea
BLAKE2b-256 8a3eedd91cd178894dde0c6a4ea2eb6994c498eb3f65cbc0858de2ec04f97af5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c92b0db2128a00b6d2011159e696810460bbd1f3af9e113e71aa9ea4f7fb2ece
MD5 b1561dd3a4b93f54dd4723581075bddb
BLAKE2b-256 641b5f435a1eb276406e2097afe89b710316f0d4c7fd1fabef666fe5e2bf97bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.175-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.175-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fd030567b30d908ae2b953c9c959d0e95bc5011dd24613317f1fc07f86bd43e
MD5 74822d70614994ca32384ceadd0b58fd
BLAKE2b-256 82fc43e5de10a6c69604586586124be5fa1688554e8ac3b4cad1bd6d5476dc4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9320d9a64450e11d881abd3aa267cd624ebd62103ce18e0265bf3ecee497f1e3
MD5 e99f8ee7cfae31960d7af6125dbeb99b
BLAKE2b-256 954d8ce00f4066a58b3f1f64b637f34feac4f97d519be907f15217bed640cd3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4ddd22a9519dac36889525530724433cb716d5b4e7a4173815969afa84679436
MD5 cf851922cd84e73e3a6b63dff3990a34
BLAKE2b-256 3d35facd64ed0992ad2e056aff7bf8f9551daa9af888e57d7f88356e5224f2d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9d2e2c50c5111540609b9e700ee33d6148400eda979db358c3e445b97d3f2d63
MD5 fbf026369300ae93a122b4130634086f
BLAKE2b-256 28e613d489e5236e0d3066aef60969e2becb484805308c3a711a40f80686cd64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.175-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.175-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5a8a03941f1d0decef2d05ac17457f5f77550e899533bddc69e701f1bfde576
MD5 b20404c3e072821ac8dd2790c3ee1696
BLAKE2b-256 0c720671d55ae32a3c714e81b155b1dcbf32601048e25968df38fec426f6a34b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86a028af9712fc504ecd5d76195bfc44884657d657fa3f90442a05a68c50f7dc
MD5 6a23c95c52dbd1720f7791f1fe8c742d
BLAKE2b-256 8978292ef02c079a8166e371350fd0664dc2d9e8bc731531049b1be613efc662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b2d24149ebc10cc4fed0361b33b489677c8d5a0df097536c2350e3abdad08178
MD5 5ddbece50cf748a8f8e8ab786309c7d1
BLAKE2b-256 d8bee784b99ed5b3daafa06d55c2196e390b04828f93813ca7f0dc36d75ceb18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 639c2c951c801eff5de7769403221106177f3a5f92ff79c230b0d34d57e4d731
MD5 e096f227607b4d3d213a37c770777291
BLAKE2b-256 4045ae6ef19e4d2c92a41f2acda5238ebeeee7618376d973ee87fe191d635154

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.175-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.175-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6abe43eedc7657d3fe957c5f4729b75e790e07f257ea8735e047c417e920ad7
MD5 694a13ea9383024723c5d2b07d316f62
BLAKE2b-256 5afbeebf73705d8a5a9ce2885a04e9475a63cbfaca8397ee26bf1683468d3605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c32c9742963865fd56c061f6f91c8a7b630b92f2cd0eb4e752647bd3690e4f62
MD5 109ccba1ce80df21ea80d016b4ed5a22
BLAKE2b-256 136f5462e8b59157253314a4621f6bbe9725234182cd6326ef357b2707486ded

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e7d1f183a2f8e4af086bab58448a573458c16b8ad18c1a0bff506c2dd8ebd92a
MD5 b90bdd5137588624e6fdc8b3e7d206dd
BLAKE2b-256 eb3d55d928b83cf24fb8af8d4f7821e1dd41b383c125c801e9c366f9707561ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2656704ac1f744aca637baea372e073b2140a42e17496417bf3d1c9c1f6b62f1
MD5 2a1e46cd1d66f69b4f34a8c94a72038a
BLAKE2b-256 ab7419528d58fd834e757563cbb4668921ec2d8e063f3368266305d4e51f3a73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.175-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.175-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ae88b671ed67ecf615071fa72c448a8ee3a5a73aff5d7aae73cad631072ede4
MD5 0677fcd237d825fe7688efbee4253ea7
BLAKE2b-256 db63a4be2fc77a6477d5bfe03e9996fc33ef677e32b896fce4ee7691ee037c96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32d15b0b5c563fb7bdec3605ed299068764b077ae0c34b9a600102e68e76cae9
MD5 e690b073b63870bd2d2326b0a946d613
BLAKE2b-256 38470fd0a5c98bb640df0dbafc2fe2217cd3135ac74c7e277d006f74330514eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cbf2369f75b7dd1eef238d03f30c3ebd39f691717b2dc442972949cdda06c833
MD5 2030c4f265cb0db9a3336a8ae9c6e694
BLAKE2b-256 a1e81f485673d6f600735834bb53d845848097605a2839f34eb0e9071360154c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.175-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.175-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f78955dcbafa28f250ac2b61a1c2e780c7627d70e61fc7de95521e0a2fcc9c5c
MD5 59cb9f600131a09df24abfc2ca8f3b1e
BLAKE2b-256 5c13e4090b5ff58a84b4a3e00bd61fcee3baaa2009a1cedc7a0e1f44dc7c78de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.175-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.175-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbe0949a7c6b6012f46bd2931d3c34e290470169e5a54023353184391824152c
MD5 fe8555ba5a66f4d9504e0e5fd4ef46d8
BLAKE2b-256 58054c9ca1752860de460d6e497ac01626c258f1193abe19aea012fb05ae21ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.175-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acb919ba4ebbf6f677539da065c1372344ece1111d3d5aa3189e612048d07ed0
MD5 b4e7b233d8a13af404d6d0c0f4b65e90
BLAKE2b-256 368cabcca400fe8067273ee5ee3e044a552a8bf79bd74a723fc42ea1c9e3ae32

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