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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.143-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.143-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.143-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 de8bb8dcf4e2bb093b409299f258a8471169becaec6f86659bb7b85a57f846df
MD5 c1d082c41a65defff8d6a74c84aada52
BLAKE2b-256 63c169ced830b9d0df4fd18bee97e1e892dff08cfeb815ceba19e224abfbbb35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 30ab889648ea920637b23ced72c8e83ed030bfeca0fea8d6c8747bec56ecf1a0
MD5 28525f6268006338975e257fcf081e04
BLAKE2b-256 0a5281728d967be785fabeba89b883e62f70635865a740d16a8035ba9f9635a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.143-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.143-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91ac3626b60426e98f98d3be596ed54853bb1511e4c18c4348fae629af36c7c0
MD5 b95f70dce510a3e69ff19005b405ef48
BLAKE2b-256 c3ff61d043e8ef61ca1ea8ee00c4ed1df7b9a571037877b45e0f83bbe4026c9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a672f9f47a3c4c934eef644f7bcb87cefa6fc61a6dac47ae05e3974fe3a7b83
MD5 3baa3e6626bdb08aec8787caeeb0ecef
BLAKE2b-256 e29c1a9aca0b56de666c8f19f802c9098e278f9df11c2402af0dc5d63a88eafe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2208b275d47224caaeb0b47b9f1b6e7189aeee6c96de990c8c8639c33d63a097
MD5 cad5ebf593c8ea9b38124fb42ccf28d1
BLAKE2b-256 0633e4a4c80fa5990c38f1b33216868ba0d1df5e49596ca05aaadd375dd85c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8712bfca96487942686118a792f42a4a679ed10ac2a4b4222a4bf45be87ed2fb
MD5 e223453a0e2a4db5c513f3fbc7b00da4
BLAKE2b-256 d43211563ce3fabf7df7d7014fcd4a5459c58d00d14b2b8936bb59a8b7543ee0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.143-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.143-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02a81ff3b7bb0fcca5f97c2eefe583710bbfc495c951efac21e8ad69e558fba9
MD5 376491cc0b3164b2fc63363620a6651f
BLAKE2b-256 49ec6e13ca2dfa66f540d670a451e6698795f281fccd5beb9fb8e64ded807a1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3d6d52f112fb70157aaa21ddf0cbe9146065eaed7457cc2b53ce74a2179bf37
MD5 8e24c268536e9338880abd6b90c4d243
BLAKE2b-256 6003a3694ee91970ff43e1a5840f7c2b3d2cdac9e06954a4edd2878884347160

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 48b93c1e25d09b87814f5b251498cf4dcc5a6e7910d986892868c559e6f326fd
MD5 cedc23bd751f7ee2f995977e553886e5
BLAKE2b-256 c993b068906e389f6b9857fee4138bdf6d49e72239f25e02626de88c6d3ba47b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b96c0b95fb0287ffe42b85b05ba1cdaab139bdd95621d040ba3aee8a23a61b0c
MD5 875c82fe2dc0e9d2761b66bb7e41ef11
BLAKE2b-256 0dd20bf090276f7e7e46e96a804d5341208062af2403087e5fb9142a25cbc1e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.143-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.143-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 591caa7f82ba413608f9a5caeca2663a782bc6cfba4913ee71a0ea77538f2fcb
MD5 093986f7e9c64cab09e63ca53f084c0b
BLAKE2b-256 51adb9d7135e5ec74edd5e4fffa03a08f9b67cd42d52e40fc6b4dd8b8d66c0ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e7b236d59f93e74bd4e81d35ba5af378b124036b6e771979e4548b160d13706
MD5 0feb049cef73803b2d28432b8d7e10d2
BLAKE2b-256 e23dce4afb178536becec022304500e19b2ad467eabd599ad018947fdc62358a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4c7bf24dfbff250fd2643e08cefa0361d7ccd6d5e9c54d7a496f700ffda52f7b
MD5 5ba8a580af7760d7e457d180cbaa597b
BLAKE2b-256 50dc9e9371e9c24f7c5c91b60a302ba4414638ed92f265b8569c444923619bf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c3be2e63fd95921621ed69ae14f0b03df7dbddd836bd5d743f31c5cfb887f9e4
MD5 fda40ea001ae5b661e10ee61fef37b7c
BLAKE2b-256 9e0f7e37724574b1750149cdeb521261a08d4eba45dc357e14108e352c26aaa9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.143-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.143-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5980685512eb06a3955a7cd2a9a25ba80c86713e7b2766cae5e1159415ccb60
MD5 8f88fca6a38db7f1b51a0c7187035b7d
BLAKE2b-256 d60a2961e3ba6241540278cc9996f6efe34b1b2ead7f1ca10695b6c4895f7d3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aa0931adb66c731114e6596f4550e65131e1e67bf1e1a62848df33568a6d9fe
MD5 cc26127f2142de306a1edd978bdc3f67
BLAKE2b-256 0e68511d9ffa1e331cb0180eceeefdb4f64ad413f023fffc5ae3748cb4f74980

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 03a63535e4d53c7f59e83c7ae2544cd09f7d462c8b344c28e0a7a5c74a029619
MD5 913a5cfab9db5651363f094b1c10d27d
BLAKE2b-256 77d9fb7e087fdcb65c48f1b886928ae1ec29e9dfae89d7a85b78a3edc3979187

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.143-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.143-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8e40e11ad9400dc9b635f02679e1d0c39a414dbce37181518334b64c6d97c709
MD5 e1af781106371f139dcb1dc6c894c69c
BLAKE2b-256 71d9cb334f7dbff06a34413aa412937ddde90ea57bea0cb3aee6519a63107c94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.143-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.143-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 300633df93905fee1bdcf23a11834d893e49a0acf8d563886d3447b187a477f9
MD5 97652e56e1aaccb29825f87c06cf3487
BLAKE2b-256 23920defd2e80f8cfc8049f0ffb47496e1794f3808fbdb9aab77ebc5e86f82ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.143-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d163500de974b7f748bfb1c4faac07ea8a089548595042cf6f40c12f1386183d
MD5 dc4d917fc7a5e60e8a6215af7e0d8e81
BLAKE2b-256 32878958ea944f065b7b4fcbe71dae52c566b86bf0ac78ad87c8121428cd7d02

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