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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.549-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.549-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.549-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.549-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b3c84429bcc7193d203779e9776b00117eea0fdedc53d04d082e77d8f56faafc
MD5 6ab6cff733e2d664960310936b242a73
BLAKE2b-256 d4dd9b4125042b0746167b98940c713d0c19c72f1c9a7ecd7b6770798fa751e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-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.549-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c98c14017ca5452e6f0f0fa83b3e1b63e61e49906bb62f190be5173769128521
MD5 9afeb2e0da8aa9edace97616495866cb
BLAKE2b-256 713fd52e023629b1373b47da87cbee06d43e6ff1e17b3ac1823dc993002ac90f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.549-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.549-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31b1eb044ec7b88c12d45496a7bc8f2d7ea37386ec961b7887ff5ea7fd0dc967
MD5 ad804a81a4f88558b5c6ef5416ee764a
BLAKE2b-256 2c77fdfcb8122f5dd69f5313f782324f76d4aeee10c02dc0496aabb6a505f2c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4df91c34ed7849cbd353c01c4bb1f365d2817192535ad644afffbb579ef854c7
MD5 4d2554c6596d68e1ecb6037a7774d2f4
BLAKE2b-256 94f65dacc3110355052a85b596178725113cc3624c44d74238ef95f46424baf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 79f30ebd536a762f1365f4470a58ce356618ec6d5e7eb9ca3e9c55600ea29b97
MD5 35e00584ae9bc3ae61136801bc5bfeb3
BLAKE2b-256 8ad18f7fe4a851d77eeb9a97654f93488cdbd901f7debc94e4ea28b147f1dbf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-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.549-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2ff3b319006b9bd81c65c78b1696ac1174529d182ddca464535cc6b34fa3317d
MD5 6bc38f904b8bf20ac36086ce12e2ec66
BLAKE2b-256 9ee34f0c11bdad57243dca52b2452044a740d4ebc606a949d864868a971b4cbc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.549-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.549-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d512d6f9c9b06131cbc64f94c9dbc70202dc08922ef01b35b60b5295634628c
MD5 fcb531907d175406ef96cf00c833ef69
BLAKE2b-256 bee2929b0469dce67697efb8bc2ec1a526b99cf6cd62c9333c914f95ea30a0cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d7295564c9c98d1aa99c08d37fdcf572251ca5d556178d4ceac88db97e824fc
MD5 d8b241da5a88db6db0919c868e97e984
BLAKE2b-256 d4aeaae8a1924b1df9f348bdb39e45e7c1b164b8d7b1db335785bdcc0c5964ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6a6db6dec55f7b6f26b6c6a94a6f8f5bcf70f116052db32093b0eb3e6583ad9e
MD5 6cce5efb36520ecc574a367d81e78991
BLAKE2b-256 b971c91b4a10b4adf07194d76c51ac39770421de1454bea31526487158e775ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.549-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ce6db8818721d2328794bef3f19a538b1b0ad17fbd4b73e332b268edf19c82e5
MD5 b7e00217a4e0fdbd3f90e5515eb97343
BLAKE2b-256 6a28b474304f72660f3bf308f62f710f99ac807ee033cd195391dedb3c4872fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.549-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.549-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e721326493ff778ffbf46aa97f270fa79d03ddd396f0b102c26c7b6988129fa
MD5 faae1645e5b32b2d0457c15e3e0dc50a
BLAKE2b-256 38b1b2be3d8d26be49eef339627cef5efbe0329c3b2d1b95ad9fed98f63f6df6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b955c33cd2a67162ab5438f9136ae5e8995486ee32aba30eb95e4a43e6059744
MD5 e7d90fe2c79318d779f6ee422b4ff7fa
BLAKE2b-256 dbff15b48b6f56bfcfcf86b5a1d3adca72d64b74a17af9c8ae84715e02fba540

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-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.549-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ee0acda5a5a37a2ded933182645406bed1c4d936df6dddc6db9a041ebeac7046
MD5 1009b18b3a1231abe6f0cfc235e6c091
BLAKE2b-256 b721f74d057c51256442420565167507c359e5e72466b362a5105703b33d9dd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-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.549-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 78ead2e54fae465ba219debe9c58c5c3914a5e2466ddc1c1650dcc0f3034c045
MD5 41956bd3d5d5579cb9898edde1516de2
BLAKE2b-256 2880ecd6d3a56ffeb127963d30c098c1410f8dcf25cf3ad25260f064b02a5c67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.549-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.549-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 251092bb0da175556068875d01211d99b0528013b9365a7a4763e1ac9221b32f
MD5 a4608779fbdec9906c8bf0b3cd42dd84
BLAKE2b-256 b281f0503ad7d05a247a7756b62e6a20ce4404e626f0523c7ba9085e8fd9201b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b99fe06ad0c1c3e969a20560ac6f7b721dbd1320457a11e7b8b8b74a2a795ca7
MD5 8a776a10a39e49dc53e32e32df05192e
BLAKE2b-256 6bc4eb709fd23e781fa487452103aa2a7b487b0a254ac20b99e4e696dcfcc42f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-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.549-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e14fe1059b631de6183f2ca54791b92d07b82c9a4eccc769e0df2087dbe2e37f
MD5 5ddb9fa6f66450cc53325fd1a3fe19b5
BLAKE2b-256 fb2ebc9fc5ce1964e2cb84e53f2977d569ec892891eee07633f2c14dd6438c3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.549-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.549-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9f46a38379cc3fd94d89c56f4b7141b7dd0cb165efb0465096dee99ebabaeb8c
MD5 5d970e6af94335dbd730391bb3e23c30
BLAKE2b-256 6cf97b503d3a321e909ee220efea0a4fe57af2b10e65762148fb64b725e790c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.549-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.549-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f57143994fd20837f6363041dc4d468c2cc4bf46bf1c53f30bd8c2a946fbb91
MD5 b82252e860e1b918631f82424dcdebad
BLAKE2b-256 0c589bd1660eda3f8a1c052cc7c43452234efdaeddcab65592a6eb6ec6cd7e81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.549-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e1078897d26c2e926479e30d051f1d2b833a788e5a2448129935d04aae78a59
MD5 36141bdab4d842d54f47e4085f69ae2f
BLAKE2b-256 09cea6c6f0ea58a37b8cf0f4e4cc08882f54b0187c40f14ea6a5de28c26ee9f3

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