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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.397-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.397-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.397-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.397-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6df3a6662064ec1b575821f619a476fe81a8d1e5889ac012bba43818ccb7cd70
MD5 21e0c26268f2ebae24060d299e2cfba8
BLAKE2b-256 c3577a4ff697881ec9a4b1a2fa88455e2f67037e542c122a95f48e69784a7c5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-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.397-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5a8de4a1fdfb1697aaf332e9b08592170f986b030e3f3a1ad83fe3213fa7cbe6
MD5 3f2fd29e0ea7e266eb44b3fe89152591
BLAKE2b-256 dfd4f77434d42c504bf33a5d55c044fe75121ad6a2e81987b914d2bca5a483ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.397-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.397-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b12e04b81ba4b620cb782db4cab5d3b332b66460a014881df7774a54995376a0
MD5 002056eeccf8a22bf3743a9d521f34da
BLAKE2b-256 397814cf9274dbe7f72c1ba24e7386bd178718ad06a981c0eb7332f17a1843bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5da9cb8ccad79ffa72426e3aa2a2bd82d0a77bf91e73d2db5e12c52ebb24231a
MD5 19659f1ef6b34f547429e0bf823432c4
BLAKE2b-256 186f4afdc1a6a7a1a69b6f2f075347f5449c31292ff23a8eee42f579f5bac80d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bcd912ff8958e7ef6e53251ecbbad65a8a6cb1ea164b6f3cb2af45715afc6a0d
MD5 d43c4ae71210a4137bd009baf9673eea
BLAKE2b-256 eb7759118abc67f00940b6d5fa089074378f8a4e85d963ef432afefa5629a037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-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.397-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 967e20941cb716917fd04a52653f71a9b699e674a61c0a5f0a8c1c477fa01070
MD5 5da90594d87492572d50b2773305fb25
BLAKE2b-256 ddcd58f36af6a215341a194b88ad3be0deea331b11dafa96c249ab852fd1bb92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.397-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.397-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 949c7f0934eee4390ba67e6b5623debcc30c9b09848e21cf6ed6def692df35b6
MD5 46f2ef0e0d0581f0c7a32dd2f46c55df
BLAKE2b-256 cb8a5df6f637f7ecc50ddce8278f56fbd85e93640bc0c11cf0b9ecf0b3c79a35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5619296d3804fc758d0c729d41b292cdf4403f8376e85a17d70d8159b7b7b91c
MD5 94f3d366b3ca0e419232b41f234be82e
BLAKE2b-256 d976ae39d6133afe81d9f7831b1b4a5fcae37b659611fc7ca1dc4aa813dbb9af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d5c8ed7f67223ad39b93f0810fe1f0c06ac5b13042dcbe5904431ed16d625f81
MD5 faa9428f0d9d92e830aba57575dcd228
BLAKE2b-256 0845aae5ed24ef694701883267f3952a5447ed982ce2a9a57360a0599f470262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.397-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fceea332be6eaf73e412c761985bd164afb4b6ed407dc8e801039c5fdc17b198
MD5 c30d54ab7afe68ef457e61d3665d63b7
BLAKE2b-256 12c2c6bb95c8832015d5efbe0a240c0718810cbda7e829c1c0e2d6c0cc5e04e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.397-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.397-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06dc0b45549a36f7ffcfa26e9be193281dbd79948528fcc22ec1ff4fe3cdcd32
MD5 d88c4c87dfb91486c962914cbf293f7e
BLAKE2b-256 80bc2666ff10eb909a446bbbafe5a0dc76140a8dfe27929b92ee784fb90ec06c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f48eafd007b86ee22847c7754f29c9f193499abdd10be30e1d27833f2bbc434
MD5 2d4c94a24cbadeffa5513db21d3e2ffb
BLAKE2b-256 43e399639a58f0cd82c556002e6b4c12da61b9d8217f40cef9da6bc3b36d059e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-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.397-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ff2e2c1d8175ffbb0208969047983387858704c25ae1a967d5617f8eb15af684
MD5 b071c8cbae574e0d837141377bd216b4
BLAKE2b-256 ac13779a870b0c8b378a29dd5dba8ce91a773dc3f107863975a9360fda27f709

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-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.397-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dd28a77e7ae55b30b5aa65406b27c94a512f97026fcf1d63be1d1917a4d168d5
MD5 4f417e42a78b657c21915c3c9d243be4
BLAKE2b-256 43962d5df034d9b4a9321995f9d57ab28843cc67de99076c43bd56007d7023f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.397-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.397-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 034d0d662bb1990662086f949aa0a463ef284c42d071e91cb39ae8c9d4d6ff31
MD5 51a6241f82ef1432da53b95527678c9f
BLAKE2b-256 5b6f4ebcb3adb45dcd12aa1c2ce317adf0e58ddd90d37e32a77ba7e6f1c74d86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f99b3f5048e2751fcb57a8b2c5b96cadd7308892d666e376009c794d43431a58
MD5 1085543ad2800d9cdbc4d61a6fd25f11
BLAKE2b-256 28a2b34a2e61f1e61fe91bfe6cf154f258c6c8bb9664b8e77fb00be576a6b315

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-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.397-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 870787b1da513a73989f55704cf6bce14044fbd1e4813ef5f04d6d1abfda6082
MD5 b70ba6abe778d85fdc419d84189b848b
BLAKE2b-256 3863834e3abe1c5374f7a00baf330131d8046b19597aa2d4ef0d41e3b92a6cc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.397-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.397-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b502d22867598c1f2d3818f672191e4255e8ec38be19a55aaf17ad26fa488fb3
MD5 29110334af79cca86090535632048bb9
BLAKE2b-256 da3db3d63d94476fe69cfb4c5dd28e6944b3118b4bb22dfd4a9783fb3b9657d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.397-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.397-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e5ddd0af775bebbe678af1244657992de0fc84850e75af8728c019b86f21784
MD5 c1a3906c069bf14f2f3d2432dc8ba232
BLAKE2b-256 b5361c2c708ac7da3882edab4c7747bbc771696d5a1b8673840258389b8ae7d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.397-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7b8d47253a1e0fc39b4645213ada115a47a61ea6a23190004055505a2fab112
MD5 a149f8cddd9ca26452011eef575b5020
BLAKE2b-256 4060d8e18850d60f399d5ab540701492a48efa99bb2ddea35c6470f4c32206e4

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