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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.781-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.781-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.781-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.781-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8a46a7c27e7caaa6d8673051bcc9986d8f2a77dadee5d138c5afbb3feade5cf4
MD5 1254107b08a59545a9c68ecff7c83fb8
BLAKE2b-256 a0323749095b5e1befc302c7a1525ded92575024be3c6d8e5f3b389c79e7e6db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-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.781-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 11173b48a5837e4826c4d70b6d16167ac01c6c73022c51114202b281c2e7b38b
MD5 ed7a0db62fb9ae75ee552312059da409
BLAKE2b-256 0f5443134c560af2db4663fb54de9b97c2d1143faf324396283119895cb36f95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.781-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.781-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba18de11cda7aa825793bf5d0fe06f8fbc1c83688b52bfd0a71f74f9191b8b4b
MD5 d82538a5b836628a080cde7c8c87fa92
BLAKE2b-256 5ac2cd1eb9a06edea76fe611888ed7910cadb370cdbf4eba66ab45edd2ca5f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a726f113be56c0aa7a30d2400eec6a9f5214a258bfb9af2e97f6714273c02f5b
MD5 b575c16526b985c6ea82f9238a8905d6
BLAKE2b-256 7358839dc243dcd49ff6f15178100a8d7c6fb9d6db20f91bc761831bad111ec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9ed27b32e6720acc1b0ceddcd0faac46e49e0ef573e5082df67b87d5d423eb7b
MD5 60b2015ff4a604e8be709f538d8f12dc
BLAKE2b-256 39dfe9e1b96e83cd39a3a54e40721ae7f376eadd79f86d3f5c28c7bf266ed095

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-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.781-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7734587ab562b8152fa82ce81ec7e18f631a9e851368e42686e39f0fc90679f1
MD5 234b5f8aa6be0fbd13933aa1b0eb601f
BLAKE2b-256 e12d19d756cdf657e5538692b331136a59841cc345f1610ae973fe39cc3fbc78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.781-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.781-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a19ebe3cfdd844d494e7baa8c716366dbe9c78dd0c2238665938b8b2f3e4ff5
MD5 f168d687b83b85aa46929e9210d2616a
BLAKE2b-256 6e7dfdaf99a746c98665c22322103c5314785d4d71d569100fc851fe4eb2cef5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3efcf9ecf064deaa786ba20ccedd6946799d331fc0f8c99e9b53c58aaa05b82c
MD5 3fd1aaa1bae6a17fcdcdb4e110d9c3ac
BLAKE2b-256 9585dfe3cd9ca7222f9d4766fa18ccbaa5cdcf2f6d2f42db6f9f5725078b1790

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 494908545c406856ff923eb0ff0f38345eed7ee46941ccc944fbb2111961978d
MD5 948a990bc32eaec3025a08c652b9a758
BLAKE2b-256 bc1fea31312a33ecdbb21fbb7960c5297517aecce8602e94c4cda6d285bf1759

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-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.781-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 41146009307163c6679923419fff4b8b98211f32aeda12258afafb67d4a55e71
MD5 7eb954925500da314f77c1a240fd70e6
BLAKE2b-256 59ac2bb9f494813f77498ac00093de7bb5af9da8823e72a5d91aa2591e69e4c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.781-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.781-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd18f17ce363ad8c6b725a570ad97f6d700094d5d22a5620c77c48ddeeca278d
MD5 9c90b4b892dc0afbc2cdba26cf444355
BLAKE2b-256 40c745da4f13dc3eba91183f578ec18e1e50f41e0682bac466739f14bcc2753b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bb5efb55807d29ba4870da8f5e387bda37e9d7f2912fb6372e6a72e6e6166cc
MD5 61638aae1e7ec443aa41047f78dd751f
BLAKE2b-256 292e5b50ad502507386d9167ddfdaf36b1e0bd613be948e13bcec5683aacd010

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-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.781-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5f4edd93e30b65437495d7c684fde8b5ae51ec1a08f0ee468e6a5f75b6a61df4
MD5 9cc7b2e22b6778de5cb82c20a05cfb1d
BLAKE2b-256 164d7d1027a344e3a1c0d483bb2af729aabbe968370eefa4bd74e1ba855cc1b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.781-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 92d27a78274d9ddae18a4f4dc8a2fa6674bce7461c261e964e3f8509d184d49b
MD5 d7c00043909133c848a9f3654d073a21
BLAKE2b-256 280147377d5010d7ea0f1d484d40ab45627fbb84d0df915da6c8f5e2bf6897f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.781-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.781-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6b8d822f15e223ee2ddb16f567f61c0efc690860f664b455136f704eab5a335
MD5 28a027883f40167cdf2dece95cbd31de
BLAKE2b-256 23dd44a917e37f7af6936662f1ae5aaddc2dce1a3886b105f0d8d37d4f10c2ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58e515254b9f5ea28ce8ae4358a554cef0fa64158060498d231947329a8023ac
MD5 eed3f782fc997afa3f8e701d10647a55
BLAKE2b-256 b13bc7759af8d5c72c102e301245301fab41e186951f1c7cd9acd5df96990bc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-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.781-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3b45f4ed287fe24ce0ab12742c7fd13fa9f8c8e5f214faa7636a0c1b1dd664c
MD5 0664ab4f13580e239f574eeb276e68c4
BLAKE2b-256 6b0d788b48421511fafb54afb6640c03e7b26594a681fcdbe1411e85b577c071

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.781-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.781-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 81a2009852a6a7dbb7b2fdbd76b7558f6761b29fbf1b00e436d4e8bb07f40d96
MD5 de70d5172ac234a5ceb19d24a4cea057
BLAKE2b-256 d14a8e38064d5ff3946aeec4e69e77a77ca6303d5afbdac3f4d788ff4fb9fa83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.781-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.781-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4e492d37c605f3a92fe77b03183730b5b16f47296f2a001fc4de6f2eae35235
MD5 b3d9a0dccb0f94bf1a352e534115d0b3
BLAKE2b-256 4d481014982c2214be895d780892e6c8269c4af3b3acdb8c4bd72dbe015ff219

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.781-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7855fe56fa18cdec3bfc138a605412eaa4d8881e2229afc3452210b3e53b8871
MD5 2e0a91a5b2dd35068b9913acbf032a73
BLAKE2b-256 5826ff4cdaad013f0a290518c72c05166e22b85513655f4a44487d241ff03e73

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