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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.869-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.869-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.869-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7f6eef6077f411073dfabc06f6d4015129452cbf873d1bf26b8d697e88161864
MD5 4b4276ab5152ed12f9f8d168576e1c2b
BLAKE2b-256 52b90f1949b03eafffab3c98d54b5c719bb3bda683bf90aca9aaa0333c23fca5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 21f2d4a9ba22e8ab4fba24fbeb6ae358d3f5ba15c556aabe711fb665b30b76bc
MD5 b973f872eb575e1a1fcf0b9d31472f5c
BLAKE2b-256 0f46f50d628bfe3689e2289e754127339ebefc53c96b4dbe54f76f9479497d59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.869-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.869-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43184272b324e20f08687f681f0e99a7ee8943eb39e28bb9894fbcd14832f7ba
MD5 768275a5d514729b6d870a0a4ed6f139
BLAKE2b-256 0a78c863bf9fbc2e81a778aa5046d9ef146c8c32fe3df8ea05a06134dc6aacc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45120b147d394827f3f4c45299ce285f2ab53a43d8c1d773187af53ca1243570
MD5 d6aa493b0a8592f54b5ecbd3613e5130
BLAKE2b-256 923779590c4d6909ce69eed6dc2e6d7da5100c7716b57d03527385907184b385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ac7a3b9ed2921ace189f4d68e6814c7b2f37aca303584eb60393ac21e6882557
MD5 b1fbcdf86d5dad1d8d8fbb16bde3c15a
BLAKE2b-256 0919d3e2457b9a79ca64c767c34a9eb6db6c5903fbc8e6e8eebef50e2d2d56db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 98fde3a3fc6c60953ce2fe1f0ca27d603bcb127315a2ac0804da8d5218cf0338
MD5 a69727b1224b0fdae8e085e3898adceb
BLAKE2b-256 8d7ae1ef9d81a1a7d8d49f1a3c934b1c9fdff84226c7eff46a181643a76723b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.869-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.869-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ecf9d2e47d3b7053fdf33c5c47fd27f72c6065f4c85f3e1669c30dc05020cd3
MD5 82a494d2e9e1ff6d4182fda2d7a66511
BLAKE2b-256 2fce18538a972a62289b83429d98fa0a3174da8af763df9f37dd8f419812cd19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4d7f411f76775769fc83423bc61c340f7c8c798d1f758f2d31e3613a7e4b802
MD5 c7307809344346097a2e47de775bb785
BLAKE2b-256 28cfcb1674645b891b7747415d18e2687e995302c6d33953c90b25cbc7f89e73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 33aab16bd95cf65eacd8c8964a7b7f4080b7eda4c706f9e5800053cddf23cd3d
MD5 c55907d9873cf7a8825d1aea58caa28c
BLAKE2b-256 07821e42c1c4e565951cf31d19e1c1559df7360973824aa69a332608e6758c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c48a6e7047512a43509217a5d746abd45de50721cb14bcf5c8b24d0adc378a22
MD5 625e004676c549433600839583583c08
BLAKE2b-256 08a4a7c36f0536227fe6fb220f8fb74f0097c3639ee050c052dd106afc835853

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.869-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.869-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bef05d564c1e90a58248ae018987f4f9c4a192a220f387dc47342af8600dbbb3
MD5 36676c034139578f8e8bbd2fc329ad76
BLAKE2b-256 6a53ad2198523b2aca01bbb0f31517e5224ec455a35b55952c0e7c07e93ac635

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddfd91caf45bd8bd7e8fc633e9660ac4b878dd58da0109c46f155def674e2a9a
MD5 c36f2833f53ca949557d7cd428f55701
BLAKE2b-256 1642475ed3fbb78562465478351c54e3f3ba8d15b81f266663df04abd1fdab58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5780d7ccc8b3d0e547b67acd9e8aaee0157a0b7497d7ace1f720efeca5e95625
MD5 4365dda572e935e098d0b158ff35d4d7
BLAKE2b-256 8748c9eaf1364295156739b47daaae142ae251ec9b50b2f9f915b8eb2761bc7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6ec230d55023af2913a9401ba1e686ccaadb114ea1e084ea14fe2d19c3dc2464
MD5 1d63532978907ea2534d683598d12dd4
BLAKE2b-256 28806631ea9ace70bf3d0c513d8c20f3d69130fca8dcbd094102a666d718c460

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.869-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.869-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69dd8b0c976cd13d2fb864841ff227cad255f7a38eab3a84ef51c0a3fde8a08d
MD5 ed8383e91b73141bdc4ee4e1723566f4
BLAKE2b-256 2b83252dcf541690c5e9b60cf999695ce9ce2b57e466072b5aec9f2bf5006f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bcc73c81e7f04d2c7ba0c727975a779cdbf5f9328a739c7f09d126666d2e106d
MD5 57f5d722d6df0b0c570af51ee37e4808
BLAKE2b-256 f651be962107c48ebbe421c91494c1e4cc0c40ea36cfc14d8b5f50a577956c5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9095b919a1c6de920ab028d0b88fae7d0b641706ac6c110bb267cb7a874b6246
MD5 7d2e4d7162975cd703f8d5da6d9c7156
BLAKE2b-256 0f142fc1b0ea415445e5036b85e3f83772cf833db985104ddce1f9a95fe1ffec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.869-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.869-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ee93b33fd5f322a4e82bf2acacd0e4c68d5cf8a08e601eb2a3d492ad023d8ee4
MD5 a9911126366d93261bba97220c464039
BLAKE2b-256 0fbbbfb79eabeb8e7021b934e0f51ef9ffe5c4c297bd00b113fc2be7919cec91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.869-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.869-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2327e203ea0d34804145d964a4bb259f2f6cb22752e56b640f71306a5eb52600
MD5 7cc7aa9ec6cefbaeb9e2dcbef7a6d935
BLAKE2b-256 2edfd42a3db2827a8164a841df1afe47cfbbf6fe8dc42f99ea8927627953d110

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.869-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4af859b3500319d84ced52abaa3198be4581fbfe77671ec01e0881de3db94f6f
MD5 b8ae2fdd040e2c7b70a7906706874db7
BLAKE2b-256 d3dc2efb0c816b7280cd82adf9d0d97be7353679bbb9e577d0eb64e06fe91fd3

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