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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.248-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.248-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.248-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d80a7f919a96dd0e1311d01ad755302a8b6340ed742d9ce9344c09ba9b3cbdd7
MD5 69287827eb8b653b5468a8bf57db3795
BLAKE2b-256 92f6feeb5d93978c5683626ae28ddb59b7bf51128681483b8e87ae2fe2b21887

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ebea70e025821db89776fa8735540ec47ce7d92deaeb6dfe4c41d2d6ac17f180
MD5 534c44daaf759f74673d0a697b581e83
BLAKE2b-256 eb5abea95594b7271c01f3fe66c58eb70223b548af7ed5a0f68177b6b31caf59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.248-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.248-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb1b0bf13c0424f26807d1f3d94c6a2fa2ad423f33ab0f386ebcd6aacfef7771
MD5 b9198f5462e1940664e8c8bfe227c5fc
BLAKE2b-256 00a9898c2d40f9d5e2dfdc35e77ef7bae1a62daa230e796016a94202419b28dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a4dae0ac5d06c92c04e388d8aa5b0b682e0cd36a2d27182f5087cbc39fad795
MD5 cd9e6e3e961fee97e6d7fb90625b1b0c
BLAKE2b-256 67c0200947eb9457e9acee174f0cc3de6fdef549a9759345ac4daf07c4e95960

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f24480876fc632d060f98a7ce3110ce9c964ac763cb3f6a2d22176edc9a3d07e
MD5 c33389617a3486a9c108c8f428c148fe
BLAKE2b-256 846413f2585287dffdd5c7f63b894176281b7802348ac6210ffefdb9fd53241f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3fadb6bdeb833645528e1dec584b395b158611fdf4187e289be325f2ecc12f11
MD5 ffe61178a2179ad3d98828c9e13b499b
BLAKE2b-256 96a3da4e346ec5ea6d1640b1d12c03a4e39bbde029efbe5b6f4c8f5aa363ee06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.248-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.248-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 580c73fe6052eb1c7579f412518e99abb46c15e6b67f481dc1a16df74f9d0b0a
MD5 b485d266d7a20d3937c39dc8681db1f8
BLAKE2b-256 d186d6dc7d6ac672f19d2e4a3d6f3dddd2b4464ad09c77e68aa8ce869ceed87b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c5ca48a58cbb0e09063829d3162154921464c7246319f86b45dfc190e0c93fb
MD5 112224a9abe1839e546e05e5be874e26
BLAKE2b-256 bab85bd2462358346effd56ae25d979f23031799ecbe3f38bbf9ec26b0a2d3c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0623427a25322e4998bbe5299e8e79a8720ac5c0f8b047a3a65576ea81b7113e
MD5 830f9527d927a5215afb99b94fccc7b9
BLAKE2b-256 d10530f5fa39e21f53887be2b80efd46b2d231bf9210e1186b91c02ceca874ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7e829b98037d3b3de98d42efdefa4041c54961c907a871fc82acb21a7612ce70
MD5 44878b4725874315f9be961b936e9755
BLAKE2b-256 9e1f56b8feb02c78fbb17666421e286976948f75b722425827cb17d231c4a3fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.248-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.248-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ab875eb28573d63cbee84450b6a791bde016bc4767cfebe93c0726924aef50a
MD5 df63f5c4920bd2e321f7ab519a62341e
BLAKE2b-256 1f0faec1aeb7a462aa3e71f811dd75b050124bc1cd4ad6664344c38d7131c5c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 988e0de87ca0882e9de33e7bad00ae280024fc75fe82ae84912b63fee2c60b42
MD5 b3d662e5b7221ca58b5ce988899df6a8
BLAKE2b-256 868d1718e21640ae8633683b689b3ee07dcc38b40bde2ed28083f722f95975ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7288e0f2f22d542e542f12ec97c8d542d81cb83cc27fdce0616d83caf43554a0
MD5 0427ab3913e8823660e226b7838358a4
BLAKE2b-256 4f1097a3ece118a469938eaf2428c6fcc1bfde183743e12c57bf4264859597af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 55658a52d705c2cd37c7a07b9ab978ec3e48e5695ec31b2e6953073b087128b3
MD5 6c0a3cd000141cf20e8e9b14da7e4bfb
BLAKE2b-256 60d31588095fd7da42ff3adb883f7279aa04ea302540b7c1fad40f56ce91e31a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.248-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.248-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bf2989510b467fc8852b0ecae882dd151b718d67e5343e7fca894f28b437132
MD5 61dd453ca9f6d4520ae20177115d6dae
BLAKE2b-256 d89a369f2420bb9147a70f8f22d15ab19307fe3d298ecd1cdd8f33903d8a6096

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc56a84e124102b3069ee7572ccb421e46960b9296c50356c9c6bb6b58e785c3
MD5 0d4657d2902881ccfd5899f2589301d6
BLAKE2b-256 4c6e31b6206615beea27b75ce3db025c79e957d4d60a8a2e7a4151c04e3d85af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 225e8c90b513de5d700f58771b5419eecd595d276ee35e1ccd808e710f6f0c8f
MD5 d980a175962007fd9661a20f620ec5b3
BLAKE2b-256 45c4dbb0c8e4fc5112210f914c7ad8f55b7b7339f5b7c78e72e587656026b7a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.248-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.248-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a6df4893d7e8406de56ff1b4126915d20495811d1deeacceb0eb0328220008f7
MD5 4bb93d9a546160d279e674dc09c35b84
BLAKE2b-256 2086ed478f6a73b53406c10a8471313382e400675267863f4aa5c601edd5d870

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.248-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.248-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4053c1fe3ba6b2c8197134577f9e89de1313571670727e6f883f0c39be465416
MD5 61c4ebe6fd710f8b9ec6a6f02f0745c2
BLAKE2b-256 03e01e026df690750ac7d8e6a1961fe4b6aa9e743fdd760eaa07ae1b9c74d3e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.248-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bafd80d6ea940f5d98a4343d449f1be259dcebded301562d5df05e1e4f5d8ae
MD5 b57667cb6de3ad06d42a0ac23c6addea
BLAKE2b-256 5c90a52e8c16a55b53550e4e46955191e17af69e483e82d0b9d8391ffa8b422e

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