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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.539-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.539-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.539-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d42505dbd6534c78906552f034e7b64a0fd44f58659c42f117dde536257a869f
MD5 8f658186e87f1b13f9dc3fd82966cc63
BLAKE2b-256 a5062719a711b9b23fb329d15577f23d98cbcc8594101c774d03ff81b10d04b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e3cb05837210f63af4d79a49a72a75c95a156f85bce24d605533fdb81eb4002d
MD5 290dc2c0a9a5c5e267738655d1f3b11e
BLAKE2b-256 53e309cfd1e1171943ec627d955068a8691dd00defd46b0b65ed53cefbba714b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.539-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.539-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c24b29d78d7285d21b6d379b4127bca5d1137f6a3061529f5bf1595323629b61
MD5 35bcc9a2ff6e99c4af10b064ba95a3bd
BLAKE2b-256 893895977c950eae6500157cb27c0fab5aace314315a2bd9708e436a598e9ad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7b8ae2a39cab8c051491cc4f13a7f3187930ebbd4837685a2f92f39d213d113
MD5 4c1e7c10e2b612b8e42209d8c9370227
BLAKE2b-256 9f1bea23450db9ffb8167a7a64e34fab6058bbc64968dc9157a780953986b265

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 889433115b6a7bef3184df49a1815ad89f2146004bd53c9def90910241498f25
MD5 3ed65a0ea9e93012685b39865e4654de
BLAKE2b-256 4dc39efeae6c1436128897464a9efed2a734c1a5935e2bdc15cee4d2978ef79a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 60cccbdbb2db77aad53b02e33f2c67cbc00fa3333b4db5af0ed68cc845ae1793
MD5 3101e3739f30447c1cf02f7d6216c68f
BLAKE2b-256 cecd712de6432c926dd7b7425b615cb445e536c962c5626091614c5ee590f13e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.539-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.539-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66abfa9d6f6d7601107d723090fe48df43286891fcba71c08a3cdf5138221109
MD5 33c89c93d63d1785856aa2addf99c6fc
BLAKE2b-256 a32d0bdda636e4ccc736e0432254f9bb502ed8fad3ba870335e8f7ac4fd258ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aac1e64d3003f193908b709da24e54e1fa79cab5b411a08fbff4ab648a4249ab
MD5 1726576e1c4ed68c2ef1f5507a59a4b2
BLAKE2b-256 e88ecc99c775306cb67dd2d24098bc2001bc8294ace635fdd00ec050fdbe36cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9aa25f821d8169e08f7844295befb1e5b8aa7d7f68b84968e60337e34e0b071
MD5 ae1261b166538ddcb704589e49aac591
BLAKE2b-256 a5bfa0c5e88d6fe2101d6b35218c83ab56617053105b0b9d89aabd5f25f11bdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e84b65dfcb7e87c930c389c6dde33399b44d4dcbf6163d7d9efb5b4fab232293
MD5 a2e49d44034b3696cdc5cd3b1a057024
BLAKE2b-256 777e81341ddca2cd656e4f0487096cc2aa90dc8571b237d7d330fc8a724259fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.539-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.539-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b061b6fc7d115f03914aa23de0916b849e6827491ef76ae3fdf28d77bb1f5be6
MD5 688520eddb0e37db64bb8cf04d466a1c
BLAKE2b-256 0bf1a698bdf1ef764881943c26676b904926e5461ef702a3cf98cc73235b7797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fde1ad0d2b29abe5f5398d1deaffd59acc06df7b5cd3de98cedbdfa9b9a349fe
MD5 70bcf3a5246167bc76d51438feffdfff
BLAKE2b-256 db5d5742296c29cdbfc77636ea4e488c6a02dbb8ac9eb1e7f0f30f07e5cfbff5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d91c8749e2efdf472d7e3cd697edce945573a5cfda525faea1d36f21e4b3b160
MD5 e030d4640114e6d74b03493a7dec4611
BLAKE2b-256 fa57c656494398e219e4273e6597aa9fec9c3ad33b691eaec9638ed59229f7b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aac10faf08e3d479426f007d7b48b633778a4b1ec623e1a32ebab8a7254b5d1a
MD5 15323e5eaec59aa0b5e8cd15e9bd56c1
BLAKE2b-256 603e74958a41f1d71ea22ee7d6b25090741483321f3c63a38fc70d69937018ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.539-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.539-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d022824d6e90539223159fdf242043474a6268111cef72526d3263471dee6c4f
MD5 f85dd4222ce28900ef59c22c286d0686
BLAKE2b-256 9b5bdd9805734536c42d19daf7dfe343964a0d7c1085b8bc3fbb4db698b95ae4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46c4620295693fc2560492fdf8729f26ff013650715e0c2765f1bdaa19a4a00b
MD5 338291c3a84843028ee859ba3a82fa5b
BLAKE2b-256 215a936d56c9991cd000bca114b26858ecc51246b447b82d5932780f6a63c155

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9cb3ea5a710339feb3c4e48e5abcb261528345bcb3c84078623b74cbcae17634
MD5 8030665363d7cdee3a5fb2ccf7729919
BLAKE2b-256 bc3a1a18563cf12a7454550c7657e4e1e13e21039a60ec41d41c023a20da437c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.539-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.539-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2d0db822adb12a64a40dfe9df44d62c035d72d5496c847e432982bd2ff0ead95
MD5 497617ad00d83ffafbac8faa0efb3074
BLAKE2b-256 4459fd031cac369ec65630bc4d393ca771ca5615db96bc5cc781414efaee3cfe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.539-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.539-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1ed6edc0b3fbd2db598ac2011a24b8539ae61d30fe0dc45a4b5188ac90322dc
MD5 12d0762597382e31484178a4465da542
BLAKE2b-256 27399b4b652c0f3acf5d72cdd56f99a6af2639f5c7c95a18380bbdb1454227c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.539-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b2d61d726b208fefbe4ce32e55a9c62cbe3e261bbadc16a9e99e537d8dd76c5
MD5 f481e490a2a86d41767a87f6f2acf194
BLAKE2b-256 f66a37f512d47987778c48ba3cd26c0edf4f6162b741fe97e4bd41dbec3fa2e2

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