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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.11-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.11-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.11-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.11-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.11-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.11-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.11-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.11-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.11-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.11-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.11-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.11-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.11-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.11-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1d3adf9312910e4c3e556b743afaf0552db46b55d56f53ea15cd080ff9ea345b
MD5 9c2a1f458e6f2127d76aeb72c404fded
BLAKE2b-256 850d73fbac21f1f30555552424a4bd7634d5d08cb71cd3009fa4a768144ec1e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.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.4.11-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5f098c50b8bef8cb8da1c39ed31689e54aed7a05dbd8f56d7367de8328a54e7a
MD5 c428d03d0763bff972f7a2673c2910a1
BLAKE2b-256 69edcac1acd667bcdce06ebe9433fe497b192944d9b5341aad3b560a0c465908

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.11-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.4.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f1fb4c2c8cd1c4a343ce2d41ee5b48682fc8cd841d2dd4692578ea28d362c8f
MD5 61daeef8fbcd1247d4afdb10bb77131e
BLAKE2b-256 5440e0f3c95984d3d1de91dc17cd65bcc52499c5d810b09545f5fa4cc33453dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4342c77c33189eacf3f51d4a6dcd25462e36c1456ab4eff18a059e09f76febce
MD5 b318ca3922e7f27602a8c998cd81edcb
BLAKE2b-256 3d31db0cf880a03867123636a848dc901a9927547e15d98d87c880799e561e20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b61631d438ece721f514b8d185e8c5fe13882b1e4bdabdc620bc8eca6f502600
MD5 ee6e7fa57b2e367d56b9586dc03f4256
BLAKE2b-256 819948eaab20ba2bcf81d07b78e250ab38cd9367dd4e24662f96e8d2bd102d39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.11-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 22de03019a96452d7841e4b955a7d55f50eb6194281d94fca1ee5e97bc143617
MD5 58518f6312a1fff84f5fb0a51948337e
BLAKE2b-256 c11244c9702951c75338e97cd2a3502aeb6cde9aa2e08082120e0660bbedc83b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.11-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.4.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aecf040f4c68357034ee01c985d0f0d92c490b4f8901dbc7d72e73ade1e8c1ef
MD5 b76377a715a7c88a419a831c60a58e4f
BLAKE2b-256 4e4ae15ab81ef5048ea04aa382cf9ca801fbcd5046c1b5ca5cf41eba477907f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b71cf8c155fa45cf851bdfc1b26f551452745109a3c773bb3de100d99afb4dea
MD5 81012e75bc69841d73dfbe009123bd54
BLAKE2b-256 baef2cc7d48ca34f0465d52324356bd2f19aeb0bfe0b9bc12236d5a0b004bef8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 06a88ba2563009cbe04f6a25bbdebc237c348eb1f13825926e3f1f78d4cad443
MD5 9df48c4e2a50f3f6919924f725389bdc
BLAKE2b-256 7c54bf7e4b99031319849d278c9193ecb2119710c0df6b09d78f9efe3878cb41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.11-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 12324076dc9aa3b049d6ea846c3e501e6d41adfb2282866c2d9aad3d47648c2a
MD5 72ffd453827da531ff613ee1334c757b
BLAKE2b-256 f7602cb3b78db887cea624172b7bdbf5e5341084430c9c8b651b663c3bafa199

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.11-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.4.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef33e74fdf96983c41fc01a06fbd133055247c2199be5e687fb33271d5c9cf29
MD5 1ab89efffc015e4bb6f8fa96a8dc9b95
BLAKE2b-256 115598b2d6b309fc6c9c3de1293a5ca2a5c70323e3b3552f9e4a5192256cedcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48832ded563557fff84972b9fd0aff2cf2b4d384985834caf4e52ebea8f54970
MD5 c24cb45399ba145ba3e0cc675deb6942
BLAKE2b-256 e525ba64fc9ede8dc67807edebb430e5475ba8c86cc967a4680d0f1383bfc48b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3db7d6e85ff187338f2b07a52bbf77e1d853267afce85604f82afb0b5a88884f
MD5 bdff421d98d3c34b2ba0666150be7169
BLAKE2b-256 2e9cdef9320aa71ccd6c3965fd718ec21bead95deb1f0d1afd819abca693abb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.11-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f06626166f841962abeb87d0ed3203c134eb0eb38c19d99bc2ad098001be99c6
MD5 a79cada9b12051e0fec39905396f27fc
BLAKE2b-256 44b2b1c0172a5bd53e0d9024f146ba2511ed4cdb6df32f7d95903fcee8cd3cb9

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.11-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.4.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 098eeea1f449a7c2521e55e0d90bdbda31d27944a9f57c9863742f0e7db653e8
MD5 06dcc4937d1d3ebf4560dcdcf4804675
BLAKE2b-256 93849471e8198acd1d77328433a1320488da4a921610ddad500bf7acb0466485

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7cc41439f0d5514ce8ddb02bc1f1c890177171dc891364b56b67f6ba5da73f5
MD5 4528564b333c8d0e7eb8c234dd196648
BLAKE2b-256 db494d586cd1ebabb7894d8915629922a56dca8f445e11b820b221ee0f554c2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.11-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 870f9595b98f7603064b50c49e62ee6760372dd8d13141f9a7134b4b640b374c
MD5 de16e70eb4574762e8e11f9553502d4a
BLAKE2b-256 10fe760388355d7d7f612b55ab31341d24b27bd7a3dd998e4ede2a544da6e0ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.11-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.11-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6e9038fe8eab7c666e4e629ad879a4c0f1dd70d83105b2287ab43a55bd8f1e85
MD5 4895b3c26a71651f088f86c92d56abfe
BLAKE2b-256 66d19925de19759edbbe8fd47c06c472b69ed81590e68857d5b5ccbc89fc23a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.11-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.4.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ec358ba6bd16a089b8236922dc4a1c81cf4870d432fc57a7fa2f48c3bbc07ac
MD5 f7f6269cf7301fa26e1d1a6d8a0bf4fa
BLAKE2b-256 7f97f8f7bf4a90ff95b5720a20cef0f63a2e81e883bdff5fbf5d051f37475a21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.11-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b44596d678848bde74ed5178c4e82514cadb15ac025d7ae1a507df3eac0d72b2
MD5 258645cad5c2e4347e719e1a0ac26d63
BLAKE2b-256 8763cf2746cffea46558d28e7d20a7d8e6ce2160b07001ea6db45fc05697c4d8

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