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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.625-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.625-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.625-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cc825331dc9e168e1d66a1359b9d130328cfec03921f32c184477c64f9cc8c8d
MD5 609c11b2a1cd1277075d7d502d5995ea
BLAKE2b-256 b0d02798530962ca6275670591e914dff6b68f7447aa33129433b4a35540f5ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4116138ffe7de4f55398d7cc80c6833444f33519663322a3d8956b43a711b6d3
MD5 b08bf42de28b81a16234e3a7f5499a2b
BLAKE2b-256 037fee115816162e75021a704f18754da25fdb3617367e7f5f390559f44fab1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.625-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.625-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 832aeed2d798419bc49aa174c22998fd358e6cb9269bc8d8df2d0b773c9d62a2
MD5 6143776e314e5559e0d1db04ca02232a
BLAKE2b-256 ee85cf9bb4c2d4df601fdb62e5492671772e81e4784f27745ae10b4270a42f96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 366b62408f16979d7dcd5192fd406288e522a35b7d8dd952e520257d8a26935a
MD5 3d264ba12df8d9e0a56c6a2585b9aaa8
BLAKE2b-256 8cd934c14f3208017a930f0996311e0a434d385be61fd649b6c776eb53d424af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 683db0eceb653cd4609bf612f071a843ec8fc1ab0186f2897bf9ba0c1351ed17
MD5 7e4c24efd255051e07d2abea0cb4d650
BLAKE2b-256 6d9bdd23e232cf18220e496dd52fde357640f3a80fa5062cc44f960ff73c2e77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 25de9a70925b193fee934df13c863a3243c67af3ad093e2bf8220e0eb3e2ec4a
MD5 d9e173c70ca8fc8b8043b4abae5f4b8c
BLAKE2b-256 1cf38a71dc4d7fa4770ff298a54fd946b42c0d467851af8ae6abf272445dd76b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.625-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.625-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df17c4596ef306449c3a0f4a6403824a9b07ecb39c16ebaefd5e88b8622fc9f4
MD5 bddaad8e3362ecf3d89ab2411c502628
BLAKE2b-256 ab9352c2c5c7371d8d994140b45c58c44cdf19ef79894abfb241200cdc227b4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64769a383772e29a63097f96c8c67c915aa21dcc0687aedb1c0c819257e81920
MD5 0bfa36dbf31628e574a48afab6f489b8
BLAKE2b-256 21c3ac00c76e52f8f606c6c6eddb4c3eff277e0f50df8f14c7aa3289961384d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9aef1bbb97e79ca95b954915cb3cbf62f7265206f3bcd910bb8666444f5f64dd
MD5 6aed8b308fdd6cb23b1f503728324c5a
BLAKE2b-256 b092fb1145b55b46cbbfe1c3b17027e3a90a27a658f7b871a0d01751be9648c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0254085d0b80546c9d60b639ed0ee7e706b764755fc71a2175ceb7890621b937
MD5 7dfb71f6317c2b07bb7fa2784f42ba8e
BLAKE2b-256 031424bf8fd569e9ab0287a34432261cefb898abd40d3a62c9a336789fbf08be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.625-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.625-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07d1ac728d29ef1252e47395c16d1a6326fe3758131709830d0b9cf12177b16a
MD5 a94014ef4237826de55d62bc636d7e86
BLAKE2b-256 64bdadb234c8b1a5af30bc913b60f8bf2e07d079a4d08e887c0efdff1bac5480

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a33bbfde9299b179ae9c26a7610271138bb5b4ed08390964f4aa02521594d13
MD5 8207693c14efd2dbd41b815d3f922614
BLAKE2b-256 409bc27f737e811fc93b5e91b6c36d1106e90e340c4f5c486e9db1e30e4cb5d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 39e104a31442d2d56d99cfe032a99e6bbd2bef7dc4e7ac861a6a6e5bb854289f
MD5 d137954690ab32ee30ed243c4b337f24
BLAKE2b-256 512cb189baf5c874e913b032432cdf399f5218405e78198bbcde5806a2edb42b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 67379815bcfc826ff88a5c3c053318cda51b5c64bc292f253e2806ce0a654f8b
MD5 65528ed0b2eec014c2806de2688e6028
BLAKE2b-256 4353f9bf976497188f68ebeda5ff6cc509ba82de2671f7e3cf1759269904b9a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.625-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.625-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d051aed6dbde88293d2b1a23a0bdb144ae7ac28c75b6ef7aea03073a52b2d1e2
MD5 f28b43ce0033bfcb6566b352ab269fd6
BLAKE2b-256 f38c0e8fe75c93fc263a11380127408707b20072caa874ad64c2b2d110c16416

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6542ae873999b2764d70891af0ce071b7396aebe7834b6ec2ba933869b9296d7
MD5 dabdfd7d9f1072a4ccaa5b940429e151
BLAKE2b-256 d8adc0eb9ceef649d226acd862e9cdfe75381a5e37338c8b61edfc9892c399f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b55c7ce68a1f8d763f33e60cd3b3ab3160bd823509133dbf2358271e5c0666cf
MD5 32c91870476e40a8982fd6c2e99ac39b
BLAKE2b-256 a8d497175f29d60e52711ca5d44cd96f36bf07c6aaab398df84519b3f58389b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.625-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.625-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 21edb092638fcd51632f38953d37d07011fdb66d6071c2d48b15ac00abc0a5ef
MD5 3940a0313b41866369bdc82c7ca2b8f9
BLAKE2b-256 d9696b6972d13b45059ae5fbdfa47ef4b9e641b16206f83d290b08e6d06edf14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.625-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.625-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97479f9b80d9e3964b5c9e5e6ce3ada0ecf207edea47ba99b1013d1234e7ed87
MD5 d7cf70fff194d61d00d6d74e322a81ba
BLAKE2b-256 b732938d5f21a86beda26f035520cda2c365d4e26c2baa5a7fa0244068d0bb9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.625-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aab6dc9b6c894b914fae8c2aa3893c3d2661ac580b4329f7e2d4d7882a272fd8
MD5 4370ed6d63e9cb25d483d155b5111901
BLAKE2b-256 ca530be4070d6906121bce5f747582b9937c08e6ebd17d2c0cff69f2111d66fb

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