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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.135-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.135-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.135-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8347162596aed70083ccbf157e48c613e84de3ab04550ac5af562115adba6439
MD5 c54a93db4064ddd2c125485e267e8d4d
BLAKE2b-256 fbb0512b601de02d75d608be08ee68271ebc9f2d89ae42898fec1d0f8b668577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6145c37d36d01b32ab9fdb86a2ce8c89d98fe0b4938985b1c669677d2f85a92f
MD5 c385a948063f9df7a5f8b60e4884f678
BLAKE2b-256 29d6c6c94ba7f176b1d193048075770194baec58d16e54dfe3f024a2cd9b6b57

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.135-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.135-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 821dd96f4f89291d5982f9d0a274f9452b2885bd514a1db7f9626204322c7211
MD5 2425dd8a63141c8b3f19e262e5a67e35
BLAKE2b-256 f7f10f5169e1fe51923e3fca3251d4621329f6b1b719b3984092cbadb654f92a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3438dc09119e239f3b17e13397d8cf3e834da8359d7ae8e5c2f461fe114a7a12
MD5 d144558a3dde761615cb801c2f91435a
BLAKE2b-256 758b778ab46db5770d92029911b553b86448b514d2098a6e7e3e74afd2559b25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 676b6a62ee3cc2ecf237a34941318d4f8091c7eb4d337b6d06feb3dc030b6bd5
MD5 4d7431191f3667590d41e1a1f31a8cb5
BLAKE2b-256 00d2ac842fd5a33d1cc5260c625ac42beff1e8b7bf766ef6f9f6aa3d60b55bc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 de516817534d937cfb52e038f4d0e18540352ff8e6c4866e36a194cd340a9e54
MD5 c7d4b3260b4fc7ac5bb9cc35f02480fd
BLAKE2b-256 ecc647b167b338e5bd9f7011def819c20b9f186e01e9add8efdf154aba3cae05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.135-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.135-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb02d5f05186a0323ec39aa5a58cfeaf32925c5e57834434c0bb097520803e13
MD5 fc0abea4bb45dd9329e7d473621623d0
BLAKE2b-256 e636576e80d4527aa7dbb411f99571d094538dfe32403d6078b839bdfeccb6e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d45ff722de74b9ca94ee2c2023a780e50dc64edd12b95b4deb48c12a5d92c76c
MD5 c3c601f343f884d32ffe534d7890fea8
BLAKE2b-256 23086b58036ad807fafc138eae59d9838452a6364cd0510b004e4d2fe5c045cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eb09e62fde96d52b7179f4524dcbc1fe0cc4f0ac18fa674bdf9c587ab6006ee8
MD5 422c1405fd1778a1659d89e41ab47e1f
BLAKE2b-256 047c8b246b9ac84254e3b3caf69f34ee2c2ae6f8cc8175be19026fc5a592b087

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f1e514701d6305df6ba8804fe86a5ed1eb0413e02defc505923cac6bdbc51a6f
MD5 15986df765e539ef0267a4d527cec824
BLAKE2b-256 44e67a76c00b306db6329428aae51a599e1aaec11d4b47cbc80e5c77794b2d88

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.135-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.135-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f0e5dc5e90290f0d451e5afb95a92a1ce4cd96d02036dda92f3242796c0813f
MD5 df4170a73e2e65c4bad8970f25eb4c39
BLAKE2b-256 4e020846076a4ad210c8ceb3d5bf90270fa7e6b69f7cf815dcba43554a38aad7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c5c2f767e38013fff591adb342fb92801d23470395159741121c6d8a986899b
MD5 d44239dc859dc559f548317412aeaf4b
BLAKE2b-256 9d886d94800b708ca333bfc0c83202a3edc1ad2f006969a0c435ba4014dfcfdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1b675dd480ab3331ae5e06939e5b35f615d2311fc273d2ffd6ea5effe3c75917
MD5 939b9fb9c1dd611efb5d5467e38fc82c
BLAKE2b-256 779b5ef19ec8d7976ee4c948e2bdde723e4ecdd56796960edd46225e167ec982

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f7478b7cb993b3b6a2fdd08a68584c011e8534c6eac4c31d57534d2f9d944410
MD5 a8457ab50594694a797a2d2552fab8d9
BLAKE2b-256 7a221156824e2281d663a652e378c520cd86d2bbd08e7c5ab6e55d09a2cbd730

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.135-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.135-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9507e3fb6da7de67c7142692823707c16e59e65bbaa10a441a48c6f753e21320
MD5 c274309ac036e3e0082c16ee807f524b
BLAKE2b-256 3205a283f690a24eaab62772b18be13e8c7caf55289ec41e99bcfc18bfd0e032

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3aa2af5c3fe26884b1a4e3e877ca32a1180049c025bd5fd62278848a83f92b5
MD5 3fe0d74af4f85cffe2288e9549d05b44
BLAKE2b-256 dd57a1bf848f09100b7b8f11cb25ef6bf498d23f350c7d5210fd12123e6d96a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d13368dcf78880cc132a6d335bf4c5bd7c64364c6272d85fd8bb0037d897022f
MD5 111d4f53c14fd0a43b67630027b76851
BLAKE2b-256 c40c31eb7a0dd5e7fe70bf6d9bb92235fd68d210727f36a3119d875fa02ba236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.135-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.135-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 07d05fc9e29873e8df248fe6a9c7fc8654d7ef82d4d9d1eadef0005e7e6e73bc
MD5 0e050c3a71428a37e442d8dc3465a449
BLAKE2b-256 0e410a1ea0f608a90d3477765fcc9536dc8ace1b4244ed46545ab42c3f01ba7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.135-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.135-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21e812571a6a5494a411b08c257c8947b21f20d4a390a9941ba30d612e66ec4f
MD5 56795527fb17bb4b4d2d800696f14f08
BLAKE2b-256 d7ce5e3516042bc1ded40bf68c67c5c005426c1b6a77402cf70ff7d3a0643e06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.135-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28d1c2249658f85277d3b1a08a401354b2896f6d42d508b9d202b82c3a08c9e7
MD5 175d7fdc3a55e947decc372cb0b50ecc
BLAKE2b-256 9d7e2e3b2497e30c67183cce623a47dad17093a02b8a03d301d84cc1ef5c0b71

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