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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.917-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.917-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.917-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e25766cc441ca7d78c17d6e25ebae78e7478c09538aac992b6b050a4ee7ae72
MD5 30f973bc33d0fcebbf064fa2f0c8a949
BLAKE2b-256 b8cf83a18f5b5a994c8a0f14bb85e2bfd4ff928cc7439877a364bcee3051d937

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 33b5453eb7d2492f56d56c6ad11a9f59cab9678e0b9775d5ec17b667f88e2826
MD5 3843cbd3918f719fa35428eb2fb6e5e6
BLAKE2b-256 79d16d495c6f010ed7ca28d9ca7de9ac4d3e3c03361ce41429e4a44b193e5e92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.917-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.917-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f5a5c3272243e68e000c946e9374208ac42af4697ec09a3e24d85fb7daf57a2
MD5 7b513b29cf6b5cdc297e597f3fa0187c
BLAKE2b-256 8fbe735b08c57c2a48e54338368373077ba59f44d8c739ed70b351b0bc54fb7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e9333577e7cc2180c23b72b794892ee2cd11cc8b0fd239fd0290ab4f5655eb8
MD5 9dd81800b78eee8b776dad596cbf6c8a
BLAKE2b-256 1f31b72cde7725303f57d57815251dfc91bb7e379afdce566998ab08d88b552c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d4945c2fdc97966157aa32e16a4405627131d0b3b6066b3e58fe27ef5b0d32f9
MD5 deb83ad7c7bd47242f984c3eea1e372b
BLAKE2b-256 93096db816369fe8a450177090b1faf685d128143f479343c7b04935024b01b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 589d918bc657fa9bfe1156f4c557abcf2387dc3df39eee7c4a277d835be53bf0
MD5 1c39278553f56453352c0202841f7716
BLAKE2b-256 18b97c408089a620afacd07db27dd82e0fa711a22b9840125a66a05a14e6ee6a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.917-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.917-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80869e185ac66abe962d8f4de81de01b25b1126248dce62e459b74676e888de6
MD5 3b5cd4006fde37ba71cf8f6bfb3efaf2
BLAKE2b-256 720e84f0cec9f1b4284002122e57242374366d35d3cf73bae4ce6abbf14dc346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6562fa41453274aecf8df3984b32d3494fc7cd34229dd02736836b5a94ce863d
MD5 288bd880264f4855ad7080d70f1f967b
BLAKE2b-256 67ddf5ae5a5788ec5053d877e31e979408706aa62515d8ce5dd9078923a5d4b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6c03963093126f0f7fc532e08ff55049f9d35e96e633609c6c102699699291ae
MD5 41b796f922bba3e62c41f0328ee9be94
BLAKE2b-256 f5a63868351fd2ef9c6e90736669b98c331695fc5c152bb62ce4230be8765650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3821e882d9113f559de5f41e173b2457092262771e77847d99cd20b027b08c44
MD5 66770ab4a87575d19cb181a15fec5aab
BLAKE2b-256 8cc8162ee1c0764f7b43df0435f14d68efa461ab5addef128ab470cb3012611f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.917-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.917-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54df9dbadb91dadf593333dfc44c93bc64ef7bd10a035912a45459addcdfb424
MD5 f3a64076f8d71ca4920d96e8510c3ace
BLAKE2b-256 fc54ae97b0a0118a7852c09edb8e7277733f7d0c45e3b1bec61acc5b3554db55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0509f1d7324d824d3220900b897d2b5769332c78f3fd77e4c30a4f13b32ffa54
MD5 f2ecee0a1796dac21bc4bbd0f6d56474
BLAKE2b-256 f81e01f04b2e5b55c7d8c4a6808e2437fb1fc0b0fe2ef5d3390db3da8e785a5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c5d3c8824eaba35eda7c38f5d45205effb84260fda14b475897d3dfec7c36f7a
MD5 0967e5941272673e1174a857941ca56f
BLAKE2b-256 5af175ca9099cd591a737364ad8de37f545d73995a5578f91e08955e8756cda7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 583491733f1cc6bbc18746c2a84fa41f66e6c2077ff8eb28f4a5cdad471b1c5d
MD5 faded26c6daec9d871544ec88f2a7db1
BLAKE2b-256 c0d0cbf296fc7711b015fee9dc0a926c2f7dca97d4cc69539a33241291484a32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.917-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.917-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aea98604fda13870bf90149e3dc9d08ab7b657839c9cb41e626f5e7b874e9dc9
MD5 0f6ae8b77287a25126995439e809aa49
BLAKE2b-256 e6c24aafb139744b9c0ad3d7c03d8db3eaf09978b6b1d0c66f3d28b1c2a66502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69118e47c9bd3f4c3fc405a84175f07e2760292281d9ac761f4f834266fd2194
MD5 c89159ed4b2e75d0f289a89c818c1ade
BLAKE2b-256 39cbe55fd3f86de519f6eeed692c13e611912a21020bc52d92d3af675f2a3159

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c6af5ccd9eafc82ecbdc77df5ccf30d35cf43cd2058e0878cef4a31d533ab00b
MD5 d237362c7af3943b2ce036caa80dfd48
BLAKE2b-256 7e9ef0df10f3f84c311bda728e4da8481f71d90eec47878de968ae1c52085046

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.917-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.917-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7ee7fe271b4df54690f6ed28852fb6fb3ab8d3db78a2a77088f0c2afef0e4397
MD5 b8c0d647cdfcd95ae1941952435c2081
BLAKE2b-256 316443409c0fe475959f1b348b893f4e2f974c1f5c397dd484501f70e60b0f7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.917-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.917-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28b4d5cd9ca9b1bb3aad5ab63f0597488b6af08d028e201cb1fc6a41e6ef0e8f
MD5 92f1915d4bd7596eec5b6862a13651a6
BLAKE2b-256 5913b4ea9d051719ada77d4f5e435bb7b3b3114829c37da91cb8d1b4b7647e26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.917-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27b27baf07451d2d301899b075d0cbc0c8ad413e422fb485904bf3c6fb855c0f
MD5 1d7ba42acb20505ae935cd32551fe137
BLAKE2b-256 d2578225cbc1f3d5d17f785f21205f8864b3912d07af7b1aa159a9ec4de2109b

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