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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.908-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.908-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.908-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 01364c668a7b95fe0d07d8d306ca95c5ab2ae8505faef1915f84c6e4f3187219
MD5 886d7100a34a3fe190901078255bef7e
BLAKE2b-256 66fae64e22e724a5cee817b1efb9c91a2182a21f7d1a688140b908d4eb635472

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6b115211c60a4785e72e87eba5b8f615b8160cd0cfec5d08c4c3a198ccb48cbf
MD5 ee552fa2a6d8e15a3238bcc18d43dc54
BLAKE2b-256 e1473d88a6b478cdd2a67e53a350a368c811a2d2c084f5f2a8fd730c9b186b23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.908-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.908-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a75fe87ca24c2292ed061ae464c2d83e39ff3ddf69fadee38efef85ae179fb3
MD5 3f588c96ad1fb7daef6b64429d7d823d
BLAKE2b-256 3cc78fdd049d820f31c92f752849f3b4366bc8b0e51bd6e6df979a32c491633a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f343c6bb65479c6a372fc32f0ad04b34677379f8bad102f6aec6c311e87cdbd
MD5 8ae78e845d904ba5911b7471215439db
BLAKE2b-256 c05ec814dec9d6c3a51fcc9827a992804eb43a9d37979aa8506bae45b1213b02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b90cae8963f534e6ce341b217a6ab0122ed5b6a21c21112e073d29348dda5fdc
MD5 565ef28e20910e27028385c48d0f15d0
BLAKE2b-256 61cc2f9a85c9bc9ab8b2dc9d0ba522b70fa6b458da821d9d3a0d2af8c52f2dc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 abe73cfb1e708fc823512db4d2055872790f544974fb27c9a0d53095f9374470
MD5 2ff07c344457859e643b55bc09e3a5ac
BLAKE2b-256 e30877b00040247792f3e0a18008c27906a80bc4df6fd6c5fd6b588e88da3ee7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.908-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.908-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 777ec57a1bc9b5812913d5f9db33ee0a5c9bb55ecd1c7a1e3db0b52115e4627c
MD5 78fe4d777457c95b912170fefa95373e
BLAKE2b-256 a9312111fede4c849b937757ae78ff4dc33f7bd133c62264efbd46b29378fa69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbc397784123177c21baf4618b79c2d71e99a991c9efbfe73222ed57ef21313f
MD5 8b13171c1c7eb4712594fe28c132b26b
BLAKE2b-256 9a8b56ba5a58b651a1a238a315cd67ec5c80a9c3124f02216295960401a794a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 113e48806c6cd66f23a1ef580b9802257a3aa85438d24e82eebbb1a2fb61fe18
MD5 a85ae7efdae01be1df6758fcdc27bb1b
BLAKE2b-256 76a143243a4a084c702a10f3c0b7c286094687c154c3c14d96c611832c932522

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e286a4b6def7d5767dbe6b5edd5b8ef604cc1f41c4672a328a29374d93b42d33
MD5 ebef4758a52e38068844720dcc540dd8
BLAKE2b-256 eea32ef11e0b1980dc0d3c91a86e772b71d077b6e01cb374844b11131744cf2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.908-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.908-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4bae2b1ea76a00569857b270e73f6e602216abe400b1710af262cea7bf8ac74c
MD5 1e458be15a89e2c03f7cc247b44e3791
BLAKE2b-256 af952b6644704c8f79debb797024fa2e0a69efa910fad06192f5e8a4cc70b1fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a4ae8f9bc89ed8627dca0ce25841432dd9c1915496f5e72e1520ab167cd8142
MD5 13fb2b15e0d20c38cc3f2fcabf6a6675
BLAKE2b-256 c4da44ed40582c4db3c53cfc4aa75f857663c29253b3a0f9ea676828c1655510

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 95615856bcb139f9cf4644e53265cd67e0ce870b7601ea154d207538e40a520e
MD5 bf3c9a21548976960720b7230eedf44d
BLAKE2b-256 e36ea9b53e7acdade05872a755e52458efbbdaf8b14b2fcc746cd2dfb721bef9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 11933f0c4fbf63232c034615b253c03fb188deba5ad8232f7e19414c0cfee7de
MD5 f493554fe524b04083c2c1ffb5ad7113
BLAKE2b-256 6afaf6e5f44e413fbcbd70d6a825e7751d6a83252a606d686a98340028288c80

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.908-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.908-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c4d27025eea994d1181c421e6693eb02110cf813ac78aeae15e6b30050af304
MD5 98a51c98aee40296ba560a9d7fb945a7
BLAKE2b-256 7b74375a26d5679b3ab1b680a2bf55837821c048133f0cd35c3a403c128245f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfac835ff81ac6b099f7bdfc1d701089bb86bb8d7f3f583eea9caab89068749a
MD5 745945b3c607acc29b10ac66b43a1cb2
BLAKE2b-256 b7bcbcc784b5b80fcff68dd0b4f79ce67a127f349c1f8e76287d617242ebe24e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4ca1749b81d15e001f03de4cf22e8bc9f51b7f14cf2b4295e219622bab8dca77
MD5 0589340b678a5292d0e86c89ae0b3823
BLAKE2b-256 0bb7644a5575ebb8fe8fa57ca470156573e900c5cbc60f41de7eccdbd0a37a1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.908-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.908-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f27639e716655caf61961baea822bf049019edb6cbcc191907b3565f53223f8c
MD5 224be484210314c2f2e77c9fd891de7d
BLAKE2b-256 f8934f86eadf35cb870fab1a6b5d8e4c1da1118876c0579950727355f12be75a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.908-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.908-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c218d7f64312d688846a8f194d31430bf3e43f44cbf8b3bd064e8e7da75322e
MD5 691daaf6925cb28987983b75aaa4174a
BLAKE2b-256 6179abb2924a25a078d081db9f563c4f5463344ca7d8d85621fe3307da05fa22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.908-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 345f6ebd1b9138b0035178ea362bf52d1c34831049631908fc5aa65337ba7271
MD5 a447e409a8ed7a0d16c2a288c4f824cd
BLAKE2b-256 176c91c3bac0f68fc0ec8328e029d8237f2211ffd9191e76345d7bff39c256dd

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