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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.499-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.499-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.499-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a7d1cc43977f6dfb7ddf808bb5e5d13b1a7c88432e5f55ec7afd44a155e82f43
MD5 ebeb5c18579a84cb695c39740609aafb
BLAKE2b-256 1a70cbb9df7da9e1054b98830a28150ca85b5d36b382745f0f79f3d2e57533dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0ef10fe4464ad4457f91fd244dc753fb1c748fd7f2b09654d6a8ac77db7060c8
MD5 dfc3d727e7c4d146102988610156c846
BLAKE2b-256 7e38dbe3ee5b6740596a2a6dc36e2d3d4ee1fd1f03e0253849a9c8c8b960d1d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.499-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.499-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8484677ddee556dcabcca27fad5ca8b65915e31845f0d38899b2836998e1a3d
MD5 4b7a2d10a80ce6f5ca91119eac5de06f
BLAKE2b-256 0799067ef4f53b6be229840c740ae771d7bdbddbf1608fa40cb00d63d3eac9ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34c97155d30c3db6155fc15153f4ff400278b82698a80ea1530631a41be229c8
MD5 14266e888c2e82b35b7405f95d56de1c
BLAKE2b-256 8eb794f8b8ad6d0aba3fff331822e1946198d822665f87da8d4970df79c7665e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 da600f6f51ea38fe5fa53506f6031c8916b2238c70be50decd12c4ade401ef54
MD5 6567dd82f70addf45c5835d76923d58a
BLAKE2b-256 a70c597b5c24fe1dd30623ddeaf08d54ecb6bc264c093f51bcc7fd5eb68a8427

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 691dfc8259b50ede661f47bd767bfe4b85084f67d87be7c6b90978e872fc0863
MD5 8e5e214a2ebbfe53529e4d9d4140ef26
BLAKE2b-256 572f06f39c699a9aabd7366c62e577aedf07a76b9a6bae7631a6dcde98f654a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.499-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.499-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fad9319ed11f31a92bdd29727703b9a8358629b7010193ea4095b09ac3d4cc5
MD5 5235f076a07c528011214224a1402f89
BLAKE2b-256 5887863ad3a9a1b748f4c975846090daba891f83a71778a47437e39e37035899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31ba546e94500b08cf416f4ac8f18300b46dce2666c0765ad2932b27d967de23
MD5 ec2e3d3c0c5db75110aa089f334a6137
BLAKE2b-256 8b9190af1196008b6384713bafcc9a6930de88934de345416737d23d7f59a1a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 40798414d94c5c3eddf2a921de2dd4cf8ccf326d08efafdd6c5b7ad96fa3e87b
MD5 1b6d73db5686fa6755c31fee6054c753
BLAKE2b-256 cf408e1feee883a0b71cad1b0dc3caf5b7145357fef08f684290844b7e73b4e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 734f4a4fb647b96d2862ad73a2ee97692efbd9ae8765e0720bef72c1dc08b47d
MD5 34b4dec8afcbefc2c7d7623eb5a3fa28
BLAKE2b-256 f53722e0802f70bacbc65550dbde0cc3d9d51d032437402f9358f4f6d4deeebe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.499-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.499-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45a5154574a4f20ed0dc5a654506f7ed7ee82c3ae30bbb4885f622d0071077f3
MD5 6e052427c317dac199d726dbfc9ae98b
BLAKE2b-256 6ca8de874b55069f03b3efee8ff2f1968dfa89daf6bbfd2c9a660337be9ae478

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78c2b4c69a70c6ba442e1793a99cd9cf4b1377fa099584b142488c31b1d41d05
MD5 4a5b82e936170954281eb5b5018a693d
BLAKE2b-256 f9d8476e5c76247f5ad76466b918ceef7075f97b8c6a79b6cfc8662eaf239ccc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b3c36e76263a7a0c526a4f6441480fded36af63e19f6534c87eb9741c5a8138f
MD5 4739ea60d2c3d775492ea82705f3a63e
BLAKE2b-256 2f7325adf9d57fef3847f503faf4c82dc2932e727584a3eaca1db121b483d07b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 72ffc9ac0a909912cdc483fe8c5294a08fad045da694bb5e1c319d838d7afad1
MD5 1c6715ca9b0b98f18e2374fb5bdfb8a5
BLAKE2b-256 e8d48de069aad180e6110f1ead1c43717d8adcb020a842189cf8c41e4875c4ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.499-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.499-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 901bc137732267bc2223fa70bfb4a7de7d3ac9651e0b77723cab2fb4332e6929
MD5 41d7f50ab13a07e8ffd9f2380995fc39
BLAKE2b-256 1acbe5908998562ba64927524b0253ad492c4e7262f5fde1b2bb16e445a0aaa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87cfa461d107f6b8c5501d5296dde1283383284351c0b12945f9bd0383e3fc93
MD5 6b6c7a74f1f4c29f45fdcf5a73e98376
BLAKE2b-256 509bf7f4a4e85d8e3dd96d5582ea5305c3253756cddd48d4c7273cc8fcb9fb0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 534b51c0955b9b6e0238fef854bf8df39989369ba9361dc4bdb55284579cbbf5
MD5 90fec9ded858aed8183ff0bd7b50350c
BLAKE2b-256 23154db271852f720577de5be3418a26febd6d4bea6a7c0e0a23ab16b9623e39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.499-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.499-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bc0821474e795979ce04f6ffac5d90774648887f52711f13640c8fa259720877
MD5 bbb0a466d725678d62b84e0851a3c164
BLAKE2b-256 801959252d3c9747207cef3c90519df0de09bd91932b0a90d39510d1e7cf696b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.499-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.499-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f0e256cebd82f082fd8b7a39d5b8f51178815b4675087a793cbcec105624dc9
MD5 311f01434747612dace9bdd6fe3d6ac7
BLAKE2b-256 b76e65a7a2f8ab1d266fe6cf213de82d5068c72696f0c0c152b6f0dabb5ebee3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.499-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed356b2b054e6114194c23171ae545ef6cbf2fb7dfa83afdb6a8e141cafe3517
MD5 e3a2177d8c13036dc828144e6afc9acd
BLAKE2b-256 fb4a60c9f500e08b489c73daeef8fc34f10d204de28b109bb536f6899c3e7844

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