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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.668-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.668-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.668-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 15afff2efa6be28381b00f57f4e6919e42850bb91402a3f1478ce05b22710027
MD5 9f50c53dfdb56f2764fc6864bfad451f
BLAKE2b-256 920d7149f5a0846a72680f880d5ab61aa2e6d4c6134989977b312c8743889480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 278c7b76ee179446c5a635a9aceecc9137d92c525c9f7000741f5a9ad6e31e98
MD5 e89020b33a6ecf2666dd4d0bb87e3b53
BLAKE2b-256 a72a2d3990a17de107fd0eb2649c5bd0498730410477ff9c3176b9afdfa2dd9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.668-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.668-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85c555543e9dd75ca6dd8dea88570b02c584bee687fbb0ebee86d9f552df5cd6
MD5 8201d009d17f69e57a7ada33bcf7db3d
BLAKE2b-256 6bcd04af9fd7c3bc9f82f0a54d7a04e1109884794f7aa90d6059c88a3776dca8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84329b981de937adb8e514a4b7d618ec442eb87743cc199f619987eba8c1fa37
MD5 9371c0aaf6e5d23a6e30a80770db6bd1
BLAKE2b-256 1ab9f4d9730c860a763ac7e870d2b25f777712603ed5596f1845c83d02538f5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 442f59b797938ebc58893a7f1239c55ba02708943880f75e4c7c0e8d147f1843
MD5 f02fc853ca0df345fe0ce6875aa94615
BLAKE2b-256 56b3bfdb22b3af2e18546a0f404e0b8dec19487ff90ed7cd0f25598ec11c08d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eb7dbb6890f72a45688e9be25a432b5a30df26816029a00f1a561c0bbe04cf04
MD5 2522efb394f921b405926937c9203e0c
BLAKE2b-256 9149fd4178f3fcc8c645110545cd0c7843fd30f11b8ff3d453ccd3584b595c22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.668-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.668-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dde01e7973b5602e7a5add1db42a1d56d8283f174611e2091b887bd07222cb2c
MD5 2d7084005458aa4fe2aa29a68ec36c3c
BLAKE2b-256 f1d42ba441462676aa39981e008da11d930dc1b3995c0aabf7ecfbfb3b3e3389

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58c87b61a61002f45f0705c6cd095d32597eb2ef2362b3e74c0a5db333e5e6cd
MD5 b95cc27ef8044cc77a4c02aca01be198
BLAKE2b-256 acd232880c0aeb82dd16c975ae0d3328e5ea5cd434e26ed3e991315116507b01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52c76c19c9857079ae39b092b58bfa0a069386e41aecf3e5f1e371ad5f9aa1aa
MD5 7896626ea04a76aa314e90d176d4e473
BLAKE2b-256 d21de33c9dc8ec61f4b1286aa66ca2e494c7b511acc128fb8cc9eff1653e83dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ed9cb908e8b5c2f5a3880a3b7b4fce2621aa728ede8c19d56d7db26b45740a25
MD5 951f37970b9168a321cee230342e4029
BLAKE2b-256 e4cffae4b5dd80053574619ff1d4cc8e656221609c00554dec6a47e9707b8271

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.668-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.668-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 887ca3c1eca2dca5adc8881610c110ae69ff1630efc4ac333ba5e1cb44cc6203
MD5 dfee32c83e074c2b8ff4ee255ea4d6a7
BLAKE2b-256 5e03809a0b74e5e78df6304a45d3d9c9277cf093d02319e9ada15a685b68deac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f9c14e19656e599682b15c567f7aac073d44014d7acd52930b5ed34b6aa51eb
MD5 bb4b7a1db9ce096c88ad9fae86e3cfdc
BLAKE2b-256 88b60c83cbe801971f63a1a233821a7051dcf60fd2cbef2a185c844a2f1a2a78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7272586aac466db091db0e0660ef5131078ef17874efdc84a75911376f3d3d2c
MD5 29c53d6d2143aafc8ad17b29cd1f094e
BLAKE2b-256 2aa2eabf068df37897e2efd45709e85708334a2ca4795bc58b2ab7d295fa9311

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 386c73e27ac3451b697376de070dbd1e84c5f4a0d8d16abdfaea1078f0b4a4b4
MD5 1a3f94dd3892b58100ab22351331aac6
BLAKE2b-256 a5b0293e1d528b61a3e444045a35ec8166ace256d712d738fd3f56f4da0074d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.668-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.668-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92346243324bcba73fce61e90dbf872d8ba004b18223e6080544b746d5a2f4af
MD5 36bb93b6ffc767bca82113d591f94e7a
BLAKE2b-256 d8b87f6eff8a0f445e43a27c8a7a08574a549d6a497c80a7cfe7334305be301e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7b81d491e90ea97d404c792417e8a8d2ee0e5c10a6cddde40fbb7775da396bc
MD5 32844ff64e816776ab880c8157ced805
BLAKE2b-256 ca3890758730489fbeff2282f9789f66234d5800d03dd0a608496c0f42e10aa2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ad443abe58599e5fe77def2db4b45dbae6cbe122a6f5019b2ba8d85a74df54da
MD5 f093d82a2e87d65eadd9843cea7e60b2
BLAKE2b-256 661516e03ff8877cc8c17f8186d7c4cd6c3778381d0b501539c28af9cb8a651c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.668-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.668-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 79e2ee5d21ab23833d9a362daf37f42f73387645afda70cb92a00522208ceb70
MD5 5c18576bc050b0b5eb2ffdd4ee1622b0
BLAKE2b-256 a1cfc86f9879d54bae1cb818dc45ab7f7e2373547d54b589496b8fec30367cee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.668-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.668-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 107246b339989d8a01e33a771373e6bb879b60b3993c93dca5e5cb852597b9b0
MD5 92dd61a1f9c2649c13a2de6b0cefc539
BLAKE2b-256 1a5622d1010562c29e37ca0ea3b18753a7ba044f1f81a7887af0e6b71d9be42f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.668-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df5c6ee1ef6d4ede96aa1d9bd0f955b2c63097cdfbadbdfc6425e2ee2d8a7331
MD5 b2768795cfcecf312b086a2462ae6297
BLAKE2b-256 9ada5531324c68961b9ec4535dbfa618da833ff9e4b01b79a05e420053567ffb

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