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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.535-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.535-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.535-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.535-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1b27c96e3dd0449c73e3dbab5c89235d79eb50bd78076abae255458e24fcef60
MD5 61033a64214b3e8387ce1fdbf0e9f8b4
BLAKE2b-256 280d560264c05f2bc51dcfd356bcef5d6e6983763bc370672c07d5671b1a9154

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-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.535-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 80b0a5c3ce930a3756d46e17a8c0d685a3b061a0e23ac9e02e8000f2d8245e64
MD5 67ff55229ae00a2b470794a3e5b9ef0b
BLAKE2b-256 d8f80fdfd45a76b19b71e54d070ee8ace6fbae7340a776aacabbe5a8a21caf97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.535-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.535-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c594356304bcc7bf8e02cc53a535929eda25317406bf2e4761ce656276713ab
MD5 28a71e0d47c18c1ac3c9ba3030de4058
BLAKE2b-256 3c90d10dc7dd8a5c718f383284c82317a9e6ace4ff899f3a9cf9f04338049323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ec2079e8ce8ae8aed8541abc76032a7c44fe18bb280c917437701a38a9d615d
MD5 6fd95a95535733abfa43d70b68439782
BLAKE2b-256 9aefaf49fa84287cdadbb12055f6a0c047785737d82aa3b45c0a8d611d4125bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 416139cdec67c48dc652f2763f44508e86bfdba0bc3e0b7b264c1a7b088bf656
MD5 f4f546dc5477836c728d959d0bfa1df8
BLAKE2b-256 75fcdc99521491cecbb5586472a65a9492c3a33a76da73f48d138910eecde918

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-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.535-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e1a456744c7877fa62c860e78874dea1e92b2c5518941497a7e3c1d5d238d389
MD5 c079ece60c7a69ce901419c1c95d98ef
BLAKE2b-256 2dbe969f23938b7e8c13233758f105cb1b18dd4d7ecf680e976f482fb915029d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.535-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.535-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d3d9c06f43ff6cc7ccf0e2790104cced6014282ac1d466573ec447acc8b036c
MD5 d9d0339721f3646559583b4b0e6f3290
BLAKE2b-256 40481d94ea73f01d73f8b066ff51123e66702044e5c541d0aa5db28f2231212a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9431b09ea60ebe29efce4f97dfd30be5551bc8153aaaadb9538db4b6cc3aa971
MD5 0b9a8ac93547f11abed6b223a565a471
BLAKE2b-256 0381e1e4d08dc40a5adfaf9d2cc16171c90ae44757eefbc5e61867b1da771688

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 302bf473205e2653f92473a7f333e01a3daaec5b4adf03017f405ce1e035cf78
MD5 f6c154fb78b65d2b49f29999d4a410b4
BLAKE2b-256 0aea1fcd7f752da976ac9c0b5faca7b3f53890a939a79d73d392afc5d8475050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.535-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9501e4020312ed27afc71477c2df6814958e0d1e662390506c706cc33c8e233e
MD5 06a2e57e6123d8d8db00a02735e65991
BLAKE2b-256 d00a98375b5aa67bb60fa3e70d7a2cf87491c0a87192e7f6abf93ae7430c77b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.535-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.535-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9aa93ee4044fd7eb9323210c51ff945569144dd26412c06bcb15347dfe33d939
MD5 c7e73e739fc6dec00e6a114b2df5cdae
BLAKE2b-256 b139aea3c610c9ea87f5d954bb9304d6cde4ee53d8d4dc76504431d6f3e3693f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bbb5aec74442f1d3f194420685ab18271216deac014a5ea3f7659153ba5eb85
MD5 c638a9168244677b06b5f2d880d8a2d2
BLAKE2b-256 178b66715756f4f25315b10744403eef0a33364b7c1a0d4623644fc13bb140e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-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.535-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b099de382a41f15b8ccb60af2a6d7bc4df1e57a8d0f79eb6b772c17744789eaf
MD5 119d0ea11469775eb4ccdfbddd232ce6
BLAKE2b-256 b831df1215f98e3c2f5dd1e18041b2d680d51273767416cef13c7e5864e9e6ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-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.535-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0e0fb31aceb757efddb7ccf6fc3afba51109b4986fd3416c08ba55d84cbaef1c
MD5 04771551cfc224d37a6cc1127aaca6da
BLAKE2b-256 acfc3fa5cfe4f868fcfa1f625508dd0a09d0b2331b377b78c0080d68688b627c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.535-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.535-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72b2cda563288dd0ca2f2f86fd5d73c549c1461227124df6bb0eb66940c8ff55
MD5 8dea3ca70b27b08d5c5121830169d63f
BLAKE2b-256 2b9f27efa12165009fb13a35107f5ea42a5e859ecdfb57dff5a541faecb25c47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bc1047e23c6bbe01f317282006902a130893b5457cd48a102acc7602d695795
MD5 115581cf8c96e59457fcaa2e17c65375
BLAKE2b-256 8b57ffe6d181bef3de4e3c973f1bdad2584f55d5988757b6080fed1222dc1327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-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.535-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 249f26f3ee85e2933753b545dfb228f07c07d4e7f501dcd41faf66b246eeae27
MD5 6c8d5754ce62c5f69d816d193577a712
BLAKE2b-256 4bb54f58d28df9845683f90d2905c2539ae490fc7d5f0ae4ff65ae8e0c61efae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.535-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.535-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4a4f68913b7a0221a5ddbd95e2702ba461c3528a43d8eda67a3a1a1adeae1ad1
MD5 9870adadc57c648859dc2089ec814368
BLAKE2b-256 45e17657399dd14376df9fce1b4628bbcca5505bf79f79a69c6582e481dfcd5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.535-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.535-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 daad791f9fd306b5a215d5359982c7f17458206c5b294a86a44f7fa37a206f82
MD5 1d2c952e9c03bd88e4be6ed45d62448a
BLAKE2b-256 e6c7c33f8c509a3a5f998b111fe484cdc9d639ec72cc07229386a1267dfc45f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.535-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f617ca2b872c1259a137de579b64cbca1a6911972e95c540025ec7f58351566
MD5 b3d0ca9540948cc91c028bb26f09629e
BLAKE2b-256 96e003da41bbc62e012882b2572699d01fcf64b5b060ce64c92f3a2bab1a4ab8

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