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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.790-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.790-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.790-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a1dd5f2b92ca123c1193ead313a0f93b15c863113491c689a52234239f98ff2b
MD5 a5c326db6b6cd2fda0b07026b976b752
BLAKE2b-256 d0735d9d14e773acf94948fbd505037cb301fe03c70531e220e01c1b0c6aa967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 89d999fe0cde763e4dd84faac7a4e68619fdaf71516e3c3a7282cb1a64d71ae4
MD5 50a106c90f17d48b245c42ccdbbe8094
BLAKE2b-256 6c38a1d5ef272445ea81f743c6a4362d74141e43079964fb967cb6f6fc1606bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.790-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.790-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29a5408e1c96a93befbf3d8cb1fd63f6e2d086c8956d178a3e8c6f0cf5382838
MD5 555687609e3c421700f143cdbf87ba2f
BLAKE2b-256 afaab38a86a51235c1eed637fbb69f381cf397786b0127cdcd4b09cc9261c179

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa577b2f0e29ee5eec5543bba5a5f9b89a6120ff13a5334881b174fca28cf044
MD5 2480e0583aa1b9be79e50cf8aa3ff44a
BLAKE2b-256 dc50589e4ad0239605715bc5cd11407f0a3f1a2b8293998d54a8750f6f958c84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 664031ee2e4d55f73e5d70144ef108cb6af7a10592ced9a98443757c728b40f4
MD5 0af7b5731ea4e832e5593cae0a45a9c9
BLAKE2b-256 a9b311d9518a8781cdcc6bfebd370d72dd37e17e9ca40244e12a9eb445c259b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d074c4e0672be014f78a635b37f0d8449241a58bcf40101dbc805a7f697f6e3e
MD5 45712f56cc56035999feb76d4917a653
BLAKE2b-256 4b21a1f4b5696d2085ac68fda08b44d7561bab39f7183c6abbb237e12f06c881

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.790-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.790-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d3578a475943c4e535bec287cda77689c4ffaa81ce80e2784075619517e2f80
MD5 a3043ba73d806b4a4e4371988ad0adc7
BLAKE2b-256 4ac2647f8675c893acbb6ad75bfd21caa8182362014a996c3dc56137e6455d5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af2e252f16aa72476e7dd2e9158c90bb27bd5ef3425921a18285502d3d7e46fe
MD5 686d3df50cde42cbca870dfecfc9b597
BLAKE2b-256 886d9fbddd1c9e850192d6137dfb05cd0ff20224a08d6a182e8c91fa5ce52d77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 75c8861567c57b73dfd2fcb687eb0e73ec928e90461463397f9351cef1f0eb72
MD5 31071d73f6e3408e02b6d24e1400c955
BLAKE2b-256 bb266fb59ff25c8858f7e65ca68c1baafac60a7d000689bfeebe6afd3614aa03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0fceb6ae2077c7c6738e2ee412366b92e3a3f825cf4344dced93e297e57a8bf5
MD5 c4737239f8a4a87256fc9b702ae12f51
BLAKE2b-256 77463ee11ccbb373b7bb085c3ee13af0fe787a751bcfdf359dc425b5770d4a50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.790-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.790-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7842576ac013a4f865592a10ce8e728b907a14a266910f90aa164e31557f2525
MD5 c0f9e94cc4827e05e41e84d6bed39a34
BLAKE2b-256 36f33296d13cd67b20d441da42dd687f4ff6d92806b0d0008dbdb0cee56f7957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccab40c0c0e205534bb7eba6a2162814aeb1cbf9345fee3e504cef8ba0e30aeb
MD5 c4a5c44271cc342a25a7616fe7791adb
BLAKE2b-256 f7ca4692be7ccf0ef012a02207592e64e5f591deb5bd946ee1f231a93c9ff4a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 335b9594f749f1d52b850fda4d697791f830b638a0209d01555b3f30bd14566c
MD5 f68c959f93109e80a0cd4fd067330f85
BLAKE2b-256 378c6d9ba0486f80e16f9d442fb9f1c27ff4bf896a17268d7afec51a5d966b75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 402348f285cac5067624fdc8f6958d500bb3494c6f69b9707cb16e3405300236
MD5 77c4837c0f892f78582f1224f66a6c5f
BLAKE2b-256 f50b72c02ea4d481f7c9c7f42991c77dd4ce2bd596a56159f9c038de02fd9e51

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.790-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.790-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7e26a962c8aee96ab00403a3da3906893bd780861912c41ed8b622decf60b66
MD5 20f01e3f0204daa14e64f7db7e4f77ac
BLAKE2b-256 b68dd700432fbf61e63bb2397683a40fde959d489dcd4cfddf6e505be77c4e74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d10c13108a5d2fd61cca6071111d273240b1c96a427c4abd02ea025ec753d0a9
MD5 0e87022110b7507ff249f8ff17275135
BLAKE2b-256 7643f19bd8b7d4cad98d9b4971966d869c6ea58a6168dad7bfa5a1c055ad07a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0436832263f3dc50fa5f59b8dc2d9016fb292379de656dc1c6ed068ed9cd6b76
MD5 9becfb15f73dbc13c62795d0e3a1b54b
BLAKE2b-256 708731ff2f251d61901cbc58641db1beb34412f01ee3e0f3739a9f962cc260ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.790-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.790-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2567f6309dc2c8b7e0b958fdf7172901e691b59b722bbce00c73cf48637b190a
MD5 994983104984357d93531b83fd4cdb4a
BLAKE2b-256 e322aa0f5291df98ff7164d89d4bb53afb7a6d8c7e21282abeca97d7cfcc68a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.790-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.790-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7168b45f10514535f6ca88422fa5048c5734af1514542af9f99505b879013724
MD5 a43591a851bbced05078eedb4c59463e
BLAKE2b-256 e8e24a85c99d6e4b6acdf0a2bec2d2e772a8c8ce5085aa04fb8bae087e5a103b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.790-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddebb0c78392dc6daeee02e82dd46c1c942d7e95a8d66d5ae07b3353a1407785
MD5 4aa158fd99917514e50604b4f738d1a8
BLAKE2b-256 b7826df1c64cf51cb2cfb7ddd4889584d660b13cfc9f6e28ed1a2fa1b6772653

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