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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.413-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.413-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.413-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2d20c3cd1e768cf4f602fc0728710ee83c23be0a78fdff45bf70d250954b734f
MD5 e21dd6e0f258eeaa6c651a1d9790ddb4
BLAKE2b-256 8b0d8abde741790f94432651f4b4c54c7d3e2b0a19aebff1453e45a74f533046

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9afdd1a0f5ac5b4d766554bbd05e2a6c9b616a07df4b1cbe73bd78baaa4df041
MD5 6fe44ed91d9f49922cf31dad803b9ab0
BLAKE2b-256 3857a5270f3f2f1d85fbab3320fa3835d33b8b053cfe237cb5dc06e16c94e039

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.413-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.413-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af17c719453501e49c2c42232f4252d989f5e267791c4d2c3faf33487f503b02
MD5 2a4fcb3715189366c468876b69a3c471
BLAKE2b-256 723db55621ef8facebdb832bddcc68407e4d10baabe02edaeaec4fea73d2bc85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1ebc35c59f93f37e40c12aec7392e7f858ae21c9ce9f5b5a3240fa227fa6340
MD5 80bbb0db864945bbb94f1f96cbf5467c
BLAKE2b-256 9062930772b64ac44ecb3ff123d6a77dd41093ed17f7b2cdfba874a7d4fc2c31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff2f7cb40ba54177a6ca261a5dc40a7721b36ea66739af26a70f2ea10d1bc890
MD5 0b93de2ece79d0db986c5b1ec0fdc503
BLAKE2b-256 b527ddbb7b598b5a333401e6f2fdc27df0254606b33b7d1cbafa16da64b3b537

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 abbffd22fe41f8e818f98bc2d557ac3d38b2a40c95bf9812f809b65a885690a7
MD5 6373274ec6ef0887caad592bd8eb9145
BLAKE2b-256 39a1a221eddd0e268a6ee060e3f702ad030d0aa95391656d050ccf3de4436e62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.413-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.413-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c54ae2f31b0e5e0439a55adac2ca0e21e046d4e7e80f53e872bda30aef7e0f9
MD5 82e2f0b34439db72c157803a8f84ee57
BLAKE2b-256 f34d8db62542f614aa50ed95f7a68e0802681b2f4024a6d8151bda9e54c39767

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d264d2345b497f23b3fe456384a2eac35ce3f517571185d228e802acb6b77e19
MD5 b02498095104a3f4119b36b8c61549bf
BLAKE2b-256 072c0d25197dbfbbec8661ddc9f10eff70029f38936407afd7d921ded84a0dba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a28c86b0944b763d76d39d0456f8875c89b8e583bedfabce731cb45cdc577f2d
MD5 723a33f606c489552410780be238c7eb
BLAKE2b-256 4c7b01e632e1ce95669f9463d0911e35dc7a8aff36c7930115325121319868b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 47ddf626870b881b4db4f8a253af37bae85a0513b3c7152e906a1c32c6a65a1e
MD5 1f2ce3886539632a8751922fd7b197bc
BLAKE2b-256 ef21068ef929e3c97553b407ad3ad486a5f373261ad4e7495f2a71ef35bbd809

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.413-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.413-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0b195c92ff87538e47f216a05700a16fa2bd3a0437720986671245e2b405a36
MD5 eb19faa482ed44ae4d04099e53712ff4
BLAKE2b-256 841c8661a310a50467b0c85395c47151d69e80b301d9583acfa6f88a3987afcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea7196123a45b6baed23feae0542dfd9ea3fe87c21fe54f7c5b0c2ec9fa612c4
MD5 b8e72b3ff878c0ada70d8e5a05cb668f
BLAKE2b-256 e413f1cda27c9ebee12f36285f0a1d9d66dc46b54fde8bc2e7580d552e7c3f73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 98b8b3590cbd41fe32904953a954f3507c729f185fec397552a7a813c5eb8576
MD5 c59a0069e32bc21949d5b36af7f9d4cb
BLAKE2b-256 770ffd5ce21ffa562dcb2872069ccb22901dfc4c86d1f3d272c726fb4001ec18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5be60b0af3c6ab785f4a73a00ffc4bcfef6c67eccc33a7446168a1ea133a9dbb
MD5 2deb801abcaf0da7674d2537ec428e95
BLAKE2b-256 2a3b3cbd0e40de9ce8542f89fed928842dd5e14747cbf3ab796fb626e9f29fcc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.413-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.413-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a74b5bba0a127856ebcfdc6d4bd29c736291992db9bb1c9aecb14052ab565965
MD5 c194fbaad3c11869c67ae942d471e4f2
BLAKE2b-256 bcd2435ea55cce4341e57c7818cc131d6149ddfec87a74798afeb645374c3d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49978948a7c48ea968b0ae8fe3a4e8caf316b1ec6d62db70ad0413309f3d07a5
MD5 633a3ede33d72217e8fe7cf90c4ca472
BLAKE2b-256 0a6cb1895f2399d76a38190d6caa07d1de873ef2326a3032621e826157cbdf6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b68500b07c14b49940d2d28641be013c59e64a73af2e627f5215927779684bb1
MD5 e4ca836c25594541379770dce5a7d965
BLAKE2b-256 4b4b261cd2921d58180c6428f9dc390f126d14885367587b7fdee2cf7a1b7b8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.413-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.413-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e9630599f838f58e8c5e5b38a7d5b0782c6757b1f8aff238874edf55e45725a7
MD5 91bb932e3f02ff2097d54ed8b74cabaa
BLAKE2b-256 00e0f19106e9cd23197e906897c4150338d8d1f14e7a433b9cd4e56075f4358b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.413-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.413-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c8b06efe0d6144b3fd8a463e167f60ec72b588601c09ef8400992aa37182634
MD5 ecfcbdf8c0b3f6c812350daf055e3294
BLAKE2b-256 dc84a4044e7ae9302cf14c904197004bc5a2bc3a25eec1e8f1c44e60d97f18bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.413-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b1eb0930da776e8f998a3cd998be66c949e3c1035e2abf9943b369e8d4dfd77
MD5 1263e372e25b4e1a8257a381bb932a27
BLAKE2b-256 d2e94f1d5b49ddd62026e445571aefe4c1373daf364a37545f6751bd13b2550f

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