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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.695-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.695-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.695-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0d2b9f4d3408bc99bbc9a841d13f9dffb66162fb47468c664b39a04e4d78c4f
MD5 d4e41ad6e92a050160cd60f7b5649b50
BLAKE2b-256 dd95246fccb39331d1951f93ce9b59774a8df4748201d6b73a19dab2b0b73eb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1e9e83b0d90f57d73753c3fe9ceb21d89e8113428d2e2664f2f8a9691076b895
MD5 62c072181d2c7702fbe3317e37974781
BLAKE2b-256 dfcb6668e3c63345a66c716a756aa9b27abd87f548e4ab205ea8818b4a6c3aad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.695-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.695-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0478aaf837298c31ec08ddc4719830de183163eb36f614c7a3267181e943790e
MD5 30938da0f6dced36c905e42c584b8b28
BLAKE2b-256 641488947f50c7ed2fa8f066a436cd692b307b7ef26759f52d4dc89b6bf14321

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7678060d78a30587cc26d289ccdbe3437da7deeadf8437e91db30b82e41e3649
MD5 eae73c236d5d50a65bd03811e42565f4
BLAKE2b-256 a25ea266dd9328caa35e5cce467a6c1ff960e0913b183892261a45edd720ee11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a4a9331a022989b7e812a2fd5185270b776a34a92a801f64bafafbb36a8a9918
MD5 22d27b59ae510fbea8af9bcf34a55762
BLAKE2b-256 9bede753bc344afb2e9106dfea273f8e179d7d408e9e5493103cf759991f1f30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1b3f899b09910366b3d7979a8039d1bd211c272f23faa3f64bde3d5d42ce6ba7
MD5 941b5388880d9663e72cb0438917d2bf
BLAKE2b-256 f9ce190767dbd725e8a02f338d582005a6aa000a93099ab003a271bbff045b08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.695-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.695-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 227ee94ebaf64690853015959f618cb54d70c601dd54ceede8d9ee902ae99e05
MD5 530642d3523ae88c742ee5926bbf0f75
BLAKE2b-256 06d509b7e112c820950dee418077fb5fcfe07600d357a781d609bc81a287ef6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c16110b0770efe08fa52c723b60e662db0723529392c1f09a267b2e8c64e1f8e
MD5 4e553ff881915b4a1f11a0b41da76f23
BLAKE2b-256 acbea197d99516449a46fd90ea0a92dd6f0a78e36708b3f298fb15bae6536655

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 85c3429988290b35e734c4c829449b5bf8d360f1f7a031605b3631a702626dc6
MD5 6fedc98d1d03a500a0ca655dbd2e908f
BLAKE2b-256 aff9f12bfcd6f0948076c42dbb699cf92c4be7d6dc12037fb7cf82e4e358b389

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8d372d12bdf4306f4107c7f1c5a8ee27d766bf03d12035555bcc970f27ca146a
MD5 e7b2983185f6426eb9dc29dac086ee3c
BLAKE2b-256 126a6d742142857b68e35bbecb2233e72eada39108afe6bfd40ccc7d29fc57d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.695-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.695-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d03cc186667e054c4ee9c4801780bc10bc041cd5330881155e88b1c30f9f67a2
MD5 a77b9846e072854af9a3b174b497cee3
BLAKE2b-256 62405c9917728b70b5b4b15c3b83b277f0035d56d6b713f6423b0660ee7cd066

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 594a57335757b5a8b6264fdb3004b860562f8d175eb8b172ad3df20741c02266
MD5 4f7fb020900ec6044fb75c433a4be30e
BLAKE2b-256 54c197b515d8c6b211d59ea520e3f4bfbd8c96e049c2f002b24fcd3e772a5f70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aa269c686bbd3f267a79d17dfe367eac49660049fdad522522a9368985abcc16
MD5 73e843a4d6729b3f60f087d929862e87
BLAKE2b-256 c5994f568a41004d3c088891aa006be4d408a2794e49248798a41f21a4d4b7ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 84c9c64c95519ccab6c8c2f7bb92076df322a8b57e4fc30a6f10d5654d44cf9c
MD5 e65a4ef388654a2f68943767f9168a5b
BLAKE2b-256 fa64f1c1ebfaaa4387e7dcefd05dd275a6eb7c48bdee3e572a874be7ce681919

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.695-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.695-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 678aab0410f07809c113bece954a8a39cf689b1af82a2f2aad1efb41e9477fa5
MD5 d25008454c92beb3e1a02d096e2061b6
BLAKE2b-256 fb030159388dde120ce16dbe7e65e154a34dffe4bcbb52bdffc36d1aa28cf55b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f8e9c5fa97199a809f8aa5924151ce4fae59dba16e57d58a6f9cb9874052a9d
MD5 65f5719bea99d590d62d2a43752dcec2
BLAKE2b-256 fabfcfab0783ce59671e864e0d7b5775dea4feffa55240418e961d89da19236c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 80f527eeb10c5789aaa4f7a22f55dde676942df724cd0b9e61020c045c2a96dc
MD5 6edfd8d4be842c8d0acb9f1cb074cc32
BLAKE2b-256 ad578e53ae975b477b0bee5f9e8d8cb0851799c955207bc17ebafe62765b0cb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.695-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.695-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 445baced064d43846719d3e49a0f06debc25a56a6ec642ba1c8dadc7deaa22aa
MD5 4ce7406a5d731ed0a82b2a5a26dacc6b
BLAKE2b-256 ce49c2518b84d00c06602cb04c8eabf7e0adec2c7f26765af7f7edcdfcea1588

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.695-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.695-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44147497be03b0e6de0e68d0198b6ad50da73937a98407c8fb749cdd6dbe0fc4
MD5 11504c838bc5c25720f4ede9f424484a
BLAKE2b-256 b5efe7154ab9aad0d51c1413f16c0ffb2508ef437762cd2808cc97541b6854c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.695-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df31fbd5567c1d11261e5579ee4a8397b62d891e584c1a4d51d22fede46eb18d
MD5 fe31f27fb0ac571ef6367f8b9b5f6893
BLAKE2b-256 1f48e5ac5c00dc75ff745ee877da1b1b5ab179c82f280605fc1527677c9603c8

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