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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.737-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.737-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.737-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3a9b79ff9bf03fc0c77bce36cba84aae020a22d3cb23b0a8b84995c302402076
MD5 ee8548234abd761d9aa4f9b5e89a2ea8
BLAKE2b-256 0bde25f6b39c77b2a2ccd1c8605e90ffdb89d814c9e873d8a10ae2658028d8be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 29ecfa0d49c65422de597d16ee82dfebbecd9184a7f5a942dab113293d8528ef
MD5 3a30bbdf43a0acf498ddc696a58d93df
BLAKE2b-256 305f1aa9afdd2d87e01d15761397eab0c56a2305a695e796cf8136c24d44c604

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.737-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.737-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba3820b188591e538695719bdffb182052672aa137f73200879f6bc9ee4ce9d6
MD5 408ad513ebad61be596dc4939b9ff480
BLAKE2b-256 f2b09d25c532aa75eba728c758569ab210b9d38bf153a22f66c0751f9f8af49c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a56bbb04d0d5d72839c632d3f6f671146f03e523bf1d448a70efc248e8fde6e8
MD5 1f826f3ba77fd42923b742b23ae44cb1
BLAKE2b-256 13c73c2bd2fc13fb4aaf2b9dcd8efe8a3b9a69a43e66e1345e9a83ec19f18898

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1a96f4f2853a4220429cfb84c155cf26df2a28acf2c47ac56c465f2b1e8a84f
MD5 5bb93a5b9ec5401691737e5af447daef
BLAKE2b-256 cdb39910dae8aab115a33abb15f3d60a94c4131433abd96ba2039aad160aae0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 18597722d703d0a62d91f600c788f7a9f998fa0ed00f03528e721f8cad147ddf
MD5 54b925bd2fa905e36a8ed1e1a2834b35
BLAKE2b-256 50d0a9c57c9f634edfd1ad0efad3a9222c7f4b4623cec0ec2d729e783392b839

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.737-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.737-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8428d494b18f195ca9cb8217956dbfce2fc13dfd4ca743c92676d6b6a1e71aa0
MD5 5d67cedc5cb54a9968043b45cf5a6b08
BLAKE2b-256 a8289142898d60adc4f8a75d1f9225f8c4c25cc5b7ca326b113f9bc2b5daaf65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae28ff0a6780e9efcfe785731ef38d0c55a63402f87b26ebdbae0bb63a6d9470
MD5 9e6f0b1d61584cae9c79d9f36e67070d
BLAKE2b-256 c9c4ef04d24b6a1f2f57cb9344bf9ffc42ceb465f45fe84c6344c77b3f6a7972

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 718a36e096c1d96797610c4147370c1ed85b97b6db1c3572cf39916e4d6ccfdb
MD5 547e752fd590f58645bbb0f74e4d4778
BLAKE2b-256 4102de47b6be61a6abaa3942526ac7b7ccde0f6aabe6d59433141d2664fcc0a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1d72c398d2cdb76d2e05b4ec8ac254aaa1e979cd34bbe2e2624b992703692871
MD5 e047117e662f415f8fc0e5ed7a5305d8
BLAKE2b-256 45d30aa72ebb07961b41b97d796fa0551dcb2bc98573a3e1d9cbb8db9966f08b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.737-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.737-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 315f52ae241f23efee05c4b226b3dafe9b86ae6409db7234427d6822ef3d08a4
MD5 7e1d4dff9888c2723ba15a42ddae756e
BLAKE2b-256 54b49547e6e464f6f5e6639bd4a8b855a3f5ce6fb674a4ab61b6b565e2821780

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b78432d386050449332c9638c3467d8f9343fa88c7bb7965515a286c91bfc048
MD5 c09584fd6213856c08b1fd093ade206d
BLAKE2b-256 0d83ae263997a7fd73d2a5d0c300ea4899a1451d0d3e1388b2ffff9b2a6b54b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e1d96df9fc82fbaf8e5932e76da2cbb3e0352340a5c0dd1d18e0efd18a68c0e9
MD5 593c90d820f7cce21dfba34469e3be79
BLAKE2b-256 eda54fe708e791546edbd1f48f9de66c37318ba6fa84c98b8252eb075971fb70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6f516fb5104bd98b4b1f90c9d0d9fdf89989a39e913a90fec341a305ced89bd5
MD5 93b2dc03c7405d34d208e765e3ea0ffc
BLAKE2b-256 33aa9bd88c69014fa89c4e2f2cd618890f05cdc7899493cf7f9f73fd511003a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.737-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.737-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7870fc4c9c3e57c2dd10287f05fd51f4d9412b6650cc2a81f37d672a53b5fd17
MD5 6a6f910e73e93d85858017c71b1d9a06
BLAKE2b-256 62be244c06bec2e98661ca7779152c033ef73bbf8fbbfba5721303b443dcf65d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e4e5ceb319fb925f3cd36e3319112aba5e480a37496f1530553bbc7de776bde
MD5 f4cbf4efa9f81bf4c5b10e2f94db9ae1
BLAKE2b-256 e472c3d8baed111c36abe537d6818034cc32021729c2e3cb7f0e482aa631e984

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 82052867d20c8c171be85bf1433c2a74fff9ddc752c85e0d73eabb29aa225431
MD5 9c278755512ef84931d49eeefdf9995e
BLAKE2b-256 04474670bd3d60b276b65fc20e3c9cf638b7e9d26e3fa6863dd5e689ab9d423d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.737-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.737-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0cb3d19ee07847750c43ecac7e2324d348bf5887db74e7e3cbad56279de4bc71
MD5 0bb95b4065e1a341c0517c8de0c8aceb
BLAKE2b-256 4cf9ffe037fe487d0a0b566831680b1c501d8629b90113b5eacfc9f4833af430

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.737-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.737-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ba87b0d773338a041142c836fe3ea18c92b0182f3645a006d74a9d1dc1d3276
MD5 46d093f7774f469a3a729d3f67d76a58
BLAKE2b-256 66006747a4d129f96e1d8240a8541571f33fd1e8c9aca599c2e3a9610655c57d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.737-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edfc31e501ffc18e1a2008f3bc1abc0046035368fa6f890bb677c94064cc3819
MD5 e2698a5f3f5474bc4ccf27b6d0c82868
BLAKE2b-256 6409ebdd80136e25a10d6057e9bd6c117b77a295dfd53a9e13c8d53537a179f7

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