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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.567-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.567-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.567-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c7ffdde6fe4eb7de244a4e748c10e0a4f5b803bbda6404dc998a38616d534dea
MD5 30ffcae4d9930a61a91c224f9269990d
BLAKE2b-256 0cc5f010c608dfb550193d7e1e97a6480692a1728049df37ece53e114abf1964

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dae449e0ebe8aea1ad8df6278f2b0b5b860987d7063a909b2d89edc1c7e11aa6
MD5 96bf4e83e41bc253cffaf7c929d2c0bb
BLAKE2b-256 cff73cdfcf97666a4402e37381809435e5db2962fa888437be72d0880755afd5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.567-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.567-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67f3136686fa1089b2c017413b15f6235d4fb0ec90b973b621fb7b40614b0416
MD5 b6e9bb8717b43c112a6c84806722d937
BLAKE2b-256 71697ce42ca7501b4189070217c7ae5116295366c98cdcb58e35186977dfac42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2f2590f2f01bbfae09aca4dc8bd700914d8bc5ff89f2e36acb642d2f63cfc50
MD5 d667ad0ab20538bb254c76cd517eda0b
BLAKE2b-256 6e6458e0136ec547e20a1eec7e4d7cac43cb139b6c178234d9d75ab2c010bff6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5e5ea914a0879ba479d1ad57132ede4acd26f7ac7235b5c57038d8905336af83
MD5 20e64f74475541a1e56d4241228979e3
BLAKE2b-256 b7f4c162fee1b37628d67a87e87f666c51524957338b49e02b63d0c089981379

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8a3b259cc993770e1a7a2ca259f8786cbfd30ec1756a7498be035bb6d0346ebd
MD5 6589c72a4c86853e5af30dc17f4259db
BLAKE2b-256 a3cababef3282ed59be0325acc01770b67906dcdace425211aa15ad3cf3f6f64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.567-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.567-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b136b081db62a2e82eee60073c7d633fddc175471f08acc50cca1568ca86b0b8
MD5 3d54df85cdc505ff620c7833f765a1d0
BLAKE2b-256 65514cf108b3ea7b9515cfec3e8f9ad58f09f4b31238b7a5ccb4646270c6f73b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 271a1af8ddbeffda45a83133f2627b8974b8c18fee43459ff70f7b23b2e92c42
MD5 bed863a50f0429d4085cd5b5146c4e76
BLAKE2b-256 a81327d6bec450f802277e4e8dc67674f8a776667987be0c952537f60f92aac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2b80f048248d61a6ca4ee2fe621e8c1035a30fd270c0a3a65b3bbef99e953e74
MD5 c91588d02d36897db5ef84009ecb0403
BLAKE2b-256 ef2b3fe29ec7636e15c8ff14f05e6da7424700858445b006264e44e768d51d9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 abf46182335cd008e0e1949e4c9ddb578a553a6c543865d7dbd43019e7f6091b
MD5 82ce7a204cb6dbf9b6f8904a783326a8
BLAKE2b-256 ad64229df34576dee566ee2f52b1659850709cbe751fbb4f1fd580d0d83e2d37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.567-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.567-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 749180829e24ac86b8ee61a1b8ea9a01f413ea6541b21823b4f378a6f6eb9b2f
MD5 13fdd82e68773f27e2faad4285361bff
BLAKE2b-256 64e26d8df097a9435f0ead859e7562149b5b6a59cb99812f6f0216262235c5a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7381bb4273998a4a94738289d1e6cc16d81325ac7cf4f6a4bd6330d2e88939b6
MD5 3b16439bd70d08d005fc72ada7b35977
BLAKE2b-256 d3dbf5f33048e9300c2be2169daadf03fd26dff37da422fd7754512f5c0f7154

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 71b388a4b607f89409befb888baa719318adc7330851e6879651caefc2c69e96
MD5 d1be72bd940297e60d307a5cdc98f614
BLAKE2b-256 f26752cf001a6b490857de57059b0bc6d8290ec77ac8f29dc74b1e0efc6e908f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d03da183320f5514d1211756d3105d2bd72f10f5570cead3c3d8cbfb5a5bac0f
MD5 83f1cfad11191f5a99ae2b9de0b68af1
BLAKE2b-256 6a8067ad89cc3ae066a28cc1b2622ca4087706944c680e5ed168747224ca3333

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.567-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.567-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0021780e46d2d5bfcb7468c1075cf34ff3df5154edb51a0e84942c2adeef420
MD5 99cd369549fa9fdd7b8257f1c782bd42
BLAKE2b-256 368fe748c850e98f8d68ea9d2e0532b5926ffadb9d1fa96fff5dadad3c1a1083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27651fda988341908ceaac8ebdebca52c772b03749a85a8ac76b7ad4fc5bfd92
MD5 ac3af2d133639ab28bded27725c4bc93
BLAKE2b-256 8a3eb60ca6a251ecc01e0a302aff7ec6469efc05956ef5cfdfc7c8d3f452577c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b6970b1b85c4d99392f404ff242e56b89855fb7da065cbc2a6069a17d7f08e8f
MD5 86ab762ad890d1b91d1f21ba08f0fcc0
BLAKE2b-256 537dcc3ca2fafa9b3f14f255ee3a4fc77f7be6e9917a4b124d2875b8b42edfba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.567-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.567-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 072bb540f8cf3268534841c882cfb01f43304dc1fbb5f61cf7c53fd67d03a018
MD5 0cfa5865cd2955d38afec1a327e3ba78
BLAKE2b-256 ffa1ac666fd43bf1be36fcc0f5901fbea4b6bd2f9c203f88693f688259ba16c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.567-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.567-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50545ead2141d6906bfa4a5d1ed0b1f844294bbbf68a7dee9885ff8491d115cc
MD5 8976810516335873206a8e417c886ef3
BLAKE2b-256 53b71e3569fcb60d031d62cf53f427a503e52d51e356d3cbf903b324a1965471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.567-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64746bbb35e491823d96e9133803035ef972a08c8e3e2a832b7f4f742def18cf
MD5 2fe5507c48e8e36f33486d418a0f8f3e
BLAKE2b-256 284545cab35cde49e747f0d533aef329bf1a30330698563ee331311fb71d16c6

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