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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.761-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.761-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.761-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0c05a772f23417bcd5175dae9f87075ee3d3337c0cf2957e15a64e6fc63bc19f
MD5 804debaeb1753ff92aa788ed88c70e17
BLAKE2b-256 79bf77f3cbf49b9ba3490f94073e0e62d8ea3a822449e9858b6714721d8957a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 43456cedf923a184b2a048c633804bff26dfcaabcd2afe0ac730291f4bcacf6d
MD5 11811df0d37049bb8dab6984fc8a03c5
BLAKE2b-256 fd5da6183efb656c91441eba63447aa6cafa367bc43b085de86d2ceda6ec6ba4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.761-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.761-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90b928431285ef6b0d3e26e6b1887c649aacfeac3f8b58a3957e34fc388dca77
MD5 7eb3ac3da8fcf097b9a93613c3469066
BLAKE2b-256 e7c12b422232bff77736e9f546af8de3037e3b33902d6fde83455afe782057b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e70ca3b9fba429e77f905efd28cc6d68e14e9c6e7b5ac10ba540b0e8a85b6b9
MD5 1c925dc6f26115bb24220fa5400ef147
BLAKE2b-256 0510d756f60ed49d52c38b1b0f3e8ac2487868c94e385e019db59ba826f7d9f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0d63915578e08cccd8734914ada535a3a095f5415bfe52599a737e24e4549432
MD5 1415da68f5100b0b2aa2effd60c7cb6f
BLAKE2b-256 4df918f5e0e5540dece6631125084b2dfff92a408927fe52f37857e4d7291b23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a60374a7616c7b5b0f0271ef1b0a55508d4ccf7abbcb532e46fc56404f695270
MD5 104bb314c4db0bb7dbe345f54b36dd89
BLAKE2b-256 c992ae340fe617b52d045bb0e7102eb916ac2528d94ecd5c4f03065403522f4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.761-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.761-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88f78649d9f6baaeacd755f5d31888ec66684d37db382d1d04fdb17f6b234fc7
MD5 c7c35ccda103f990ee3c0779b4b9579e
BLAKE2b-256 4faa8a4bec7d43bba9db90b4402df16f9354b304ee311b6b9f991806972754f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a919392c9e0cc2b4bd32aa618b5e95f853dac6a42f3b42d2912adf3f9c93db4d
MD5 7139607a874f2951be75d18a8b48b9b8
BLAKE2b-256 c45f4589c6570022afde8ae41d268eb4c165aea1015eb22b7196baa7a8bb7ecf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf910528d774bba244173c0bd8203da7bd02f223e0aa2920e53a9e4e976f06b9
MD5 d8ef24dcd7821bada7836291b70f88b0
BLAKE2b-256 03e6001336a29f4927653a6199c93383f27798613c5617489cfc43fe595ec6b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 68cfea3daa430e7566c483cb706199652a4e0c069068b91c00e6015099add826
MD5 b16233322194ac5d0199464d38e2f107
BLAKE2b-256 a3389028c5f67846be017aac3baac5dae6a72101b1990651f9131947b54f8f06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.761-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.761-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0a77b98f48e81b2b9d0724ae427e7e05a034a68578ab00690a1c37af7e0ad36
MD5 ce007283028fa45dbecd21cb6ef421b4
BLAKE2b-256 008ca06bf7534bb77f066572dd6a4654e5a8a62c8cc89fdc7ab89a9f880da0b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5284964a0339fbd22ed721ba790efeb880d714cad296e4388b37819b8b0c64ab
MD5 d6d401e59a1b52c1dda751620fc8d18c
BLAKE2b-256 63fb4c3f8fce69bf7b029ca20435647d3c019fd10baca03a82529e681c4e6d6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4c82ae85482e107b662d877a4b5ad57c32556d949f8c1ce6fe26a9e6f94d6156
MD5 8c54517e4467d87746ef1c5d405b2158
BLAKE2b-256 a7022ccf35e03e5faa62939eedc37e84b7a67ce92b1765393e34ca6c379b95e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4ce68659475e7813d160eeaf606780f44e49f2ef022999ded7a3ece28b2cba0b
MD5 0ffea75757fd0685047fc7e44b73ec59
BLAKE2b-256 91befbe68aa8705a40aabe20519548cc8f748517d450e163f0ff7bb4f0a65278

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.761-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.761-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84431b5f4377f548f20bb3b950d82f1c261acc28182a2047531f4c242c825b33
MD5 059302dc8d34d1ae7990d1d3fd859a7c
BLAKE2b-256 d327765084defd855005ce6f665cd967515d4b2ab57e3de76df791927167a78c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cdcc42a0a30cfe358715aeee43b07cc7ce4b5eaecd5ac14b5327f790224834f
MD5 4e23dbbf997031226993b8ccc67b93ae
BLAKE2b-256 58a7bd7c2b972ae0b8d5035d811ec37f48e0ae039a1868adddb19c4c1b4c898b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d7b5d14ecd84d1b93520a82fc29296edb672a11c9d57d0634ef9e06a0eb88151
MD5 b610703258b2f11622816216251c92bc
BLAKE2b-256 58338082e096915987cff031eee4db6132af6df94eb867f11347b9f01b3f2426

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.761-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.761-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77f9e85b2e07e4e904ae5cb5e95ee9b386d877e7baa1418b244eea2fc8bc55a9
MD5 3a9e37f7acf39333ecfd55d67c9779ad
BLAKE2b-256 057705d5b393a04e9bb615791428f570c284b8c1f14a568012513444fae7c81b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.761-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.761-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1799767d04238cd501bba9acc371c0f66f2f3b23ae58daaa54a3c7263cb06dfb
MD5 8b82fdf60b70e6c618280ab6c4bb93fb
BLAKE2b-256 0f27827597e28762fc6e3a5098b6f13c86b536e9ba3d5878d6b1532b531433e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.761-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16b06b97bee6eb6e0e581d4d592465ace21e0f5d232f9c66e4cacb9011376615
MD5 3e79b2b4fa4a5e792bdc9b4e15b27347
BLAKE2b-256 a903d2f8ff8632a204efcad057d5f3b6423e81d86ecba0966257ead32e22cb4d

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