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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.865-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.865-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.865-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2dd52d30389ff53b89d4f32c5b8cfd9a8bdaf9db435fc8c3040a1a14dc2dffff
MD5 a93016364ac365c0b244c53fa62dabb6
BLAKE2b-256 03bbebede091de6359c5295dc8003762c39aeea754f6d6bc755e355f097d458b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6b1d976935f59d86926558b351a48f82db602383bc32cf07e7754d1dabc43319
MD5 307dc8528c102bb06693ad4eb25a49b4
BLAKE2b-256 1eb624173916afdb94efaa0632153f25ce72c75a4f316e9594c05f9253ad5c2f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.865-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.865-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d76a95e7984be9f6ef4270da1505a1d699c0e77b60471c8aca2ee83b5b5b4442
MD5 7df48ffa48117769ffca40ea359d8c31
BLAKE2b-256 31c316b3210b5aa65587364bcd285f2236fe5469f99a4c94c7b2055a44a1f9fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cdc3efb5e693612c27fe8fe31b881c4401f81814b6a13a2ebdbf2f6ce0adccc
MD5 2b8b53381405fc48f0de169d78d2c71c
BLAKE2b-256 6bdcd02258313e9469318af017a48df50e628eaf316af98111f0f8264d633fc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1a1b62a79b5101c45123a2eef63dad3d8072e25bb7acb3bc5d2f2e743cf0d247
MD5 7d7b3dd3bd65ea05f367463f454f232e
BLAKE2b-256 c695dff63dcec3a04ecdd373ada93d14ef3b576464b85e0fad7dcef5157b994c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1a9160a13efc82537069aa2b98f7ac6b8c67e085439f6bdca439af9d40c94586
MD5 fd985f69e8436530f5d58d2d0ee38ff2
BLAKE2b-256 770c30432e78db3338802f47427f87737f7130ba5d1b8828017db7407185cc2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.865-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.865-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0316d524ed1c7b19c868c4a27f58be0067e6ab7a31b14e61608b218d51f3cfae
MD5 8aefbeafd2106a1110e0ee0256f5fb54
BLAKE2b-256 838e85cd642e0f24fe504c1c4639a0f6bf440177e541bb624ff7856f46cc0a36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef8b30fd860877f2430b33a9e49f2bd0ecab1b287fa9f0b443fc1a3150bd9cdd
MD5 ec15bc6e6841d7374f15c71badcfc02e
BLAKE2b-256 bc5479df8b0f4cb56eee8c28aafb0aa727d7bca4ad28fb20b5e0d811ec565149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 04e0d79d2bf7c7dbded0f8490bd116478f5a36e65cdcf56d798eafd6adead8f9
MD5 9a8ff404285af4ae8a707bf6fd927acf
BLAKE2b-256 d85ae9cb5c1f3b20a0279c717186741ec1d159643f6e6978aeb6dd2e9e1c820d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6ceba39867b000b8468fad72bec7c8ab7d260ef0744ea2c39a3d6f9a8a9e112b
MD5 478594f46d936754ff86ee5b0973e983
BLAKE2b-256 0a37dfdb7ebb3f4f6479197c0a59a07abe9766e3104931721f342d87b4ba24b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.865-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.865-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61216306d6cc2485c25ac6f137f1e07415d2d4367895dc27d855736318c9161e
MD5 ab1e9a4a1fcba0e53cbf038049320fdd
BLAKE2b-256 254d14d535135ae249f6c012923c649ebff7cca427b47a70bbfe28fa35e44f3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6597aad05814a5829efe2fde18573a7fdecde5b35d98889857b9f8a3364a3278
MD5 b23844f64f31a39e0d938eafadb43022
BLAKE2b-256 2884b68cad869fe7e859f1e4ff5fff7b4f8f64441c8fd70fb2690c18dce53f27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 567f8993e3d644dfc748b7327b944574dba8bac1543e33f8a06de3ae73d005dc
MD5 bbd87b48953601e865ad48c3cc21edb1
BLAKE2b-256 482029ec35c3dd4a6c20963d1a7e533bcdf97026b757d49d8cfe993bd500b38d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 926d51b1725822a1ceacbbe35959831cda67c00c16e3c2174d6cbb15485b3cb1
MD5 ad6a688f3e85018ec8a9d7a43f665c8e
BLAKE2b-256 bc91f1f98bbc3dad406f55f7dfa98a1b450b6390dde10573062ca095c5080fa9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.865-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.865-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a147f33baccdf1c8b90203a628177fa47c54e11cc2620394bd77dd69925a8faf
MD5 4acc48abeed6c611dbd8d92140488411
BLAKE2b-256 1b550770461bb32b06241069526a9b7e71a81334d649ecc2c0b29e1c884b47ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 595150ce9ba9e7e117b283b184e7bc60fcfbb618aba4cf748c45226c51f1f3d5
MD5 506a3ea920f69bd462aa518f3a1d81d5
BLAKE2b-256 36361840076f38bfbf37f4077b7d15c74ecf67e522832dcdf8429d2b8e9cf101

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 944adb0f8048da92ffbbc49460efc80bc9894041fde940181c1beb87f7e19a94
MD5 b4e57e1c3658a51180dc1f8ee7be2795
BLAKE2b-256 7c84a8000d5a67216b175eb0671ea4e5e0b5ed903b64ed7d10a10ae3434072af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.865-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.865-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a9ddeea3da470dcb26d12bf55cf1f75d0b0b25168dc81919f70e87b38f2085f5
MD5 773c881810001109e675b0f4c661fc19
BLAKE2b-256 a6096a406ea1c1e493c362985acef372da94deefb41b1acceb0527695e3c1606

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.865-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.865-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69be5b7428ffe97736a941c33d0265f8abb1949fc6582057a7c29a54cb580d80
MD5 5e374135ae7cd72088436b038439b177
BLAKE2b-256 263f5c9df451931641bf6427ed6b4610fb0dbabcd0644c3175d7f2dde83e13f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.865-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd2d26e5e4080e9f638a8cdc53f36ed493d328b69c9f656fdd6a8ac9dd7b2ab7
MD5 c567b7d1920acb57c5c8f62a623d966f
BLAKE2b-256 4b10c9beb1e38a5b46ba79c1a0b39b5dae01a56a143e7a0c0f60f3996c8235ef

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