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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.688-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.688-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.688-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e7b9160a86f930ff86946edf756bf875939f9498afc4d78a6e66ebcb50c4acf1
MD5 5481ee8930a1077c2255f1976bf2dcfc
BLAKE2b-256 24d39c656dd1d341a99c61d0709a6e8af811f7843d25a7df04ec6f66f2efd267

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 64c1472e3dde762b0cdc11a5a7f661148dfee718c445a60d0a65dd23733e3b3b
MD5 f321cc2f97d22f8260a54374b14c4cbf
BLAKE2b-256 20312c5730d5519fb204976e8f3935ec407248d10e728ea8a73b6ac765df44a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.688-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.688-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3f9345636b4ae204f472e2d0017b399956c1ab2c60b692877997e9f6aa7783a
MD5 685bf97b7fe491080ce594c1d1d84d1f
BLAKE2b-256 b0c732fcb55875088a54a2da09097e453e12641ecec58cd9855c4c769a8ea3af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df01ea814a1859a2cdae664a8a6c792295ddb5b3da9fa393ae5925ab98d2cf55
MD5 d55d410d26e7d85f7b2c0ac62bda1a9b
BLAKE2b-256 3c7f209cd193c1153e9670fc545393211f0727450072ebd81102556049c52840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b3fc2a10a1e5621cb72bf8e20421e0c44eade196c7a38d51f3d374f0b06bd2d
MD5 689824d02f64567bc7c92216aaedfb21
BLAKE2b-256 0f41976a12c80eb3d1a18c3d88c55cf788bcbf5c66cff36d4499511d0adbd53a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d4ff9f6fcb46d9ea9f93578953b3b73f43b37c88a6e703bf8866be646f7b4f56
MD5 ad3fa3f0c87bac9dcac444362fd88d81
BLAKE2b-256 aa1f7652d1f8b413ad5a41e1b2a0c1053e19b1d316cc92d7def7a493a3e7eaa3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.688-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.688-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd975530ee2f12eb11376559f5d21d17df97c24303a7e6761223ebbcf436c324
MD5 8acfa28bc39785ceca5cac5dcd8afd25
BLAKE2b-256 ae6fc36bd440934be46ea856cb532f6044e264f63792ae60e838b8c3dc699ff5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cd0de263b87dc0919f6948643cf484faf30eaffa75fa1c60f71505c3d452d8b
MD5 55fd70840981e3bbb60defa402027bdb
BLAKE2b-256 16a30ef46464cfe0ad79af96d625f432559ff89fda4616e7b3b252b6abc6f438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b9848e7c21ec39b4a4fc4e2956a367f369966a499682af34edaf8a5a744ff4cc
MD5 2a5098edebc1804f2ab76522ff118379
BLAKE2b-256 4979dd0da5b7d7b970c6ecbcd4c22b62133bbbc968b8a93cb7dc98230952f6ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 42e623e3efdbe2565aea5417ddf9dc7ac8b3371beb8a7f553c6dd40767853268
MD5 6100bc1c471cd9967b6ce8fe251de300
BLAKE2b-256 e364469bbb9e4202e1af5adced61c82ba9f44cde77ca688c380c411bac74c0a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.688-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.688-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 291e669a16acad006c29e9ca2f9b8cd9a49ede9f66fb6e0c2f49740db14c4e6e
MD5 91fcaac3cab78ebd365397b7cf069856
BLAKE2b-256 dca866bcc40270b80664fd78416202c4fdad1aad5b221ffdab5ad5fe3331f58c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfdbec30b403cb17f4d768c3ca3c3003f410d209dac20b889fd6d0c443572e68
MD5 dc378b2888cda6e738ea9229bb6b9b8f
BLAKE2b-256 bd5cc9f6405bb7d3db0ea52983e226c7ee6e783ed7fac48460157d84c863241d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aec05b408367d6d663804fa7ee7361e0aba2e837b4184af78598c503a0a6de0a
MD5 a8a48b81df9a683fd7aee0b4869c1f78
BLAKE2b-256 b5de52266741548d5384ae3306aed0709654ced649ff1ce7c35bcbd9856ff31b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 004c14734c65bd3a92eb4c77f327e44a308c87ed1f8514725994ba59dd4bcb84
MD5 98dc5382ce59a2d65120ab2d5aec9362
BLAKE2b-256 dd4b26d113f882e18bdc289261be2d97df9189c6c984974b1eed5c6318014ace

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.688-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.688-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28bb93590dcf3f73e0e65335c6a217d0ecedf14a203b5e0643946b9be4793efe
MD5 963d96dd6323f0c45a193890c1c940ca
BLAKE2b-256 b97af38586b3b527dfeb240f0610585c55054b74450c3cfcaf937bcf69aa5b5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d8f13974a7ce862c5d33356e7cb5096aad5f40c74b5836dd328e47db2d0d2cf
MD5 2d55b2876fe2873a582015eaa0dba701
BLAKE2b-256 949c6c7a9ed5de5526b0f78c9c9c173db4db3a8cc268af0bf73b7de9c0d7fb53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6c956455f1360150dc122eb3f22959e3340392d2fdbe05097ff84aeeafceac63
MD5 3f7160aa1c0bb6db39d0acd341c91e5e
BLAKE2b-256 78a5ff0732d0b919241f7f1ef40bb199b774a480a7b3eec4fcfca76526dfddbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.688-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.688-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 19c7cc1bf3fa66b5b04308a99d676b9eb1e521ed6244b5f7ccac328f1c25e800
MD5 b1ba93fc0ae633dda29a95d9f771a7d6
BLAKE2b-256 46f1f8020b27a279b19a2ac4c2e99df25e8ec98b881b87bd08eecc1b60b79d67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.688-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.688-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c81f979d73030bf7833105c89a769597a9eed564adbb35a688ebf57997f6a5a
MD5 1affad90ef777f9277cc3cae2c6b6577
BLAKE2b-256 ed0802fe9a087dfe3be5f2b7dab77ba3ee9fd892a62210ceaac8a0d10f94b8ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.688-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93c24b69c71c736c083833a4540d9c727b69640d8934093c0c2f968cbc8856bf
MD5 1cf327572f99eef2a9c01c52ea198197
BLAKE2b-256 5e6f12e41d0d083c063e1c10c503e3a9d80bc800f24343a9be82ca196ad84cc3

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