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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.630-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.630-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.630-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.630-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd0029b54852c8c1aa06ac8b3eaa5d34f1542cc0ce837fef2cff3a9380a9de1a
MD5 68b9ed5cdda0fa18ef8619109de3bac1
BLAKE2b-256 fb69ec82812b86bf20f906ad84dc145bfcf1e6622e4f4ad328c076905898e0f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-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.630-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9cd7e59545a945c3488450f408810be7c4aaf727db3398818c59f3b906991663
MD5 fde7416cede6c1e27ffbdb71dceea4a0
BLAKE2b-256 457d0f9104664ca8a548eeb50b40a5481ce96d8d9299ea672be5b1a3ee51bdf5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.630-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.630-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88d7f1a2ee4d26c7afdca6f0167df04a71bfc3fc534375c2e4a67004db304ff0
MD5 82ae317d9b910cbe8a1c7406172dacba
BLAKE2b-256 d0b07d7871840194a05811f5202fd7a31a0cc18e7b93d2b532477e1d6ce05fa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31800b67d9838da6374d3353b036b24951da476c53a082511d3a4b14995b7ee7
MD5 8b4db26147b0b2423cc8806efede2b01
BLAKE2b-256 ca7ce7f4cf45ee45a01f6e383d8ec564152447e7cf3717f0f3306ab87cee6cc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0494a3a6445e67ef627c6a42ce07d518433bdee49911f973042440866d688146
MD5 040f36672e408685ccb0db755643b5fb
BLAKE2b-256 095b66c3fc6848a4e5c5718e4a3fcc60028782ae0045c9235f621b418fab9c92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-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.630-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5ff85cd386b69a42953b634e7a94f995e75352717e4d3be0b6112f97765a3c58
MD5 51879b5d79a574e78ededb89c366fb9b
BLAKE2b-256 f2094ceb6434209580c663e2d949950f0d4e293cd59ef203cb9f2e2af46d9bbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.630-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.630-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 661ea4eee0d25ef1780705695219fa6f64111bc5d302130278e34e00f4b88e30
MD5 ca9ce400464cf04759c33d5995f8a84b
BLAKE2b-256 63f5b6c58b3ffd25f4a1aa8fd62803f1ede57269cf405b7e693c057206437292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1869d961c0200f2a490986df142d8d47cc6105c6f64b6fb40749223fcb1b9c3e
MD5 570c74ddbd8bc074c957c834a188d336
BLAKE2b-256 99c19a71cb4c56064e025073f2ff98c679e57a9bc205213a105b2c00b907d9dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64c866e79fa4251147cd6e1346b13a8e6c13f835e49b9f8f6bb1eba8636ff85c
MD5 71dc92d46077698d3e6ff4bcc3a8a11e
BLAKE2b-256 294f515b824fb15657d204547f85682c2e632ee86876bd733a5a6644f3d91f90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-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.630-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2530fa677d74cad42170e3032dcfd55bfe9afc45c34eea947ab4c3126673ce95
MD5 4adc5bebc246ba7c0471ee2e43c152ae
BLAKE2b-256 a05d2e15af0c742356b9e726d25b0e78b389c97995727608db15642028481e3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.630-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.630-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81938deb797e7d3c4493176c5d21d7a4ea342d2fb358a3cb9bdb5baa903e9197
MD5 f6adb6aabcc7f332098562239f54c33e
BLAKE2b-256 9d0f96d2b15ef6bf439f4b03e303cb934aa51b1c18ed47ff495c98b11dbc0f19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8b7bf9330f736cf6935766370559c17d52ba9217bd9dc63db646fc0aaafe9e8
MD5 d91b7e494faa09b0c2277f60b3b6dd30
BLAKE2b-256 5e79c4cd66e52d7db5ad8f3db897d0345a946a31e24c4e338241bd3bc0982153

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-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.630-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 21cc760a80d0b8256a47cca8b688df2bf9e425b0cfad6d67e9913a4b3ad05f92
MD5 1954d5e8d74b3c788d171a0dd4048e84
BLAKE2b-256 1db76ba740cdc494992034343b589c8db51b47dfd5d13a74d0e82754b00b8643

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.630-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 118dcc128e5dcfb21715a7f1189726a78aa787037f923419f1521d943821fd17
MD5 00dcf46d9744198d7e7e484ca8af1e01
BLAKE2b-256 3b6d4101eaf66a2ed4e6c3989d87667bf1395dea838b6e92101a20a6ba2b517a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.630-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.630-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45cece062dd10f5092e561e6ea7a9490cca7140507174934af9d4421aa360a23
MD5 4ece9fb462a10b4b859e0866c7ac38b5
BLAKE2b-256 fa1f45927f06e13cbcb1de3edf47ea86a451efcec79e34f68e9103c1c3941516

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38e18375e912b1f0de6e914d264566136a30ea5e9fae519f05e4c6e37105f7fc
MD5 56fd17b1c4a1ce4bba89551fd1755c02
BLAKE2b-256 ff7e560cd65786ebb5f13480938e794cddc5757c4780b24ee84b307b2545192d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-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.630-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 61a31da6e78a5bd675b657a01e2d97fb5f34d95a904fed7125979179980e13c8
MD5 b01ca1655cb2bd6306ed4b9e517b0b05
BLAKE2b-256 035133bf3196ff8769be4b4ce7d9a5dcb9ec8a157cd5a4068278ef91be9dcb5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.630-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.630-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6ee7e55c653688188321e212dc7a36aeba371e6c0aa5e27fa1c50322aeb66ed7
MD5 7a508c0955ed56a8b4c6d97f07a5579e
BLAKE2b-256 f0547f7b2ff6250e23c2e2c784a1a472246e8864608cca9d0832f9ae97358a7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.630-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.630-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 721138eda394f1b7b790b169601c681cce643f7cff65dac3ba285a097608cdae
MD5 c77fbc1a6eb947b8a11f390908c262d6
BLAKE2b-256 61229c1b32984a5452102da658d8d57fa3994632ae2408de09e8b7cdad2ced17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.630-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c35f0e644abb79fa44ba741d6c3fb4bbba3d71b14c0c995517341d6184f4048f
MD5 e4f1ec81ae7c7d86883a997b06af148b
BLAKE2b-256 5e5ed6774a2d7312cc622575a1265058db5cf1e8418e823899c6bb3307eb3045

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