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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.97-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.97-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.97-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 20de2b0ea29400f7ebb4ea4fc0b849e0b606a51cb911a052f44c19e6b25133fe
MD5 656f1d0bc6d8f86cff5501720c76ab98
BLAKE2b-256 3ffe38033419b548c5ade8cd7d3d961eda9a8f97c293abb7650ca930aa7214d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4a3733cb4ca4f8de315ac4b67ec8dac0b4083bbb80a0ccf8851701bac4e7c88e
MD5 7cc8e5b667cf90c7f63024e4fd22a8ee
BLAKE2b-256 aa4136eff7ac4de50b211396652048abf9bd973fb291006076ff08cc15258d9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.97-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.97-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e399b27e85d82dce7bedfa936d792327e41fd3fcc5dc307d7b24ff030eefa506
MD5 361ecf47a71af601a2f240b458bbcfa6
BLAKE2b-256 3608b8291b00464cec436427d11c69a680661dba48422bc6fb30d7bcac2cea20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.97-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb4bb154b9390e45f21480c604f2e87e5dedbe7aaa86c021b4e12e128765cbb1
MD5 19a4b93b1c85a140e42bdd70136d20db
BLAKE2b-256 7c46fc2e4330cf82577ec8a9a4369ab2f3946337910ca28c7068c8ecef3df5cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 88aea504441f9d24d6b7bc9c6df3d258fb63935ae61ecc63789e254c6572407a
MD5 1e837ee878d50b8cd235a80d2fa538db
BLAKE2b-256 a71086de743a762f1a43a43929c4657d0fe2809ff3ae819f997be287f7757bf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4351b0ddd48684782ef1c8b2d7e32bcd2de346f1255875ef9aeed1ec1763592a
MD5 e533462084f2699eb03a1284ecd2ee13
BLAKE2b-256 66fa90f9b334369b6e97a646659afb5553ebeeecb2569310cfa18e7e1f84bf6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.97-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.97-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09232e0d74c4b71fc8addd0461e7d2b80e99aad7aaf4e7fc7f7404f55a451370
MD5 75b4965eaa19d4cc2913c853847401d6
BLAKE2b-256 2f4e8ee70b687fb38ca8182b993288312de4385e32042673b0223945b2da9f50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.97-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dac5f37a997efb4e67bd05647ff281f348b3f6af2b950e432d982e9c77bd679b
MD5 4ec0216b2fe36662ff219e322b1886a3
BLAKE2b-256 5752c2cf35d8e3975b40c323a453733a127e869711cf1dd3e7ddac5115743d5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ed332bc596cc9908371eb479126db05db1a624207ce2190c7e0a2b704011e79
MD5 e1a63195efc7aaa2747a1c75dcadd0cb
BLAKE2b-256 209bb0eff8da3329e09707a33d41b4cd472cc4094d94cbe87ca0677c036a84ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b17f70c428eb2cfeffd8d663a3f4e9040f07d1fdcb73c1807ff3b76cc8fe21ca
MD5 6f40218f9b67d9c3a8eff740f2e3ebfb
BLAKE2b-256 8be4f3664d2a6b0e87a38600320fef23ddaa5b1ec9cd71dfbe59844ce67c14a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.97-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.97-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a08868763bf2f854ed61d9a60ca4aa39b7aac23caab27fe7a68d92c9d3f64bb7
MD5 54464f64b48882d7380f083872bcd64f
BLAKE2b-256 0e905c98ede39672d124b0bec9090e813c93fd9f254d8658dbb038d0fb1ed0eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.97-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ca9b0ded6f182e8710ae06e0ca9d4f50ccc18d981c669f22c6c5a412424e91d
MD5 969b3d69cc702910bfec92737bb07b1a
BLAKE2b-256 b3ab3dd93f21fe3f661cd22ef6ab0f984c35fccde2e035583fd751fdf3443287

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7dc045d7cb47dbf1c4fe5396a3196a903d899fee3e383740f6692735a9850912
MD5 ececc5be4ec60867ce4f48aa6c040b8d
BLAKE2b-256 6c266fc5fab13bb156aa86a6478d6039be7f9c380707ea633546fd1aeb7bf5b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 149b8e210070b0032ec1f906d3350f45883770dc6a39a7585c65267cbc7809a4
MD5 fdb9269d9abbf259f228c21aa9d19f7e
BLAKE2b-256 57ed3fa5585cc9d0ef88302aab234f77619833211571cb3bc392590cfec42644

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.97-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.97-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b603435e16760bdbf992503e80caf86f414a6caaa863f7b18764fbf611378eb6
MD5 52cc21f5eb928f5143ebe361bd6ef564
BLAKE2b-256 a5de5fb06cda621c7263010a4d7d3c1d61d6d6358690473248d7a90c646e4647

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.97-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 573a0d4ded3a29adb8910cbb53c7600c65c91ae47fcee10c0f27e2e1d97ad9e6
MD5 cece7b8700cfd817241a7891237d0182
BLAKE2b-256 0d0068f6ba016e5f33a7fb7817768bc27942ca1bcd57d0ff209e2269f551d089

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 50aa6794c34c73bcd722df7365997760196eaeb58e58aded3e3de917d9c32bc4
MD5 0ce5e53f472c1fac23c6742e2b4d955f
BLAKE2b-256 0815beecb2d1177964fe387933b4a0bf607267d1d77fdbb4003db403c1ed9a6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.97-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.97-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0c84c3d1ac59f064827b56f4f253ae111b87d50f3465715a130af694caeaabf4
MD5 99968cc3642bfe17af97007448bf4c7d
BLAKE2b-256 97d7958c129986d684363a5ba0998d1a1fa1be10d4374d505f816271a9abdb9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.97-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.97-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70627a9a42ef21b2fc852e08dffca0689281cbda4c7885508153b28795ccbaff
MD5 4738a221d2f641139e2ced584efaedc1
BLAKE2b-256 c6e49792253b6aea80b9b7559ae0aa91844085d4e558abb2a96086fd8ad6d10d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.97-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 270ccaecffde76bf0a5fcac3527151b5b25fce38f1ec7a102645f503ad2858d5
MD5 8c00996b7f66fbccb238ba035713df5b
BLAKE2b-256 aafd16c41e5a6bf60ac159a16d644ef80bc25f746d070d01c8f4ccb6940ad645

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