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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.837-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.837-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.837-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 12d8e36eb2c78692467080ce3390f597101974d0d231c3825ede5ed92efa4284
MD5 6c2cd62907556b49ae3c927b6cd82723
BLAKE2b-256 c8f3fae242c62f7b6df1c7cbd68ef6d1df2d6a0c7e74ae618f974135d253bd69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b9c740289bf97db11b581c2b375b09f3f8f4c7bafbf69c31468bed87958cf9be
MD5 e32dd0f075af40bb68ffaac38712be61
BLAKE2b-256 caee5e0b320274878b15c0b3713b35cbe671ba574b601ed089c10560aa265514

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.837-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.837-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e563605f9391405344198193424e4c81888eea6023c61edfbf5ce5cbfe32fb6
MD5 9ece93834e0140844cba033758d577bc
BLAKE2b-256 6ea442fa5527f240b43b5e0ed0e4850ee778da1a4a7de8d54cb6a0f52d5fb605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d04b470c607064abb25050501a73057ebddd0bb6d6f987b845b7334308be739
MD5 2cb6eda4c6097d751661cad3158c1d26
BLAKE2b-256 d688ee6c9a83aff0fd9bf37d9ac3603051c4ee1c094138e2ff8a8766607f0df2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 209f676e56b8a1a32028c2c0862a0ef1ac9d89dbb6f10450d03febcf12b901e0
MD5 d2bb15ce1fa6433959cd3deae8a8fae8
BLAKE2b-256 0c4cd7deea45fe454786328b43a36329576dcc8939b449eca73cc434b45b9b91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6af05764981e3e98e5e2ccbcce8a25f1aea6d9c1bfc3867429936d2f7c0a3e2e
MD5 ac7e69c2f8b79b4a3eb896bcf1084a7a
BLAKE2b-256 45fc2ac49356e7d6dbc3ed57b588e2a541ce38d4a3436d619cf49a8a13d8a5ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.837-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.837-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77a7666f1dca4aedf596f318c925c0ff8c8406a9b8155566939d9db5546eadc0
MD5 ed9839781ab3fc4d982035d0106d089e
BLAKE2b-256 c3a952403fa9874d83f4277bccfee16672af43530aef20c0daad2d44bd75e008

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f1f7e8f00a6adfd6f804cab2a8321b54adb4d11079d67c02de2014e01598ccb
MD5 0447b6c201c7fdde2826d6e3ea39f1a0
BLAKE2b-256 cd58f61cb1d5902e6661fee650b438bf4c1e8f4f45addf5865ef8146754e1bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64aa074935742f25c9257a7ac2c5abe0438c8282b4f099dcc5c28524fa0a0b3a
MD5 e12835582d8b88f1dadd5ceb735e67bc
BLAKE2b-256 6d0ef8c1829bad5a6474f27cd0760588de9d070582bcc59504e6e74a0e519336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cb140b16c6cfdba16b7a7c1feef2f4e7e7bd3f0339dae24c9a967d82cd291f45
MD5 01b1c77b7c34952c022c82e6a1d197f5
BLAKE2b-256 d68095f58557031c83c7f828a561c653570930080a6de5ab49140e8202c0453a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.837-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.837-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 527bc0b6958aa47dbd2b0d8c8964e12644ce8ca0a1b35f21255d2b52004958aa
MD5 9b7f5052d99c91192e7d933eec1cadb0
BLAKE2b-256 24a2f1feb1f87daf5c583b2f245d6ca664beab46c224899c6706bbd1bbaf4fe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 750d38497b6ea3713f0c22549a78fa38bddb0541ce4cbdc5031fecd76b1264e5
MD5 c9b5660275cddc847f81e2e6b83f7663
BLAKE2b-256 926dcb662b8b4bb931491d285943509264727735abdc19381935967d92b4e3ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 00317df6bb10ec680c50c94dab2cede49d248cbf464ec1029ced690cded382d0
MD5 4bef6aea5a0a0a57d70efe2af04fb49d
BLAKE2b-256 be7534cb25bbb3a4d86d08c07c382f84fe6ce80576166c66944c19d480fc485f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8b57c6da370cd1023f92da0fca5b01db69f4268458cfbbe7292f64ec53b885d4
MD5 ef7bceedfa051e17f233397326fdcdda
BLAKE2b-256 cb1a23bb953893f0e6ebbf5dce7229dc0760133e577b1c7fc53ec39971664341

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.837-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.837-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42f8d56db6892b978b650e5d21c18ff6c50d1bbf704e433b7bbc04ccae3f79e9
MD5 d69958689f63c3189cc2f4c88d55a374
BLAKE2b-256 f118b831204c8334e2af5273b45462a2e503d043ed1ac01231382aa3847fc720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a376269d5ff5fb5fa4b383a62e1f9ddc3208f26b2ced6dcedc08d9d13c6f3c8c
MD5 7b7ed3ad2153caf7e6238d37e5775e91
BLAKE2b-256 e57d9c9974cecdd05cb70df2448af4b6a5def2361f3815de3043f79939ca9848

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5af48fe34af83006d602dc5fbce68dcb8135059390b328cad53852fdd8f306a6
MD5 15ccf20525ba6596a86e31f3da9b7f7e
BLAKE2b-256 c5e8e4cc53a1349887add644015b9906cc5401dabe5ce3f6d2664c47d451c731

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.837-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.837-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5a481925b2eb668e90a75f3bc848cafd7891b5586cb352be22b5f7084faf2fdf
MD5 7b05886d78d4f46d45ac12b14eb55035
BLAKE2b-256 a6094f3418ee176557c75ce7854bdc6cd0f89da87969a6c10d5235b0155ff360

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.837-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.837-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6003b93fb8f13565c76cb31b427d271821bb1c61d64fe1bb106bfe3eae83acf9
MD5 9e2d8a0fe3dde42dfb355d5cf98629d8
BLAKE2b-256 d84501ade651741b3352c022a3bd0b17317a58ae78c615da1e763041d0c9d623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.837-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb61715978f668cd4a3ce2127261c75b984a4570cf768b31ec207be272be4ab0
MD5 c320d8d95e4ccdc4fa4b8b278dd1d51a
BLAKE2b-256 270a152d9529766a14d1b7fd8bfc4456b82b387c065d9ac34bd4eaee083cc661

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