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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.33-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.33-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.33-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.33-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.33-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.33-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.33-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.33-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.33-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.33-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.33-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.33-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.33-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.33-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.33-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.33-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.33-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.33-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.33-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.33-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.33-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.33-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44906f5f7db13f9ad6215451b4a3ba9071343dd812670000c5d0597d60d22680
MD5 409803d5566d8f1d04b934176b2c1ad9
BLAKE2b-256 94492687c8464df0d8ef7d50161ebb59a15ff4b59c1c75d9548048135bba0b5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.33-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8aa20c19172d73de77f27de45c81b7f29dd96a50f582889a68740a7c47b5c6f3
MD5 b47c774630cf2e9379efe96d0206070d
BLAKE2b-256 58f7b66cff6abecc17fd71f5524e0ec257131d1115b301810a7e5c987d6bb963

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.33-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.4.33-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2df3379153d8889d04a41f024535480f01326dfdc661f2289c54d7c0de225e36
MD5 7dbe759b7b459515bcc55f98615aa5c1
BLAKE2b-256 6036168edc7c997cb4d03e7ebcdeca51d143a0e4f7f75eb039eec9eb90a88963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.33-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2be1402a05e9e94fe362193157371a404c47185663da437a487fe7293db5ed7f
MD5 34960b29529e64127d310c182d1b88ce
BLAKE2b-256 9ffd1d0ce0259013cf5a1cc8490736fe0a874ac4b4b4f2a85163008cd1a489d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.33-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ed2107a30c9a949f1c2e04d12253e8e9304fe2164c54372de9c9f6707bb85279
MD5 6296c279be32a18b79a26a35407eb968
BLAKE2b-256 78f7f7beefe06c1f9e582faa3352f6090bbb46123d9f977d813ad900d53a73dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.33-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dd77ce326871719674a01191d8ef4ecc141ce6c2b05beb36435130b70bee1788
MD5 1be4304e04d45f709b6d24f93d53bd44
BLAKE2b-256 3b1111016bf91f57d52515d4113794c54d653447b5a71f551921bfc782fea492

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.33-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.4.33-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e69c2db970efdb114277a226af980a97d80bbdfb8c43cb9e205d6f641129c4a
MD5 9dab501321705b4cc2a9c602f24fe2b1
BLAKE2b-256 9389db1ba15bcfcb5e73d5aff7506c254b1a7eeea39176c79cec85fae5fce296

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.33-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bb84be061a1079359a7db34227f5b9b40ca19de969844b1d95ebe474952c2f5
MD5 c4927315f0410d5635454266e24d3a55
BLAKE2b-256 5ffc812a4f170b66cefdace5e71f443051d3177554ee2df1be9449ba297efc11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.33-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 be00815abfde811495b66340b2f0cb15d86f993b6e2ee382e1452cf9ab16c6e0
MD5 393d33702dc400c0ba9a92b94f26e5e9
BLAKE2b-256 7aeabdcee3284effe4145338a90bf88401085994de3a5c2232b8f1aab4cedfe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.33-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a8b2bd3fcba29062bdbfefe529cbca280ca8f02f2529694a70d5b05baeec699d
MD5 1b4f38276abaafb4400c6d78d09f8686
BLAKE2b-256 a7942360c4849b53514088dd3b19f55ead7abb78c628fae0a7c22dcdaba96de7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.33-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.4.33-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 609c03e802a14017de96082b3e01e468cf1e1d109bae46a4fa37edeea7b8eb33
MD5 d74348241aa2b95f9c66df0ad187808a
BLAKE2b-256 2e3235917e5cc6392b02cd7237ccd7dc79bbdec6af745c1abe79b665e33fdb87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.33-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce75daad4b3a22fe68fe1be120ee058ceca58e6f494acca47ceb21e8865fbee7
MD5 3eac43d5f269d33db4059bfcf0d5ee4c
BLAKE2b-256 14ef70b8416eb4f07662db59273d36b0cd5a390be6014af5dbe55ba76c4ebcaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.33-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 da0e1ab111a1120536ce238772b399254063e4dc1d5bc18fa6fda5b4db59f17f
MD5 ea4ffc8629d9e68bf628ee3a6eee5b0b
BLAKE2b-256 722c153e29f459a5dc0f17cb3e7033b900799f293d9103d99fd84d22fe991bdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.33-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 69db0742b3b66c867d960129f2d379c94c8aba388d1c06b0c98f519046d96ad7
MD5 45e17fb64df44507d75d411cf35c99b2
BLAKE2b-256 7a7d4647043468e038c31ca50f628dcab16cc501a7ba346cd7d362f1db67e8c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.33-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.4.33-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7b8f4f5387a8b8260513af93431d20d66dbd5d84563dd32b01d3177409c1d04
MD5 10a4d5c74058c1b8a570763d07df28fe
BLAKE2b-256 a802dd1a20fb93945f8fd2f93362825d64ec68778a2767fc0565b2dd7f95ad7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.33-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd1ae30cf5e61d743ad1e08b7f64f4b8ae870a975804b4d9bebd2c66854b6b7e
MD5 37a56a45eeebe29c78ac1a30d873e090
BLAKE2b-256 8f8ba30d203a7c333c113ad955602cf31c31b4db90fe731a1f0ecc230888e6a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.33-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d65be2fd986c1e5c909e76a13f4770981757e2b55b9a3f49eed81078aa07333c
MD5 17246076fec146b158a0b264bd30e4a6
BLAKE2b-256 55cb85db8a9cee212d74ffb3d0d61346fa8686152018e969468b684b82c90c86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.33-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.33-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 82a874414d75e0a659c646ec5c593718ca0ccc2774a556686e21ed555e8175f4
MD5 e729120e9d0e10ee22f77bed5c76981b
BLAKE2b-256 47a7e3cf4eb5142324202b3b1f0b4b3832bc60da0aa691911adc69aa50f7a93f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.33-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.4.33-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45efab00caa69713cf7ad4e43514ae582dfabddd7cd2b6d23af91d90943f4a1b
MD5 54d7e49b42266adaef85a65d950fbfa0
BLAKE2b-256 c6104da651ca0f3c244adbe1c7c7db6e7c8d1c70d0d2379636b35a5dd77332a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.33-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5d245ab4e9badbcaf9c95b21ccd355d53e62a35a16a3d89f672614d098778e5
MD5 0b2192c5c8726b6542eda4afbbe276c0
BLAKE2b-256 628036466f0b6aa3e16696b7adcfd88d963e867cb4b9be08df85ea9f1d367fd0

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