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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.16-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.16-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.16-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.16-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.16-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.16-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.16-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.16-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.16-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.16-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.16-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.16-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.16-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.16-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.16-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.16-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.16-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.16-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.16-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.16-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.16-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ea733e08389eaf9c9c3bf6a698f06b54be53dfef502849efd182e091fa366ec7
MD5 3e40c819c1d4c4f079d6cbcc54a1a413
BLAKE2b-256 eace4e001985958e615c29e510f73f3e6f4a1b7cda3aa83132607bc78cb22091

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.16-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3eb4c9bb41df1437dd1b09edde4b69b6c18344074d69efdbce1b2e847e0a9829
MD5 ecf8ab8fb0cbf8365eb7f2de4689ddc3
BLAKE2b-256 e28bbd53542e4b37325770f4b80fa5482da0009e04ef1b416225978699a1b91a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.16-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.2.16-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4acd73c0b0dbcf1d9f6b73c2c8a1ead98129f37c8d06fd55846f69b2baa0601f
MD5 3adb0bba1f6d7fef44c65ed3b572cca5
BLAKE2b-256 c8ab8e5e671a162ab86e144a0f8ad2f0cf6203d3e4a1e04be26cca8db3aae0ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efd3446e2cc0032a389da8196f16ce7a6fdd6f18247b7e328e45c9b975e2272e
MD5 1faff493a87dad8b790128afe63e8b82
BLAKE2b-256 94d6d9ea9ce6e5f72fe9d872e9812c53778c244576e087f8f7b1c243e4ad0109

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85349a5dfe2d9ff018375a1c4ceec454fd5f04543bb530e7a0e1c9c72844d321
MD5 16d27bb3ab17d48fe176c2ec2356b3cb
BLAKE2b-256 4fc2c0c5faecdb53ee78f9d898b624060ee39f9f4e3dbac59d9940cc1cd9ec4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.16-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a67e7b2dbb2381ad2b9f867a34a7084eac3211fdd1428db7d7d3f00fa93afb79
MD5 b9f0735d4ef2c281bc041834569a5ceb
BLAKE2b-256 cf3d19e9c68fcb9d569d8e4ba645afe14a2194d7e313fe1addd6143bbacf721c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.16-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.2.16-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b2f4aedeb39e608fe35383e77e6424b5113994a4432ab728b51c3c52385c3b5
MD5 f481a00942c2ec78379770341ebdbd23
BLAKE2b-256 deed66e4f66a94befec248251cf477708c7926725d4096a5cf4e98f356070ae5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfb39ab6d95a387c1a9b43db8a0115229c3eb48037f50c2802fb2b5f5ba7e0b2
MD5 c2fe0bc344b4abf493fd36566616bf93
BLAKE2b-256 265f3c6224963095a030f1ecca03d3b717acdc7305ca24a4b5cb5179f3555022

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fb9fcd8392c59b5ced0abc5c324c04aea909668e3dc5c0a0008592a92e2c03a6
MD5 52728e005f7fe11858d59f51215a0415
BLAKE2b-256 0d3a4f67106e6cdefaf71e76c12733277ebdd6bddad35ad5fd2593fdfe0817d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.16-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 19698eaed2ee7486d37cf78ecec6873a133ccf85224ecae4ab3f47609362dcd8
MD5 ab538df0b84dc6af158d9bafbbef833c
BLAKE2b-256 678b9be02e066c9d577db848f749b97ea8d51fe15905aaff53b2e3895c57a2e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.16-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.2.16-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f225c57c0c136601e372994cfcaf7e406c3c8f57331506251f7bbe547ed891c
MD5 ef505fda063dcd4eea1f737f053fc631
BLAKE2b-256 80d38ea65b035270e364522c65f6dc75e73d8e3d1fb666e959eba1a7a8dcbfe3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.16-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cc0246b7a968d1e0dddbc760b6075d76168efd038d3d31a0aca865a38fdfce1
MD5 959696b28e853c242426d1632682cf14
BLAKE2b-256 472fcfe8d8139c15c47615d04acf371c18ca6ede9c69a0816e1aa5921dcb266c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b731ff1b1f153d969bdeb6be01e4e047100c855ba63731684375a3d073a025e2
MD5 423014e6e1c4bf4d948cccb2a4bed5de
BLAKE2b-256 f018e3ed75cde0cd6d061659e892e2ef04d905c00865e95c1e4aa7adb2e236ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.16-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5d3ca4e2dfb78c85da1e2e58a210af4630d80cd664046a38bd0b8e122c8ab71b
MD5 d2e75e92ebbebe741f88c238aeb99071
BLAKE2b-256 8a936eaf7e55f1358cc19af45d535abc6e5a2b938add1961cfd341a99f978171

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.16-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.2.16-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da31a6b16c8bbbb58631b2aec65d6046635505d4cc3c17dca3e9d091537c6e51
MD5 93c11c6755a424a2013a3ff9c3a86e0e
BLAKE2b-256 68f539153a05ee61810f3bf3354083b29a9d41cf1d6c43fb499f989e5b2cbbb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.16-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2b4d3ddcae6037957643fe3cea37892d0bd44e9f7be78c375788813d49f92fe
MD5 b9b9a15064d137d2fc77b228861b227c
BLAKE2b-256 b1b8d6b7a4c77ebeefcc06f8a13d2a2a276c3b2f518706cd4abe8319bdd42c40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.16-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8e68603a90a739c5c81d85b1cee1a089cabe0fe3a73838b02a2bdd004f5f2d51
MD5 2814fb9db0090413f572280fa1daaeec
BLAKE2b-256 e4f62e1a6159f458982d36831d3d1001110e614d8db82951b8384da4dbc629c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.16-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.16-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 78df9133a3f1a269bfc3376068f281e75ad3bed9598b7b4e83ce2ab8d4022f34
MD5 6a4a3e89757902a48619cd19699bfb6d
BLAKE2b-256 6a234d48d3bf1930fea21c456c6160893504ecbfbfa6788fe003702b167d3386

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.16-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.2.16-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a93236eab85fcd843b406db6b8b95c0bd4bc0ab971e3f5f2e71541216a80874
MD5 590d9a2018694b9d3c1218b75aacdf92
BLAKE2b-256 dfeda35302b02cef0403453d834232ba5ee9e0020d6ffd40651b516daf392fc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.16-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f2091d3ca52360eda75b042c6a69328afe079132a75a5646b38a4804358a4a2
MD5 642e9c567c1ff06697ed4cf516983f4d
BLAKE2b-256 756ff3df9356aab609b59c8c5e1767c808ac328a41eaa691ae6a76442212568d

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