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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.302-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.302-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.302-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2bcd6740696d4b5d4d15322653f27a79c323b1f745b2cd2111da940d5c60811e
MD5 8561c38d3247c52a59de7ecc5325f08f
BLAKE2b-256 de1842faec8a5a0131b36901d8783841fd469bb943a64956c3fbf587dab9c62f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 eaab4094b2fb2cf0921965e8acda86ed36f6af2405ee9883d815f15915d9921e
MD5 7f561e6deb99ed1ae86e5800d39e918e
BLAKE2b-256 e65753edd8c70472f3fb11c7d7c4729d6339a8bae65f641b68a8ad0b3dee3767

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.302-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.302-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 174bd07bd17c949e52c2ad51304be52791afb28d6836547822ad7a4bbfda5dff
MD5 3c1c873dd38297178e22681ad4365d8d
BLAKE2b-256 034e6c9ad1538ed6e06ec7bcfbeab36d08dc82e1dc1819e464580cb27ae8055b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df3d0bdf5f434d83ef320d6362c6734956eccdc88e51db5478c595e7866f3a87
MD5 9a4437e519ba2c54b53b51cf2e1037a8
BLAKE2b-256 3144e489e83c3353401e2bde3091e1bc8497d736264461a6cff788a83508d2d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 45ce15b05ed4e45b22b49c0750f8c257a6bf70a857c6d3691f145e349c1ef34f
MD5 cc49357755029cff42c649c1dd7dbd8e
BLAKE2b-256 63bb9ccba2cb484cb185392faa4673117e7421b6d3fa01cdc959ae062d2d0d09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0a9efa2e70f8af9847167363098376b335b5a385d04df64c4e4df58d0d4094f5
MD5 6e599d72142b699842c8d32f8828c6f8
BLAKE2b-256 92c11db6aaea0d56e75105fe28e19a645dd1c411fddda106e8ef1df8fe1745bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.302-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.302-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 327291a7661c62752fe1f27669401c32c075ee17b65fc9d11c6173560140dc6d
MD5 5c18775e3b06a0f226dcd89a42e85535
BLAKE2b-256 f49100a28fa2eb26fef2977561ae1a69fe73661efb8b45bb6880c0b5fb52a7b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d90f5b57859d6355c01b26d82ecc4c9f340cdad3a6987580734690ec20a7f1a
MD5 c733435cb605fbe0cc8f8777565486fb
BLAKE2b-256 ac0500d3ef3875403b06a872d5c685e4fd45f36b7b41d2d7bc406ab8185206a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 442e118fd6845cec7e700a56739c38b3fdfa72283910db92e7fecd209112a6d3
MD5 d9345653056ac7671a65e7b1e0e16c93
BLAKE2b-256 d3e4f27bdd48adfd73a2b4376160b8f54d0933e0d5c4e28f743fbe8f4c76d82c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ea2fdb90bc75f8054af7bf3206177d4de7f4a3607ecc95f69f8a18e914811e65
MD5 70c64298c5aaa0ef44f44198688590ab
BLAKE2b-256 36dc02ee0f9f24c9e28d8048c8d7171f1eb611e79b97829a924015466552a701

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.302-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.302-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b210d6e8209adaedcb34bb2f3633bff11b1f6b27368c7bf298c9458c534d8c79
MD5 148e818a895cc91e4adbd4e75e9310e8
BLAKE2b-256 2e1fbcb3fd92d9c8c8830d04b695fc62d1349dcd30287857291c4293bb270eea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6e49937cea7e4268e86e20e7da1499d03e5949b85400e708e44c2b823ff9245
MD5 8942a559897d0097b21fe5162d352dc6
BLAKE2b-256 a978efc5b3f580d96aa3c3eefff3bde73402f9e1f1c3cf4ff1469562114f240e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 822c8a6bd87fd84bd520fbd549cdb6957bd0784f73c22a2885fa9bf32cc6ce24
MD5 612076004012190b9c1606f77a015dbc
BLAKE2b-256 3ba20d7e49fddcf4aa741a0dafacad25ea0a8356601f1125256845fac0a869a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f728f3d96138f7695cc98db01505d6734f13b25319ae1bb08992e131651e6789
MD5 b5dd32a1500405c7dcbbd133a657b39b
BLAKE2b-256 a2ec5fb71cdbb30b86ae0db8b40464d22ac32b9267345bb302bb461cd5b6f223

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.302-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.302-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3abd940d1e2caff6be39b01bf2032fc3baff9d133ee48882be3fc3635a6a82ad
MD5 d0c33858dd97e98e9fa468b6c8dc9b83
BLAKE2b-256 59803af2f2501927087aad2aba4872a76830dbcdb4612f0c660be8415bf25d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5438e7e28a82096f69fecf9681f2092e0be8b1161bc028131163025ec6f05fbc
MD5 83c8ecabd6a0459956538aea0476a908
BLAKE2b-256 34913a91685f4bd9299fcd24850203e17fcf1f81463f5cacc69413928db81937

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3b7fca92a2f1fd70ddc3cd8982e376021f1bd76ee379879362bbc270df3cc2e9
MD5 ddcced805e3d7d78790c5124a0d76f05
BLAKE2b-256 bbac427e0a204b2eab3d3ed12db939ec58a283443f5789a83a8aa7a2a650c665

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.302-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.302-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e09580361bf95b0984dfac3bd98026de63502627e371abd6a8f490f7c9b2f267
MD5 1142f0ea3535948ce0a8847f25d1f580
BLAKE2b-256 16ea042f4dcd18678bf78984d761881052dfc34e5c0fb4c2bd33280537b23cae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.302-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.302-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 febc1001024d71923713cece021172dc84030d832694076f3ebd4ae9c15699ac
MD5 e3d13674e5c4b4f6393c8719f9ac3fea
BLAKE2b-256 b45b036d8ca00eef686ace3c72ad042df1c2e31804d63bde5ab08b56d8898372

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.302-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f12da4c85c4ab3667f69fc258d0a336122a4814b942661eaaafeedacccd3dcf
MD5 c4508b85f157d633ad1a2348c13a250e
BLAKE2b-256 0ea7379fc49013f37d5299e7ae4e7b4592edbd45a9cdb6de01679e813acdb4c2

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