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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.583-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.583-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.583-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ecdb003d714650d32fa3e8180cac5755eabfe672f1cf384382f6a32b5ce7b807
MD5 ad1473f9a11e8a97f659075ff2d21fcd
BLAKE2b-256 9a61725e26ad9a641a95b50b26da13de69568cd488c7b0a0d1fbdd3b6ba83576

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ef0404a2157a2aa4f3a978ffa15ec8d41806fa95b7da7462557af2ca4bd5dde5
MD5 0d8332147edd8feb009a677a52153179
BLAKE2b-256 d8f97ddceb29c11e7c7f00644089d6b39a3b231ace22016378d54b4eeb4f1b75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.583-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.583-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a891ea02635e549e7bfcfcd6b01980c9467675d1498f21c96420d19e08e7ca15
MD5 69e56421703d5d7149c7a4dfc6a48da5
BLAKE2b-256 7d461bfc624ac3b17c255a640f3661f97410f0bcad06fd85d75dd3c37eaffa89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fe70e210849445f8d2a169392c79f8d5030f648928e65915be3d54c29098758
MD5 915a4f305565678abdf918300eec1407
BLAKE2b-256 3a28d46b05f7ba590563357e8426e1067bd13429616684f54d1b0e4369262ffb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c1956799706a4aa33b2a3bc31c94bf260ec3952f014547a8970bd3bacc469acb
MD5 b06587d7ff29b2c860a19b3ad775bd93
BLAKE2b-256 1040cf5803ee72dce11063777549c45e1b61cc48364d1776cc5a789722ffa9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 920f8bddc3005e04c5ed940fba298b318578c8276c4440c9f57eb6178e4ac94d
MD5 2c548c778b97fae9282a5eae40e8c464
BLAKE2b-256 0767a6d7cb44fa2da2669052f6dff6e1933e534ddd99c603154ecb50b032b532

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.583-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.583-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 459c80d9bfd361213b0d1ed71f6faa5191421249f34c69c22fc0835199aad883
MD5 50874dad91760c4835b0e2c1487c1385
BLAKE2b-256 b42afb82c8afc23757e30d08de2739a1b8193c0ce4807a19af372a4000bb435b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a4783319ed80d19b7c2111ce55a81b59467fcaf9e2b1cac099387b7670fb049
MD5 23aec06cf60a85c71058ba9f3b343e52
BLAKE2b-256 be4c117869683ec13ad2c37b97e7f207741702d3a99620e655156ec81422d2f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f738cff718995c7f71cd3ea4558cc75bf6d46de89f334f434e96483a9f19a570
MD5 82a6fb47bf22679487c66196657e7d7b
BLAKE2b-256 b070924b199922b3c6ca48a4c680534021d9b4ced510e8f6322f5b21f8a6c329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 109ed72339ff6989b863cfb90d56eb2ba46ab61313eb518f9bc59356ca46353c
MD5 92744ec4a461b490f49b46749a043f5d
BLAKE2b-256 42fc8ee768c7911d8d4472a04ff4d87b7fb593c65dff6ed31e9d8edd5aad8967

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.583-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.583-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9cf039c24ec4e39eadd63c5c4120d9fcfa8e6a94fd238db9e02814ab084a85e9
MD5 1ae3e3de40aba5e908c43d7b68059479
BLAKE2b-256 5d832d9b33f736a8bb5a4828f8cd12d31efd7030ddacfa5bc4c6c11aeb466c2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e41c893e5f055f3acb2b378bf0ab182d154757748c173e7956f13f6ad31fac0
MD5 369e4351f6a0d7869c7405d3483fbaa9
BLAKE2b-256 d152b2be66f15231fdf0c506ec4c31f55da8240433d9f536992adc362e183dd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 182bff09cb0bfb2df300564b73e3ad2b9247dbfc9c4e7b0e06a6b1c2c05b429c
MD5 ba135830633fc6a9c6984c7b25f85469
BLAKE2b-256 9e8eafdc1f4d1e79990ff2f43e52df5c2d3a9e9bdea42254101da8c438391ae1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 285438425db2b45dbd6e4b92e71293e532d6c23b124e6e8a7d5c54442a252c8d
MD5 e375023d260bf8ab49c4c1292c9c56fa
BLAKE2b-256 169a3640330be17ec80bb8f7720154377df08ea9d025bf2a924604cc9571be20

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.583-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.583-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3088cb328dcc1e96c90eb7c48714d888940b8e03d1d0450a98d9e6b57f8dd5b
MD5 970b7955616be08d2e90feb93cdec899
BLAKE2b-256 c8569e39231882f61ca3589c589a0cfddca68a51798cc22ede5af10a7feb2737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b34cea7c00fd45c9088cab925a6293bc32e13b8f05f6bbc65ca2f80ef83cd74
MD5 c3d959b66ce9d5fba69700c19cc9873b
BLAKE2b-256 9e826a27740f3dc366e1033adb813bb306458151622a58c892de42b4a6f9d372

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 95f630bfbb6015b45a068a4a5ad4943c81587b546e92edca0106e7941eeb6030
MD5 5210090aaa9cbb342569d0fcfc14426f
BLAKE2b-256 5e0526c90d690ff07980cfaebe4724e419fba1f5843bc02c4cb28fd646d1a1c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.583-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.583-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c71918d0a07a4f143273f6cb3a17f63ab6043ad7e91020ed1af4a58c72fca1ec
MD5 8da456bd8cc568f296847ab8b144df63
BLAKE2b-256 8d748a0581b69333217eff21b9b14ab1d5271015bc26253eaa1a7deabb7d3a79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.583-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.583-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84836ba2207d6362a3e983e4ad17bc32c20da996930d040abc6ce321366d685e
MD5 5f291475898256943ca1ab4eaa1e3323
BLAKE2b-256 adac3f23027f082623b44b421294835b3c75cb213c250146ee196e4c1bf43e6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.583-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87207691964a2bc792544efa40d110efc1fc723aed5cbe9fa14cc593f30a5f8c
MD5 2a531d9ab45d91e8d36b3d768334195e
BLAKE2b-256 456a91ab5a3244e5353398f5a0a44f418d1fea4d37ea08ccd821aa18b5dfcc53

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