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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.20-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.20-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.20-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.20-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.20-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.20-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.20-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bc7885e3140dc18be973e1fce83c58c073ca73a1e881b160f3eb7b4b3e71c369
MD5 7fe3572bafae0bf2e740b8b04197c396
BLAKE2b-256 d5d3bdc1d0394140b7ef1e5e2f9f9507c13dc7c51cb797779e595ee4c8d59ea5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3aae9e618335c0f6fa8ef4cd88790f0541326e38e508a93aca2961ff5ba7b9f7
MD5 02a8877e13466bebfcd44ef8da692df9
BLAKE2b-256 bbc306a3da6cf525d25f006c74b3b81d876888fa4bbc8f2a25faf5757b173642

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.20-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.20-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 100fb2638906b39dd4400c406e7276c906cb7d79e1be71cb5d5ee13a8c176402
MD5 4471c0d08381145723743327e3824114
BLAKE2b-256 45d8098a1a1e0a57369a98f7a55963d8eb317940bea2a8bc2b9b4ccfb45ca09d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 425a2f1aee9619e046c60636df1a1e52ae540e2f63da8ce174e7115c6f3ce4e3
MD5 aead4fd8eb9fe552528f3a59cd98b756
BLAKE2b-256 9eb40fa844129923e41e76016e8bf17a4e3d4519c0e3d20fa3e51167330a50e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 493d45f75add5ba71d4275cead222343ab17b01fb4dc02fdc401f6e5ae6c0742
MD5 fc22219759807a8b93b7585da56137fc
BLAKE2b-256 e6bcfcc551c3dcf2eb69f349f11000d4c55bdf6219049a3f0ba487ef8f9070eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0fa590ae988f75310e758f09c2024e3ce392d5ada46dee0f3bca7c214b02c9f0
MD5 510f6d61c85aee92a1b286c07ca4c345
BLAKE2b-256 6c4b36107703f1e79d12a720c91a57f6b81e85adb0d24be0c2be124906864f4d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.20-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.20-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66817c4495ac0d0f539feec1f25f6eb06105f6131862595bb1b0442563691c42
MD5 11b3a7e158aeca913ef7516283889452
BLAKE2b-256 99210f79c7c7f7cac27afbaa40e66c70117170b1e460a3badc436f02c0b08938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.20-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a015b04810d5ed76763df93b4abca883a2b86f876069b4c7fb8786518a1f3f8
MD5 a8b7d338ab1b36249f9c8396d8d77b0b
BLAKE2b-256 2dc88197c788d24d1daa09f01673f3b935c9f44b7ed2ab67fc362e7b16a60311

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4553a826510fcc55f1348c7488ac0585eacf308ef53d9c9a6683aae2c9eec476
MD5 ef6cb312c38c2435e97b957491a01fd2
BLAKE2b-256 3d913efb4d22631742be4ca103ce23afec1046cb992f445b954d98d81edb0575

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b8bb58cdec6cc56d3f33f9ec1eaa2304dc3cfe479149f947e661ab87a388eeec
MD5 1ca894b85cc07b93fba6392d7dc7128c
BLAKE2b-256 db15ffaa3123dca4cd08dd2dd1de48518d4655ae0a9950072b0233701be8dd74

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.20-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.20-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 992abfb06fbbe62a8bb68a9354bb311be972f09fb772758921dc27b6f86f5b8e
MD5 fd00655944a06c75eefbdd4a5f3100c0
BLAKE2b-256 8c79536ec1e4a41be07537997b76a9524250b4e4d1c6b8eda7c3819e1a9e1337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.20-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2738c1e520e7b3951691ba14599c7808d7e561f229aadd94eb449c68ce95bf49
MD5 14921ce80347c534ceb56d551e0ae845
BLAKE2b-256 1e15c8c1ba9b3d43f0155f5e387df9684cec4685d64cc01edb4369283e42120e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6a67010630913515d0b6caeba2294ad9d4b8ef1df01c05d3ad16f82ef788bbb7
MD5 49d2c6b295f5c57299217fca818d1838
BLAKE2b-256 28dd74118cf227c9d48d39824730baee2b8add0627c8f110045924b15e039a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7fe2827d77e26d1808423edaab60c5e38eba32f4e5a17655dd6a1bf89e3c52a
MD5 ba18698d60b0a2de26333f41dbb2bda3
BLAKE2b-256 bc3eec069780dc794726adb146e78c19b9db9f1c6bc7ace0ee4171d4df190b30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.20-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.20-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33d1d830e16b1a638e0e011aca8bc0cca2cdebc39ecc78c384c8e31ef411e3bc
MD5 5003d71a8ca8dd26b72121db9c638790
BLAKE2b-256 c2f6ccf6b9056a452b49e46972da2d63cfdbd38bbcd452d16a70cff17053d0c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.20-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39c99ef0bf9af6c80b3c7cb0c48838736af85083c69fb0793ddcb0bbe756f17c
MD5 e9d1d46af5c97d353d017e5012a27312
BLAKE2b-256 4c9265009ae14fd9e9bb7b090f776477c40d3de14ce39370dd066d5bb3a2e2ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7cf5f09212463aeef65e6974e325031d1009d0b01a25ecdc77d7a247b0434c58
MD5 257094ddacfaa18a421df3e86e37cc02
BLAKE2b-256 29488866f8d6287a1af111ae55bc9673dd9e6896d663e4efb978d629398bca6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.20-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.20-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d899a3d289c6dd061ea40a836b177e0608aedc85efe8a4b5fdafa29aad2c761a
MD5 f4cf63f9f47a98fb754c57665ea7b43d
BLAKE2b-256 38a6262b63dd1dd400dce4f04aa8628636fe8e4af671d103ed92547c44b0b792

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.20-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.20-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b6dc1af5c68f34bec43f5d6abcd5629560a981fe046df54216bedde5678df27
MD5 fbfbd3c63d3e3837dc252b2bcc80b048
BLAKE2b-256 f61e021a2bc167fb7fa2c4ecea1bae9aab9c980065f6a4a8a4b2fa5503869eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.20-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7536c448354a5071353b8e9d63b2532adf77b6e2c98b24b8edff40032b7dfd4b
MD5 e0f9eb7a6146a490ab276f658fcf0343
BLAKE2b-256 7b42b96cd259ca7d5a274f55309dabecf4eab27d3b0c7038a0c81c3a24e2b609

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