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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.691-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.691-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.691-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e29f753d2bb234664646f65dec465f68e4b26f43f46ba266ec8534dd0f46dd62
MD5 8ef513f34f777a6f8e6e8258b4373669
BLAKE2b-256 e9ba7d0af263adceab300f32515c948c218d329934379e1e2f632510c94ae56b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 de0acc7cb56136a357f38c9469c4aca5f415760cc7abae5561925c838209ec04
MD5 17f6d237e9deb92438a3bc0f4cef4959
BLAKE2b-256 704ceb0a3f508236d0460484129c2d355a31ef423d3d28345b4ec7a46d2b1805

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.691-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.691-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e922bd68f4a16dc7a732ae62edb294a0f15ca1bc536701c5cccc2e637abfcc4
MD5 374fed892d0767b265fc7817a510ed74
BLAKE2b-256 b7f555e61a0c0215efe2f589182ff376e6b85ac505e5f69b0a60c771832e248e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa70246a2d76dfe565ff7cf93242e6ce7ac33c6551a2e43bbfbae57eea825eed
MD5 de7d25085bb7f2b6847f2a73c0394719
BLAKE2b-256 eff301b2932952014e7afc8a545fbb8805c08ea43a689579e6d3912d05a0e333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1b8d4e769b2e3cb7fdfb468434b8f10d0615875527591803bc175787337f9f6b
MD5 2fbc3d9381a5ba37d3d372535a0228ab
BLAKE2b-256 53f6813db28999fe2f3a7fd093d65056687e170ccadedd15a2316bb8d3fe63fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4e26574982b9a2f29dc0c89608a44b2c1b059e84dad7fe578eaef3e5c8a371bc
MD5 bbb1c4dd2bcbcd85cab3687862a09e83
BLAKE2b-256 9e2a832d7508e1a130a9645cd4967ff309a2d328cf19fd4e28eba0e19dcaa25e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.691-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.691-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79326b9e3d4206712717bf2c9a2b4deac74faa6cad55750f572791414ae11711
MD5 17a319ee8152282d344c14aa5ab04fed
BLAKE2b-256 d19b09b9156c06c06a1219a68340e947d25a7bb3b983cdfadb5988b1761f4594

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1756f38915dc3e18e5c35ad7d498888067223934798814d16c133e94c5482cd0
MD5 7faaa41e8d3b052f89049f3cd5abf63c
BLAKE2b-256 18532ddb0456b0c3ae9a5cec3030b73036df3468d427a9335c4fd4db98f9f46e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d46011270ccfd2cc6cb7f29cece70791f0e251e2b3c985843f0c42ccf01165b
MD5 8da4e1d3e7f8f0408be460315de94293
BLAKE2b-256 f922540aa0b1935e4d8251d1b83eb653775e842b33c2f00353699cd59493e625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a72cf3481061a31dd61d1fcf6a55ed7bfd0fd4ff0ebcd1e77e7d3daa836bf540
MD5 df5ce8f8bf93a53221ca0a2eb35040b4
BLAKE2b-256 e1d256c9014746f3caea8cedc0c872b65114f0db8700fa26c1b95d8cb24f52e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.691-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.691-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d2d385a3c5127939c6e2cad498069f87ab1ac25777d8f024ca940a10ea181ba2
MD5 5ad1f95f89c625d1058841aa810beddc
BLAKE2b-256 5b58e30b64370a2ec66d84d50457124205e656f97f6d92c53d7fcfb08962733e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 462ea742d9325a22907cbf1f91499d8320e5869c59c64cd5030c1360f3b2ec0c
MD5 0e46283bb172405a4cc77fe6a3de12c1
BLAKE2b-256 c5a8c5027f274fe650cf8b043c14c2b1b5c70a8f58b8002d7daf169d640ea930

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8c293e8ec1bfe87e1a3dc16736a31dc1443adc507ea687a10ae19a79b9ea3dff
MD5 75711436b310830ddfca74dbbdb2eb1c
BLAKE2b-256 72ed222807eb307d930191d00e4d8b36ff5cffaf7f82608f9904c3ab3393f0e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bb922d40804312e2dbe06d03f4787a7f36d10f96d569d25d3dab713474744c52
MD5 65d34f451f5d2664dfc9d8ae73f5601b
BLAKE2b-256 e52ca74e8239f1eb06876476f3f9cd00b55ffd825bf64cb9dac5f79135d27a50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.691-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.691-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81f591fbeae6d1f195f9c3c48b8b6bb621712047ce18df8c8c7584a434c41a57
MD5 9a19b465f4c081b19ec9ec5e907df94f
BLAKE2b-256 138d6a28b3bc491c1747e5cf2bc19d7e36253fa82b04a34685fa40798e22f390

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3234e55f02a1f837a57b19ebd41e4a1357cf6b14597c2801f6580a2e2c22ed5
MD5 b4f355724c5636ba7be428d59ec3873f
BLAKE2b-256 b8fa81225cdf4a05c8922051ce03ce9adaf3a85250b871735680de35ecc26685

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0900d8321e3bdfa37cdb7c279eea00119b4510f6c8c4aa5342d7e26d2cfa518f
MD5 7554108c7ee0d37ebfdbf15b92c87ab4
BLAKE2b-256 824fcdc1923b763a8e76fde0627fad5516b2d973e63c1f45ab7c89c3d1cd4ddb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.691-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.691-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cdb216cab09cc22fa1f605fd49bb4a148501a0e109b0f6fe6b1777acfd9923ee
MD5 6432202ba8b27af5ea00f34388c6ba16
BLAKE2b-256 2595988e0ed9e6ed97c21386cd24219f6fe3de9eaef931bf5e5b341f57efa999

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.691-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.691-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e20295dc1309f222ead90edf8d9e61b8d43a77cbf17a49e1e9b8bd42b6700d6
MD5 64c9910ba31b2d6eec87b1538a51dade
BLAKE2b-256 75c8af404e4392db973b117f04ef0a3167d7ec7b32c9c1654f829d604bc2a754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.691-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7783d09051532074213803c12ba102867a58a7b95879e3513fb46c661de2e72b
MD5 27b8b6c10a12bfa36318a8b2e982dcb5
BLAKE2b-256 a21ecf20cbb894831a4fad0fe32c46240aedf5a2229909c11625415c07dd646d

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