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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.21-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.21-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.21-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d88eea5e75f995cc759662a159b5ecf7e0bec87c6c16f20436ef36459234ec5b
MD5 369a341bd38f9849012dd3250ac6029c
BLAKE2b-256 4f70347807e69e1c7d5fb99b95db1a00f4db801f805403d60a8bb5837df84bf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 503745715a98dbd15b4721c02542fb20ec8743f12be05c4903567ac21dce3c6f
MD5 763f3b62c3e2bcb9206d6797528e06f2
BLAKE2b-256 01e9937ae8397cb4a25506a9aa3266126b6c74b3d65607b0777a24aa44a1aabc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.21-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.21-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9530b09e606a32adb21581b190401d8d5c017a2eaad4a44c84b0fbc0cd0ab4fb
MD5 8851ea6d88f46611a9688990f0226700
BLAKE2b-256 e9db4e2345725cc9f7497b6b937366d59979fa165c63025f8bd59d7ecd373b5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.21-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e9e5d7e6fc613293d4412aba5e9cce41fd75f09aacd723d58dd2605528616ae
MD5 5c0f67f7ee437d046d45251d77407096
BLAKE2b-256 be725b02596ec87d912f39d194640949ce98c214872c299dbaee502619cca40c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fd16f216a8504d763cd83654295e10bcca1a16f836bdb878e974615959ee9e46
MD5 14f3aa2c18bc8ad676231d5b8bf7f96c
BLAKE2b-256 c422c5b3cf479b6cfb8a4e00d126016d8171145dd8a20a6b71ca5f7a6d319f12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 63537008a17fb51ea50e029cedd53abd52e876cd5ed2646a6dfe12ed33335341
MD5 b7f7a1bf168530236385d300ebb1b837
BLAKE2b-256 fc8866ae4e41d5b33eac9c2da16419351564c269dcabc9ebf8fe20dfcd3e90ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.21-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.21-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15c43c4bcfd98ee7ce8fc86bc6be2ba2a8f34c845f26f2d31bb1bf5bc211176e
MD5 766394fa8115eb2fb617bd5ac4e3b7e8
BLAKE2b-256 1aa5f1d39faa1ab3773d1c677d582de534f9c45efe67eccfb9e75a8e235bc31c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.21-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 067682facfb9cc4dd7285f2886f1313a5fff8ebb2d6e4eb6bdb6336fa79f2a04
MD5 e32694bfb4bf7166cf20695123ab5b2e
BLAKE2b-256 d39cad15a9170b21b8d511f5aea432b97130e3f540c46f868c92692c8bffd0a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 796390ed158e6a0e621446ea4d36ad39bad16292ee0aeeb2007014ca06b32a5d
MD5 8c87c4d645894bd2f4aa93365ca02cf8
BLAKE2b-256 5625879e645695fe4a066e810339a210e528262ca667393c6eb65ba6c49f1610

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 06a18fa0eb6f361bdba3f74ce432d93c43b81e991e5261e100cdbf064a01fef6
MD5 fdfc51fa6943e6bb56719fe30594d23f
BLAKE2b-256 e32dc163f404572d0dce0e63be9ac73c166932a8afbc7626b334896f0de624c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.21-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.21-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 097826aefbc83520819297fca84c5b9c141623a43058c29b4ff83bdb1a1522de
MD5 c11f44e14e89f2d9eecb3eed0242f944
BLAKE2b-256 d942ef2740586cafcc430e7f30d041653bc9573ec7459ef38a055d9bb2e68914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.21-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a4aa679f32ba4568e3e707abf1db5de2a38de9c13600d1b5767eda5b70dbbfb
MD5 4893b05efdacb993e44cd930c7620107
BLAKE2b-256 91f58b7ceae570f2acc412e7d3b5ced019e05149ccb50f80b0f2c4bfd9106d61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 96d109b44dd98bb70a36c9599bf030f0e57e5647907092cee7ef2cd5261fa987
MD5 33d17d546b26ff29a1e03b1ce2a3c3af
BLAKE2b-256 105af4b40783ad382745eec815e2e91c3ed35ce07a136936b19fc44fd9dfdf18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d52c5bf32f097166c64c5bb3d26c3709420005defc72d5303dc6b3edbe72bcb3
MD5 609403c49d2fa7d8583912aa961d2b03
BLAKE2b-256 e8dcab5bf75650a53437b3c24d78a3c67d9270707e57fa3cd8ce2edf61fab686

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.21-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.21-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65c02f44da51c0dbb509b99cb61bb4a604cdaa69c90fcb637c2b40dbae028a31
MD5 8f9fd19e335185ded685c76345f7c8e6
BLAKE2b-256 9dabc7f6824b7ea7283b131f7e4813c30a925eec78f83ba4631c6b716089bdf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.21-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d4d302caf92c5b5d03f3501b0fcd5fffb4a27f6595fc7fc70e8d86fd6a4a7cd
MD5 743864cae4e50febb5dca80b4b042b15
BLAKE2b-256 c20f93d10beefef18d55d07aa794f20b2c49ed285059d41fd46f106328e822a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24415769af4f9b6f8b5f478b10b68bb727d15f824090836f7e974c7fc37fe02a
MD5 6e25469b0d3f5738a2bd89df05e668ab
BLAKE2b-256 1f7cdced550e501408d4f635eb0dc4015b9d36ea02cbebbb61ae7571ce9e3fb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.21-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.21-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 be981452ba9ed81931770a7c4c04d60b7478840ce33eced4ab686f74c39795a8
MD5 e03197bfadaba55681d7cebb9175bba4
BLAKE2b-256 5e36fd626b5364e36b56bbb78fae4722926c774c0be87d35c02020952f1188e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.21-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.21-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07d96891281a7d54cb4f35664d1b77c990422956832045d91ef57f968d9cd122
MD5 b1583481c7b19ed077be152cc5e78551
BLAKE2b-256 d03c71d81699ad3c9427b9ca7b1a6b59c47a3d1f6aaf8cfbb3e2eef412c9a376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.21-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bda7b513c9844c8bdbc9190e7f94e249dfb5dbbe621d3aabe8e3989a100b3fba
MD5 9de44836b3648678d85fe1e6dcb1cdf8
BLAKE2b-256 f95e8913a7999a9b79da887ff705bb55771aeee02c05ef44bd7091ce53970b3c

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