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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.221-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.221-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.221-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 174ddea208b4b5c4cd9f950792bfff92f08c9173e28443b4ccfa39b448e681cd
MD5 f1201125ddf440f437ae30c220182aeb
BLAKE2b-256 1d4469612333ad8772e220080f6739179c738b4dc571d9a61179252a24ccbb68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3b4ce8433468e0dc2fa09ac7a767fe1e0f279b7abc47ef6a4d7c6b122d03da3
MD5 543bc8d6b31ad9099703834e78e572ff
BLAKE2b-256 579569e4616f9fe5ca7bd8055d154a0b6d82cc941a6569e96764f4cb7c0f83f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.221-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.221-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4864629290251c3053ce212de3375c81dac2e7b733d5651e4dc3e80e949e8931
MD5 3f33168549ffd7f1283fc1b79788efe2
BLAKE2b-256 508c5cb23c7abcd6d2a983c7a06c44d8e967b1e3ec41333a8317de002da02a36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6070372d10a4ac56670a9664380b839fe300a7a0ec1cff8a576dd91178b07de8
MD5 9c6eb2aa1eefd06eb859d6d01447596e
BLAKE2b-256 f1dccd06fa1d44b356bf1c4879b65c251ae1dcb5dac89098b4f85441a513741f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 753f403a53a909026df775a601d41c2d9c74d010b399de6689c6c461cb702172
MD5 c75cdb549957f1386a101bba84a51bc0
BLAKE2b-256 70c7e59e43f749a55a5eb59f3ca1338aff36ecdf67484595361bb421aa9e24ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 22445167b6e18e1878ac4bbeb5f048c94bfe1720b0d0586e8cfeecb19f77ae7f
MD5 789a0645b48c589bc87a0dcbc66e927e
BLAKE2b-256 b891ca197f2dde27860e30916cf33f9de572527189776dc730b243762e8dd3a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.221-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.221-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3826887f67f4c5de5501545b4b870e6719ec0e61cce7863fd1ab4143851be27a
MD5 c0ce23bc8692f7e52b9f2009369d4a7d
BLAKE2b-256 77289fdf3f26a150b089d8198c49a6c4f686f24c5de6fb213c08f120f16dcd71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd1143bc1d815dfcecdb746bab90c59ec90f11b9d9fdaf277d49252c9a23b67f
MD5 73a6c0b8a23a77e8018d90797a1fc812
BLAKE2b-256 891af19ae9355983d7cb46642afc473084b9265fd008c292c495d3c5a6ffa144

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8972521c7de1207c3c173737a9736f8b94ae3bf27700d81b465858babb328788
MD5 db476dccb7570b74f937c2739e69ce50
BLAKE2b-256 1a126102542f18f0e9e6653d8d9eae975814949c709f700aea1c10ed82c407a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3ea59d9af4236a96a19a9e04d8b6cb97251dd6dfc8aeef9f30b3890ac4f3cd80
MD5 258b3ec8c3e17928dfc5fd5b01e04bfb
BLAKE2b-256 6cad0253a1a59949f3e8b33dca82a96764ac90944ec24cefe2e4e8332738ea22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.221-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.221-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a77c983559d4c7f60f5febd8994f1202c9d154a5161bc73af7d949b7ce0cc8cf
MD5 c16df055a889968669d4b66c16e10a83
BLAKE2b-256 92ad502807a3324a5064ed71f18c238c1bdad30181715405d3d095bdbd02fc8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5a6ef7137947a2328cfcf156f16c04c8d334202296d26543b5c6602acc3a746
MD5 01c993f757f5279a46ac5299e1ea4131
BLAKE2b-256 131d6beb052a1d0f290478bb2fb83b7a64ee13dba6ba6dc998cf24cad58afd4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f356c23846209f6c6d991383c4c6e769d9c98fd57990abf7ebb131da063efcd4
MD5 77fcf1852e99045225fc4010dd02bc5e
BLAKE2b-256 f016ad027bf77e0c92294bffcc5a6e02e2640eaa9a0767b84926d8990f23d355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f0d577cbaf991b45ee6b4f931a4e375b0da3ccf5c45fcdf482e2d18a73b2d242
MD5 cac5173e801ad92ca17735a5e7d802e5
BLAKE2b-256 09d9367473227f4ed372e68613e9cb035c4fd3ed19f0f39fbb39eb92fc71afaa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.221-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.221-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b6f7fec24561c7cf203d4a70f95e43e4d7a34e9f747f40cfc17149fc4257882
MD5 f7a4a948736b2a55870c6560bd5bbfa9
BLAKE2b-256 28967cdf1623d8addab39eb08772c6f16f47712c9856cc6386c836f7e9419232

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6dabb8c4859b4c0f7995893037f0ec67141621658d989f181828db862e4bb426
MD5 18b980ef1ad652d7e7cd465acd2bcebc
BLAKE2b-256 7a32806a771f7b4968599a58fff09afa557bd5e8409a7a69bee028828c5de182

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4799ef9162201d5cfa3eb48d5fea4c62abd31e2c94594e473a0975609cd3787e
MD5 99f6e057abbd09a1dea3525a30978920
BLAKE2b-256 d7f814fd6e95a8fc73b9abc607e3fc805b01982bc0c03bb136c7dc8814c807a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.221-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.221-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ddb2ac5c7f5ec15f7b1388b694cdccf024c712c003d82517d24b7e3692b59297
MD5 e9c8f3bcbcc391b7694a566d7aadf702
BLAKE2b-256 dfc497f43f392300e609858ef6f6623877423004309a1b4a1db209a7150ef63f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.221-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.221-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b64052ebd79f8efb3dc5f1c75197270b3bdc0df021c8b9bab5348abdb9a8381
MD5 d27a69aeff9c66db8719eac2ea989bc7
BLAKE2b-256 ccb6419e54bbb6cf3fb3b9a31736267d06ab5135e6869a89786fb4522818b165

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.221-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5605a490389e4e92e3134ea0631e2004be89833d8434533e419d98421594f9ba
MD5 d1ed88dcca406f04a8f25788611a99f0
BLAKE2b-256 14d493380bdcdcb0d26bb73dc08857bf987f0ae52898ef298b6a2c5d847056f4

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