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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.215-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.215-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.215-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6b5d9f77fcc9158cf0b1cb3029e88fb1168c0f8e0cdaae5ad1becbdddcb2118a
MD5 2ef57a38e003171951a5b1fb0d9f492e
BLAKE2b-256 e00195baa36b4ff9cfa8aa37bbb92ce9610656bd5ad7b151697e9c519ad11628

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a279cbc95007351c3c3a8f111321d98a7e2beeeb81a946b49612ef5a28ccd91e
MD5 1ee57ecab8d9f17ada9f14c7660f38d1
BLAKE2b-256 092655939bcc73e96914ad7bba24a66b16d60f71657b97fff53f41b7ac52a034

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.215-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.215-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7c19683a4a902268ee7f8a3b7400a1df8b0d122c104838953dc41e6acb29acb
MD5 84879fb07202c4720623a0c79078cea3
BLAKE2b-256 57061d8e239a16ee8f05d3182ea4843334803eb4daa2f76b5159fb393b900850

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c80fd30ef68d9d97951419bd212848580de256fe76113a8e78af8546360f77c
MD5 bce84e2ece9ba9625acc4fc4d1cedd92
BLAKE2b-256 8611d2905e9e91b7bc5f834ea0b41a11c4767b6673398e7b69c8c1069759014f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1c7d4a84957378eecf556d215404f8d39e969e43e2ae7eb076f1d4cecb901f50
MD5 3d52423d7a9225b63610164e77e272bb
BLAKE2b-256 19cee0833e3e4f3f2e858098c698a3e2b414dc6a33ae0e8535583e4bf0d88efc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a65f5ba20e64727c5aff1eb0234c4ae097f3ca34152ac8e98213d1d115db0af1
MD5 662f132c12b796b449e0f539ccc46375
BLAKE2b-256 5ffb83811cb878b1f55d45a6adf44617d4d1a84f7acd5217efc0b75a3f4015de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.215-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.215-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3003a14404e01c226ef7b2b6f9ae883c638623e5969de53e24cf45be7ebac4b3
MD5 c39915fb6367ff110e12d63d6686f8a8
BLAKE2b-256 04801d58d18bf017471452c478e5932b18bd9c54a1686ae9c130c70f542a1c5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3749b4dbef1cd1d381fbfff29774f1de27000cb921a46c0c40a4efc1b9908ea5
MD5 872786a5e9d69e85a72bd5893266f5e6
BLAKE2b-256 2762d002a6ee4ab8a4461167c0e63d5ee6d63dee426f2d6eca55c39e8816985d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 91b9c18727ceb7edc2abbb3c19f9ee2f1ba510878d4a7afe339ad44f8f83417d
MD5 9a6a1b275536f7f9ea5c977bf6bc53c0
BLAKE2b-256 eb0be3ccc7706d8b271c0d857d88160ada5e464f6585e0fae4ae8857e31ca80e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bb4036c7bc84332296777e20a8add3771238d768ecc8372be4e3d36f2e4bed5d
MD5 c98865158380d8534c56d86fca9458d3
BLAKE2b-256 f2a791d1482c5977b96a272e2ae3a96a63b528d5d6a2a9916358ab3b89b05bac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.215-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.215-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c9e70a572d06a72c57e2dd8a18986983d770b00880d64b70c3cc8cb3c5f13b6
MD5 c2421cfd01acdae45454b177e6323877
BLAKE2b-256 10d9c9f4a3487004823370f564ab5194fa5092c0ce1406f821d4e2abd3866883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4049528e8655e636e3d12bd01fa5f4bc3563464466e50a6593583c5cd505b145
MD5 656394ebbdcde6181663a5604e311afc
BLAKE2b-256 2f5754e78b1dfc9824922ed10af1957c0a02d244303a2a33bb521938fb48ca81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9dc72b82344027249cafb2c1f1a6080117c8d3226a4d9789b0be48bf05d182f6
MD5 4c35512c253cf49bebb1b4bfbb1ce8ff
BLAKE2b-256 fe3ab6b459e082963d8f661b882eca8c2a9dd43dac5331ffa076bc10f4526a50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d7086203acadc7a272a04cbc181c949209a21eddcdf8e99a873e1bbb634c89c4
MD5 31ba97932e41f8906f9cb32498bc5045
BLAKE2b-256 10c8cacca353ebe1cc14d7d6a8bc92269fd095e20a8ea0fe7d880c7af281e5d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.215-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.215-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f46e0b422bde74344edea1ad62d7ab754ec54dbcb92b5d78420936f793264c45
MD5 980e4c0d48e8ec6eddf064c4e7a51861
BLAKE2b-256 1f92edab70eb524fb6a888c1f0bf19bb8ebeb81dbb085ea3381423fa9eda7b33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61f677f1c58cd3307d34bc1262aafdac3382bb0d64b5548b8edc1f5d1b29e0a7
MD5 4795323771d6f5fef96e0496d1769156
BLAKE2b-256 ba2c0e26f1ab3b95c465131375d52dfa59fe3d183654055a722a44dda8a3236b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 72dde5a2a1d3da04be1e04426625607dab901aa4ef348b7864242bd92e1fafb4
MD5 e05ea2c588858e1dd9b022db3bbb341f
BLAKE2b-256 832f67696967be5dbd0008f16bc1186d73767778b08b6fd8ad669ff5e0c73568

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.215-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.215-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 342b2de0cd08234035351ded697e7fb7108168cce42770e3622ac2e13c13d8fa
MD5 32aa5a94e02c5c06ee57c8da1d588243
BLAKE2b-256 6837e644fa6e2c505d4e271a46af036bc3c2a1bdda1feaf41359169466993696

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.215-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.215-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db9fc3a50753121d8d065763d918e3c6d461a578b4f2cb2e493ed3d756e619da
MD5 695378efe4ef0a63d1a47ac020763cc1
BLAKE2b-256 2a2d152ba2b97dca44edb0ed02a92750b1f4261bae7ffd876ecf730363c2233f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.215-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65780a94c9c355cfee9b583c481c987ab2c273fb03b92d45ac8a98be4360fe17
MD5 ede86ea41ddca631208773e6ec4e2b18
BLAKE2b-256 b054be1e0dd52ee08a44560426ddd046f3527c3bdacd6975ee76d19e9b26c810

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