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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.639-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.639-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.639-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd56bbc4ddb668de739dd90d95c39a0ad6a3d9f3c8b2a9b417cdcee877e4518d
MD5 60e2a1190a40dcc26945b306c4fd2e8f
BLAKE2b-256 a2f7ea784ed7642558d3233e67340ca4e507755d45a933924b3684defffa1707

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cfeaf0167672a83d008fa1e0fea4fee83e57ae1c1b921ddbc7c9464612d85fbe
MD5 6c9a3fabfa433ae86f9af4b3a49f9f10
BLAKE2b-256 e312ad901790fa5d841304e6a2f7ef37e52fa47ea5eae920b60d344ebdf84724

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.639-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.639-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00977759e671400dbfa52cb9db9aa41cfad0e2f9ed7037c42fa67fdede9f9655
MD5 3ef151f8c855d626b1911402aa4e4320
BLAKE2b-256 a863ae51007ec12459d1a6a28b20a7100009f2a6509c7a890a2fd5a2c60bc189

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1809a026985f16818d52141fe59d74266adf2fdb2ad7d61d17fc8677f89117b
MD5 82d988834f2845e7470902af641cad0d
BLAKE2b-256 e6b93062356726481d03b2b475d1df38225d06a3b8064bbde26a447a971d808d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b26d684e3ffae7b295d71049da4c1c52921afdc9bca29ce866689f56d5f83743
MD5 09c59db31cd87c1a87e3f1f24213be66
BLAKE2b-256 13313254b40862a153132a0acff3e023a8ec7c53330fe887ffdc9d7ee6f48727

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ad5ea9ec8cd5ff1143ab4780432a32725518c9de242834a9f0047df5f6993f60
MD5 442d01e8d6fa3e6f8730e4ecc6c7a2a5
BLAKE2b-256 b889e52e1f38077be1570075b4ef76373bb125bbe04a3b5affec802238ba2400

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.639-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.639-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b07b753ee7948bb31d7cf154e8b0ae94790b261ed6db990ac9b9026477136a9a
MD5 76097aff72f70853922dd6dd3758bab7
BLAKE2b-256 f759005c0ee9b75c464612724f575e281cf926e9236b55b7b215a2570ebcf880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 421235b55f8ba8f0ffd5caac33966c638fa0288c22c750f86805ce3639417632
MD5 132a10f32fd2895b87d00d17d5437312
BLAKE2b-256 99922c8e01964adbe50834177fa0be8b96a74b4742bb3fb94025489da3c95007

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf86c2886857c6e8b0d28decbbf1177b93e16593392d0a68185f932506a4b562
MD5 e2aa75b0c42f555c1e650e2ccfcf7b87
BLAKE2b-256 415772cd3e06644f0b99e66e6faacd56e6af31cc6929f72df2e4df5ca3418147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0f6e54aac1c31a4fd1e1923b794372f5e8a58ce80c2b0edeedcc0dddc012dbe4
MD5 772ec975cc8540762f6d774307e3ed84
BLAKE2b-256 3b14aae341283daf23956aa72977c2715a61f1251ccef8ede1acdafe4b361214

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.639-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.639-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88637700f17071ca15adcc2d01433a6dbcb511a4a0ed1e26c19be884b82f4176
MD5 08b54b84fb5ace50c0cad75a76d2b9ed
BLAKE2b-256 96f4cadc59e8cda84d965fae8075de4e56aa075df8e28cf7b6fceca9c7f0e1e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7bdc2c39844c3c6fa88728de0cdfe7e0e2ef8b486726a7a4505d7f29c5d900a
MD5 ef45a13857c40e31a08331c2400bd0c3
BLAKE2b-256 4499c957068c71c21a4244027f9bcf09ec82b8ad71d3834a8f0617611bdaf199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5124776209beb5dd3867f7595334213d6d463ab4a29814bb814c7f96973081ee
MD5 4df1b4013c454f5fafdbc2b41e4f023d
BLAKE2b-256 fb42ac4fb83d164ad318eb9c66fb5bce2ca714db24ee8b1819295cabed24b687

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 67b180a0560c2c986ddee501d579b90a10c24585d3833c799f9797f0e644e371
MD5 4f1b5fe98ab8f4555519483ec46e1103
BLAKE2b-256 e5ab9df880112959cac89e5c5676e9c268ef383aee2be119e3d47023eb93c779

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.639-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.639-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2b1d7edc24458cc7aa9a55f5d165c0ad9a32eeb63bfea05e1d8fb2203bbc4ee
MD5 ccb55ccd054f461ab27621ac277a9f79
BLAKE2b-256 316be0f9cf7aee20afa021b1c5758cd5dd47dd68aaa178f64aabc6888dd6b60f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1437c83487c5f5f34d75f57746e2a148d67f23d617f3691bc026a0b7c6e83544
MD5 925bcfc42b29705138e207c548a66aa1
BLAKE2b-256 96a5b483b4319490011163fe89ee2fed70790d6f90bb3e0931f9488d49938f20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f99cfc4c7e227a09aa865a941192b2c5aa05ff5873829ada70072f1b9422a61a
MD5 58a5986ac77701514f01c9da443de17c
BLAKE2b-256 fa9e4873ad6bde5c932dd9b5d596526ab5bbd7f53046f1c3b0cf109f5af81caf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.639-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.639-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 92b47b36f3121c987cc69059942335fcc607a91ca5ac16c54e07b572851c54ff
MD5 f72656d6e9c5db36595179d364d3ff0a
BLAKE2b-256 fad9b3ccdf4a07e95a4749be91ea7cbec81a1490b7c1a09256db4386ed29669f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.639-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.639-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b40ce0ed1fe0d5658a8f9b37f240deee9e348d2d3e7b25bc78fbbf33f7a2d5b
MD5 e18580bd5d940dfc59d2d40e8f7c2fbb
BLAKE2b-256 a9ecc552f065bb72251508744cb6a258c8f3427760277e37af61f7b5fe7b72b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.639-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d14e4260b4ba51d2905cedee5463ac9ab3c48a0ac6fb589cdb4138a60d31d594
MD5 44518c33db83f5f46727f6dcdc58dbc8
BLAKE2b-256 78f2462f721814e842b1e8d0e89e221e9971e155637e3e58aebbc6613dd2630c

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