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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.205-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.205-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.205-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d0a60d36e8a08a149b71d01f076b14a7d54e8540fe32540a21c687cc7eac6f0
MD5 167406bf0a32c670837c9aa1720a9d8e
BLAKE2b-256 ff14222d10dfe985cfdcff4bc52ca3d62b42e540a7f3196fc5005c80df6eabc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4cfafb42b38ae211fa45835cca08b521716445cd90f4a21554df74af291b83ad
MD5 9ac8f503491c22c022982cc0b8939605
BLAKE2b-256 cd38194487de699e4fd8a7b409e9b6bef2e1af0badccd99223258e4e61a18909

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.205-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.205-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e7413b57941cc681710a1997e56759f352b9c6689e450d848689d2df76512ec
MD5 7f7b3bc3e564e9ec65c7d9875a5dd688
BLAKE2b-256 ed46428fb512a2ca52fd0cdf21278b13662cbfb618a639cdfbcc78b2170ccdb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 824d4059630e8df85cfdb852f786e6cdfc7d8394cb9ee5e81d2016a890c658e6
MD5 275bdfad22e8cdf58072aec2a7a35802
BLAKE2b-256 6d6404c4fb3c44d3b88bd6b5bbae47db78ef1fbdfeace8cbf287124e28f20b9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a5033f23487a01464d2dda8fcd64e8ccf205cadfd3c9ad3965d63fd844faea0
MD5 92d8b1bae93b159f2e10870a66aa0b10
BLAKE2b-256 8f13561334d8f5faf48fe640d431130d4024a300c452e51682e0f1ec04fbbfab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eddb3384958e9b1114e9775fb0b4151b960e4fc77cba6bf00a0603adab5cde00
MD5 3e989315bf2bd13af8ecafa8bbc49591
BLAKE2b-256 bf8675bfa5248e162e182b509306b41fa4f4026da418c34b48e0d96bd1207bc6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.205-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.205-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32a80ff3b96b14cd1b5af6a0ce3c0443a6c7dc2d8b5f150a84c9ea57e75a5c72
MD5 e68ffd9bc1c02703d727ba0d28ff5b03
BLAKE2b-256 02b51b01700dbc703888184bfc63fab5dee562300b772896cbff20585d61f049

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee15c8c00d919ba33268a24d4a95bc7406da60364d3c2431bfed81127933d64d
MD5 3b5ffe940aa56ed284c6fb09440ae528
BLAKE2b-256 6120a7a2ab4918b546f9774e7a0dd5c841b4c718fc3fb6603f11d5a0024bc108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4050b676e98ae1ddf50b92bb614c3fe16ed28c29c68341629a33318ff7a2931b
MD5 fc7a04a537f52060ddb8e9ccc8b82555
BLAKE2b-256 30ccfcbcf38ff6b8e999fe47c6f8df0cfe8eab5f5061597047ddadde28b11184

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 063bde7921bdb4432bcee55ac0d39e5a76d6af53bc30edeb8ba24f0d28e4e914
MD5 f5201cb664a55aaef052157a4014aba5
BLAKE2b-256 b4166ad3eef95012a959b8869c0fe95ca936f6ba1dd6c5e8c38681a0194813ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.205-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.205-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0e1d32ce7b287b50f263b1768fe7a5f958272cdb43ed3fe04de61ccf0da2e3a
MD5 a831074f59adaf4e14af78d90ad3e836
BLAKE2b-256 5ac95379532832462cc6ff5035430e85c62f94c8b629180aa82724e54c21cec6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3291e216a2b66b4076ca1e0b3d90c5d09b68ec1824c6d74e69dc10678b96c3a8
MD5 41d1b3d03bbce5c2f33919909300c51b
BLAKE2b-256 df6c749ba2e7eec11dbb6bac9e72e9e9291ea12ab93caadedbfa1701a199c754

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2dccc21753a65832af77998df8078670fb1aaf09abedd67af6067efe7a487836
MD5 96a2a559e30f93c742c374469f2051d2
BLAKE2b-256 2903e07e17933835df0dfe8f2ba7b05ae33b7428aca7eecd42dcd23a922b861a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2e77c9622bd22967593092e6dbef280bb6320aefa7595dd62a14b4dafb5d5262
MD5 e958ee9618d448215b60af5ac71c2901
BLAKE2b-256 a55cce450683019f64558503feaa868cc10be254ed76f09f9a7e6e79e5ec5d05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.205-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.205-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f6cc16fac74babe92a1f1e00ef2200eebaef1a7e88f3394b3c7c233864cd1d6
MD5 c8210ef86153eebff5b7189cee221451
BLAKE2b-256 b60375524b8b0477c54b79df50d3ea09aa2ef42a7c64d773a1d47ebef362d05c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05eb01c19fd9b461f8cae5d138e18236962ffebe42d6f0052e32a654207645f9
MD5 a7e3e36788887622b6d875094986b67d
BLAKE2b-256 e3b780699e3416960f4acd874906410f9bc5cc08f4a58ac7d705579bd41a035b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c6748ba083deb6513b516212b2d018c877ba0b6697d1f85f05f24566ad19846d
MD5 1d90aa5b3945e7290cdbf7868e2f2b0d
BLAKE2b-256 5fe4f8daa75cd25b06d8c0ce2437d458f1df9fce77ea38831951ae2e588c91fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.205-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.205-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3b9a93c2200553262a59c4bb2d2a80fc5a510c0667abda2b4c7c303b6a2d31e7
MD5 1ed5ac215b022e1478a4068a05a065dd
BLAKE2b-256 9d55fb94d5792cae576b63a489bb079483a613add68c7030b1275e27d7ecc986

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.205-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.205-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a895c5a4f6bd7bf682ea7b629570ba2c03fdcd54337991586f66bd426af6514
MD5 5b3995225e5fce7f86d5f77dd4cbbc69
BLAKE2b-256 1333ca3fe884b42eac8c74be772fd0c76d58074dd933c4cbe00a547dc8d5c41b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.205-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2827660c44017f9273774e69233b009e1a43e73f9f185a3cdc733d8fc6e6fc02
MD5 1f866a5be0a910288ccc898622f4e0f3
BLAKE2b-256 5d3571fa7ad798396edd065fc103a5dc1deb7a5e21a5cf45c9c834033a149604

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