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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.446-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.446-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.446-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fdab24c121237921303af4771b7819b3af06930bea714ec7d971d0a2c0dcfe32
MD5 5ada73b951946eb45b788f46b457f8ee
BLAKE2b-256 4a94c4cc4b8c10810969dafd1a3a2a850e6f87b3b5f9a4a60b1e62bea3e7ba08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b6657fded8624c278dc27b7b9144f48c79eac0b8dc1197c473ae8bf050f6f656
MD5 885f9fd55f0b246a0bddaff2a9765b37
BLAKE2b-256 0568780dfff3ef8789db41f0910d4c6aef2e547fe6762622328a5e29bb1feb7e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.446-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.446-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd8fef96398bbd81699f8a1807fdb570ddaeadb0a9ef97f75e952e88da50cf28
MD5 0697c8bbd8fa0e29b09cf1224aafe045
BLAKE2b-256 7253f0b5a2307066461131d0eaedc3af995c950b541db65262d4349b0e0694f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f21cf9653b8eb06940bbdb6140c3b8afe9ef861419d0048350e7f05e88435e10
MD5 c03ed5db7f6f408d1544002463a1037b
BLAKE2b-256 8250d81a77ae954069ebd3a1049506f78455a1226a6b1df16d7be778f4d8979c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f94431a7b8ed0f942e554ab598aa4b80ad443d56e68ac9a69d31d88480cfda4d
MD5 8ff1a926447b919a8bf7394cb07d7c09
BLAKE2b-256 ff45d8edb7b92a16e4a65d3cd7db3c27435e9f90015dd8f60796f05129516b82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 942f5402005dc92eef790725e46f1897117234e8ca85fd80228b7e370cebe213
MD5 86aa47c7707fb634f1ed7c72b6788457
BLAKE2b-256 858989ce82979f506973d1f2c53bf10701db49bb8ef521693194115e7dd647a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.446-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.446-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5a2e985e18f8e58252bf20f9627d1f89a7070465c75138f7e011ec1fb8e098b
MD5 926274e0788b14f5948aa7849209c36f
BLAKE2b-256 2184521c5f47adff283cb10cffe4a408ae458bca387fddd5b749fc3d91a1e3ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6339ca769705588a639b6240d47c0432aea6e87dae2ce1da9238d2af64036b11
MD5 e3bd17a8b7a9693db00d24e40228115c
BLAKE2b-256 ae52b6884b4c05929c714d58e8cefd227bd30bd50f38f326c4b7a21dd020adf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 14a29d4a6035c2db6685545b6fbf5edc7e7df195fb4158138d3c51cda0eed934
MD5 6cbef803c2002e2d71a7b5ab532ddc2c
BLAKE2b-256 a93cc439a30b5da5708802ebb6a64aa10de8e8d6930aa23e74394b8b7af3a9d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 83fed5ab6c42f3389f611fecba19670dffbf74a1af544ad6b98c6c84d2884120
MD5 fb7dca9d6f2c3863d30172e01d4b08a7
BLAKE2b-256 be3ac9dea8abab733de811a2f7c02d8b408203c08499faebd03b0131f04467f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.446-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.446-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ebd87fc35e91eed9257b00aee33694f21f1b004186275f729ced31a4248e5f6
MD5 2368a390cd877a924384cd22274e2eae
BLAKE2b-256 5ad955d5c4d5b39c36f7c3444a7bcfde067bb4da2ede7722efccb6fbf6135f25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d38ab75599d12108eaf4040076a163e9594b68dcfd8e5c72b967d6d9129b3eb
MD5 22eeb856dedffcd5fa0b90deb2cbcc00
BLAKE2b-256 366fbbd4703f974bc628d9fdbe5ba6d065b2df818d04c777b6b0e88b49df6980

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ed76ca546ff241268d0055d73cd1ccedb66fbb01d24e8c762db9f369a293c62f
MD5 0f24f07c8e533928b554ea041400ce79
BLAKE2b-256 a51c07b659c8817a2b16f6399a62b789f1fc4ef4a567b37742a3f51b8a7bea2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aa644d54efda0d1e8dac91140f5c34044c58c5ffa76ce4ce7bfbee8cf9cd0174
MD5 c1cd0b1db1f7797b8795470e071f4530
BLAKE2b-256 ecda766b69ad04348c010cbc55b77f9c9136afb7bb14b9bc9636df770ba52144

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.446-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.446-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02543bcb0e59583f97f9a483e15a7b9539b8b2cc1a137151130453bb3aecc05a
MD5 68c5014bf1687eec5317a9cfe3208381
BLAKE2b-256 0a31ce9d866a08f7abd6f55dd56fffbd03f085ad61a0b6d14a7c8042a333fd18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55b92f80471d0b77e105741d488b9da92c9bde6721a1f2f177537a54f94e4cf9
MD5 f400a390dc3ed92ca525af0eea211561
BLAKE2b-256 d3a442a2db90af4d3d47194283863b8c2e3427695b64aa21b0ac53104658c0f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 39962fb2b8737595fae0f7771aa9cf491de9c622aff5e0f29b5d22f061786b69
MD5 bb203ae3617b87ee000d47c6e529ff08
BLAKE2b-256 77b92d3598e30ec0240a5c39fa1a50ca3efc41be0c69f4b3c053de140bdc25f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.446-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.446-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bd0f8324630164be32c47f772d3a96f336200c1dc525819e020f7e7338ebce65
MD5 690d498934d18428bfa0bd7dad084cdb
BLAKE2b-256 59d0efa3807d05f238e9975f0ae2fa2da81adb6648d6995bc4c325b33361dcba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.446-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.446-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d942aaeb155fbce772d10483b6eb413738c9693004c5b45a37481c3b0e6270e
MD5 302f5d0269d58ee897345bcd58685df4
BLAKE2b-256 e2025b47b4a7e5138f39073cca8aff573b3adc3f6e0e001be2db9214d687b63e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.446-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acb17a2e47ea2378cf516fa6ab1d16ef3b56723304e76e6025bc3d5d8c0fda18
MD5 40520aa0ae227162e5ee45140c966f79
BLAKE2b-256 55459eadb4ff2f2af7fc3b270846d43af432c8b8f93e2cb9e11ce92e7c93b474

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