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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.893-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.893-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.893-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1a40abe8fc3b2d1e8a65e2d7333fc2f935bf4ceedcf2befe1bed6bbbca798b24
MD5 e5c40f8391cb94989271849de318cdd8
BLAKE2b-256 b82df52b0f5fb517f81cf28da18914aa929d1972bd5fa47a0653f1f1488a2ac5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85941cddf11656444293e6443e15fd3d36a1067d3c2601f362a39da0ff396083
MD5 273628d838f0ea7c5f5adef872df6d67
BLAKE2b-256 058e05e6a49dd1d174761dffc9d33df2992b9af26818b3cac181a410fe2c242d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.893-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.893-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23d5cf779517ac072440c32e2c2fbe52b7e3a4b34728f6e7ea369b72ec5ffca7
MD5 283fe69fb1df84772839a8ef8ce8ec9d
BLAKE2b-256 e7c248f9e4d376196fe1789ea4efc40385e35ef4db0b224297aee73393dd34d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3850e4429c9d851d26f11db7a775035667f690adad44e6ea8d1114125af3f20
MD5 23018a09355ba68f57eacbd62e94b07e
BLAKE2b-256 8dc642dbcb10a1322d721cc128145faa3054a4a3583536465351ada8e4a6815e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 be87cb0bd3379a8737058e312a702b2599760e464af0ef3ce30d39097084aac4
MD5 354a63864834f5444246c63a1e96d3a7
BLAKE2b-256 e74cef7d6d4227dccdbce183ee32b4cc940cc6829de96ba4be1ddf8c34904232

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0a1b1cefc8dfcc230b83aada32e69d31c382df5a8adb490ba9149fcc35f68d21
MD5 7b01d1b4e43f12b5fe3745b6b4d29d12
BLAKE2b-256 0509aca165e62ddf551e8e5eb14a300a6a7e84aeda5a85dd87ddcc588022dced

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.893-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.893-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9371cf34b7a127ee67482c6709b327edba5a8ee03997d4343d5f8d8fd2ea8865
MD5 74af79aadfff3fa43fd43ff1504cbb0f
BLAKE2b-256 7876f64f468b9e8e22875315bb985b1d9ad910ecca45c259de113d344e716d61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a284afff29298d34d21cb0d46f41713d39b9777a47c56b910bd3cc409e1a884
MD5 a5f5ce8773216fec3d621d5cab5b4d53
BLAKE2b-256 347ced810b28a9f764972513b729efab53f6a11a3bfab489a8e3c6846ada4f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3891771fb6ac57b1d843542a7386d6d0364a1ec5bae51430e7961d2e2a9593d9
MD5 896d0c96e8228c2131cffc6b45f9fcd7
BLAKE2b-256 080fa8eb1ed519aba7f801bf233dde5d3e013b1558d872048778d336a3ee4ab4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4dbad591cd0f0c4cc76702fb4030a3ce6e49e19f7e04ffecd37ae91529708cf3
MD5 92138c908dfff7b1e7ecdeef7d32d0c7
BLAKE2b-256 0afb126bbadbca95348e804b329fa6ed32d840831749fedbf9dde9ac8207dc1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.893-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.893-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a08d6b233afe3b825fbae3e3522cef8394bbb8f1d123666d6900721d793395b7
MD5 69c6c740f98fd4f33744edeb0979db2a
BLAKE2b-256 522ff1d8262acb2d16a9f6240ef5fb60b9dbcd0685d444c15a07629afcd4ad52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 135fcbfe5a419a9645a8cfe827c0281fe003a6d15adc07fbd8a202ec207fb34d
MD5 198e3eaced1b5e86e661f784d0192a3e
BLAKE2b-256 b001422c95ae6bcd7a25224dc7957290c59a12236c3882b1ad79f781424764a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 78492e2f92b8e98bf1969652a3d7daa533b9d1a485edce48fd89c7a1f35bb3fa
MD5 7d2874393028bfd3a942f05072ffda97
BLAKE2b-256 8ec774c03924a284f0cd8761ebf533b93d67bf5b1b5a0e4f1a51f8958c4081ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7514693ad9b1cd7bc74b214e21c2e11085ca4c6438dcf6dc2c11fe974e9e0eea
MD5 446bc1d37cf4e97394451e60b40c445c
BLAKE2b-256 f2525e8f0f75b750743fbb0fd6f06588553dcbbe1e686bdee1182e96638fa9de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.893-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.893-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33041a13b8315124e306a6635439955e646c9389024635b59c8c6dd28c10cfc7
MD5 d5213cad7e134e36a133480e56fea735
BLAKE2b-256 bce42f07862b6266450c5edbb20a8e10ba407e8e46adacf33a5839080150a65b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86507e18a539de3561626d8be68f48c6f423d93bcdfad0edb03b25f67167259a
MD5 0cf749693136bb4d6eb60dc83c920ade
BLAKE2b-256 219b0d9de72958e852e2274a547c3f7c09098d268ad42c98f60677f7f64a042c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9aa9606331184a128324bbf7ae149df028b646af1460984b53e9322369acc442
MD5 50feba6ba8dc6ca4093bb0199223a101
BLAKE2b-256 c93e3b1824682a5ebf3a33c1cfc492b7ef8563e4c79078162df81edcf58b9228

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.893-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.893-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b47a2c702ccbdc15a1ad07accdd941546e25318dd4109c22fe69166826292c49
MD5 1fa1686bf6f75f2b5da1702411bbd395
BLAKE2b-256 02acd191c724892f445d58f0663c0fba342c8df56309e468c51126be8b60e92e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.893-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.893-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d9708b9f9c49a97dc2f48eb2110ccb04f7c745719015dd4165f4891a9ad5f69
MD5 22e7bc7c37a6d6fe11d62068c1a12306
BLAKE2b-256 d0d5dc60acb7795aee5488fbc1ddae912d63a88c563d40e756ba8202c07497c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.893-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e21ed9471842d23faab27e52a92765a24a9d4695a3bc205cf21c081292e7bc2e
MD5 99a3e55a8193b0c111f9d772d4370122
BLAKE2b-256 ccbf1bb01aa8706752c052c5c0f8a3ea1bba97a6d50c90067bd2f15ee28df3ed

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