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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.65-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.65-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.65-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.65-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.65-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.65-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.65-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7c68caaef076e9686e48e9c22234e30e4c959369f2dfeb3294e43c905a8650db
MD5 2a9fe9dd6bcbbb3ef5750b32b1a9b4ee
BLAKE2b-256 2c079cf29953c6d0939e5e4c2b14c83214bdc4182b8b29f8aa0a4d08db123d2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6736c675bf713ae4e7d053ed7e60db5a28bd86ed5a1f05b943621900112258ed
MD5 808fb4a094b2ceaed80dcff3d10163d3
BLAKE2b-256 e8202e8a2daa625982ea69fe9922cade78b5d14bd5d29436befc3a5ecb915a5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.65-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.65-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef0a92b9f7409c492abd75745cdca3efde3240c3e59a6dae096e79b2e17f76fa
MD5 17c0e78d56cbaa9a294e724f7d485fbe
BLAKE2b-256 69461d47cdee5d919f975dd83ae1f3bb4f162155966871e379784304e6e74a71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.65-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89ce8f3e6793d0b8e5a0c4b637ea440f7db1fba8bdfbec08cb09e536f8b55b7f
MD5 ca4ae7554dcf5641779226164d891449
BLAKE2b-256 29629e7ec11c1e5e233dd1ac552d331502c3fa387240bb73dc09421cc8945247

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.65-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3fec8ef23f46af9bb26a7e3b8c3a78f586bf64397a1d6fabab3795ee64d6f3f7
MD5 b1a50c3b61a6bfdb10e005b201e45f3c
BLAKE2b-256 5ea8d9264b7b1667670c35abe6e721c5e14dedd53c4dc063cd2437d86289b0ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7791b142deebce6a17612bca94e49d84c770255a1a550f9f120c5044b8e9e20a
MD5 e4538aa17f7227b3bf29663a36711308
BLAKE2b-256 25bc7314aad7f2fad65e9c83f125a22a45bf705e8640531100906c748e339e9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.65-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.65-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4486946ceae4a0d00151cfc164ccbb291f2e1f96e33a12b640ec2f7ce3cd98f7
MD5 d3da21e2dd61b1365dd247c56353bdd3
BLAKE2b-256 20b3ee9252e6fc8b7f05a3a54b70738610aae9082579911d554d5f9348ebbd4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.65-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c378e2eb40eef06bbff59be0d4fe1304fc9b6b62e13daaa3f070019649764471
MD5 8072bdf16b625d61f70fc59fd0faa850
BLAKE2b-256 ffc0eadd0040513233625a981bd63e6a38bc30e0d19a1ae8a5195a855ef77106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.65-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 887a294efef27a7343d0f56519e0fe2e17a6659bddd38f23e241aab91d36b1c5
MD5 801e34bdb35b9304a0d217a4f4fe2a68
BLAKE2b-256 f1d62e1ca1517a8b64d61ad2959a99fed85dc1a6716b692e2dda14547432da28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 761bb1843a68069069ed08ede2e822c0879db6e41e86c7232d20ae74c24405bf
MD5 243de9880b9eb186c4ced91f7cecd776
BLAKE2b-256 51fb069b683e02a1c96b0fb19c55d22ff95e9ad25c2ee266f7cf8f33159ca04b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.65-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.65-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f43dca20b444b3bb9ea2e784fd9b042e41596da17684a20a2ec21491f285a07
MD5 8ab48524eb9fb0f4c792650fed7cf0f3
BLAKE2b-256 ac980b5ce921af8faa32f783ee6f8bd216b42571451d3c63f0be3c44750716c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.65-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29139031a3a33bffb49cc0f6c010aae4ffb64e13bd38aed74dbb178b14a59515
MD5 3c00c0d819bc97020d72ffb3ab87d5c6
BLAKE2b-256 eb71e1d66c468c54b77aa4b1bccbfe6174254a4564022e8c73569d0c7c7499a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7496e67548ba827382a4b2764e70ea11224896932fe846d30e6deda98db11db9
MD5 34d2e089325c6f7b8435b0236e154442
BLAKE2b-256 a4b8340fc06c775795ad91d0dfbf9da105a45dac5cef62728cbbfeef5b8dcf72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea765bae75345f1f30219fb3f0b2429a89b68dc7d6e4c78ad08427666437e6c3
MD5 c5fb2b4ceac2e12558b06c6eba7361bd
BLAKE2b-256 ad77334566c1b3cbc6df719020e472c6e876cb6695cd97a38e30998940a6d8ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.65-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.65-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6f59e87820027f03d521c9cb0c0f55a51b2fd0db3e4733919a47ce86f6e1293
MD5 cb124e230261c85efd203f7ee50913d6
BLAKE2b-256 633f0c0388e156fbd27c1328a06539bd7ad8d73d1c633af7b0ce9936fa6d19da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.65-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12fee72e4e8b612fce4166c479e07f2a64fe2703653634257dd48668e448afe7
MD5 f5c373d09ad1d557ba3ee18206e995d7
BLAKE2b-256 077f6cc5f61b2140581043ad2afcae5cb64a07dcecbd55c0d413cec9dce8ed34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 da75a4ada677a8d510bee1ce3b9d2e338fb8b77be89ce24bb5b632c97607a797
MD5 68764a1aa459950f90411b6d1b725699
BLAKE2b-256 d23e67b6aacd84a04606590e01ce24a0bd37c2f92a27268ed69681220cfa0154

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.65-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.65-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77e5d0ef5853c2626ca1cdf58b84ea3bc81707f4506020c9cc1e228b1e2aa72c
MD5 017f62651030d895911a8bd75e52a781
BLAKE2b-256 5482d7b916ffdd0b8c1168e7d6a3f6ccea3a5e41aaac851aaaf31f2e32be7a66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.65-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.65-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f9e042e8ecc314949d0ebd45995e22e583f29f6b3b1db5ac5112834913f7c52a
MD5 5494c9522f039c2ffeab31d4569e56f5
BLAKE2b-256 97f5310024386791dc4ab53561fcc4fc42f20949fc78cdaa092c7ff63ea6ac17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.65-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f72e1215dcabaad3a04690911b038205fdfcb82048531384a7bbed8e0da25cb0
MD5 b77e58ab279a5509470c3667204e95af
BLAKE2b-256 34e73a6c9ca40c7d2258112d5fc8895e4734c21d0fbca09387153eb14d9a835a

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