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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.743-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.743-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.743-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d2f362b51982d0b8e0cd5683c99f2819b7c6df6bce08d87e9b4f88e2dce0746
MD5 019e652bbdcacccf2b6755e513cb8738
BLAKE2b-256 5a689cb8ba5adbe7a78d84a6c18138a8db844c2f1acf15020c6234879260dfe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6f35bc5006dd38ea478d7f07d11cf0f0631e302a85571bef3a86b992929a3a99
MD5 36a18c23d2ed60cde9fa6ebb8be6fac3
BLAKE2b-256 e0ec4c7749180f88e636b8bac67449d2761e0a67df29be715f0ccf049d096a35

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.743-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.743-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ec12a809ede08a2167254fb985266a9b2f345d710f497d9a3360d794f19ba7a
MD5 5bcd65e30101d79544d137d530bb8d2e
BLAKE2b-256 4c34f087d2f6aa9f6ea8345eacde3f66e45245283ec8de334b9a4a906b8a067c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82bff091a61656bf11dc2b42dc3f36a0007fe486dc65b89e3aec8921a5bed1ec
MD5 3ad72e3b82e08881f1029c6ca3361749
BLAKE2b-256 0af039bf2acc36f2806fd4fedf40fe162ded0df65b12e2d5ab6791b595724888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 316e175c8e1b08326ff5c12926dfc7b0544fe864e819a156e07fed510b7bb74a
MD5 d00f3add8e2cd2ce4463fbef02be0d5f
BLAKE2b-256 65f963d798b6e2a4cd37865d5f8b0080874d31f88ea748dc6738003b405505fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 04a1bd551a54727e435e6cc2774979e6300a370ae7ae0db3a9065aeca91078e7
MD5 d944be46b99bdb6a3750351be904f94a
BLAKE2b-256 d12e1c7e00b7d98f2b044fe36eb89be8c4b716e1dabc5d19e2ea182c77e047a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.743-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.743-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ba07197980b0f49bd22c202b77cfe98e0f5389b860214273529ec84dd01312a
MD5 737ccb2ccc310a83ee430599052e5d07
BLAKE2b-256 c2edd52037b439984eaffd623cc405ec4e6622a17356b66041a03780c360c400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3146caed48be7e547c5bc882b8aea43b88b18db555ac4626a4c212dc69735dd9
MD5 fc83e1b222feab58ebd06b32b9e2f367
BLAKE2b-256 2d13c438c75ecc95fbf701b91dc6f2026287bcbdf6f69d2ea2fec0044435525c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 38ba634cec5f5951c4a32a5172a57177e5b0e1efa6b6e0e9b87724daf674bfa2
MD5 caf12ae1a7be4a97911eff0e42222c04
BLAKE2b-256 cbf7714438d5d6c5beaed3dfafad7590416eb23975eeb7b6c35c13c218b84e2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 245194a50eb659582e7147e880571ec6e47927140347916d12f7f25c68ca3409
MD5 0aafed724f8160e58a005e3e581f6807
BLAKE2b-256 70aa9c5a7f0df61b747e7d8a491583282ebf5930f0d35d94e5b9edc8413b4589

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.743-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.743-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 921d08f0fc761ed350fef7a4f65cb043efab05b3e57e21a2f9d6585c912f8570
MD5 4416a7c4059cf9301cb9bf2fec1cec69
BLAKE2b-256 416e47acb2be7474697edb9bc1e7371e373b94d1b7ec8f3cc34ff5060d911c6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e60d7f9cb6bfd14dde99c6e1de8ac064b865fe931dc7359f0efa6c55b1fe3403
MD5 11ae48c54cef4625ae7f33a50b8fef23
BLAKE2b-256 a35af54d241a6252209e5a60fe002457e7a9ec30c73959d18760df49144cd805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 644da3c3ce8e05b9048b329e8772ffc3d3276c193c2c443e92fc8ada7af79540
MD5 f4ac2be0bf55ea4331523183c880c9ca
BLAKE2b-256 237bd09f8e5a468dbc96a20ca51df7f0d17262572f9fef3597c5932d7376e72b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 eb4244933af2931361bdb302aedba97de0e709f4d74f6039534561653abab0ab
MD5 df93a0f5883ee3b3b6ff934d73a0382e
BLAKE2b-256 7b07845d510961e5ed69ca6edc6e20f3ada4750eb3d55aa057ebe5264216a0af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.743-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.743-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d046abc84e3b867da73a0412e2b68cacb10b6a62905a7ecdb260b1825af18ff9
MD5 c3f0baffafc6ef1d8be9b9e8a0955e47
BLAKE2b-256 906bff3f2c795b0815fbd8bc60cdcba340705bd0c888245c82b69ef2abe06bc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4329fddd06a9dbe71e2b8f83ca0043bbc1c43f851a37c45ca36dd8f7c7995b16
MD5 965653c7dbfbefc646986a976d5149b6
BLAKE2b-256 0a60d5c9c49c1b395e25c711d53ebea2021655db5318df8993e2638246bba6a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 de5f803a15c195a704a778e5e6822a7beede59f3cc2212efbc79af118792f464
MD5 76356695ff354e0078e86627997f4459
BLAKE2b-256 fc53b1d679047174f73eafe3b481028d3d5eb1d3612782a351c0d4b6c5e65315

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.743-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.743-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7d8c54ddff16c29c457ce08da088c412317d65f6b1a9ac2854404c576a0b6bf3
MD5 a148bf4dc3387a274b8484c43267cc4d
BLAKE2b-256 ca870b0ae1e45b9607c87a879bf436d082e50f2a10ad2a03e2b561f96c1e03c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.743-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.743-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c085ad8c4c5558af03b46dd46077d3bd61542c54f73c6edb79376a5641e67549
MD5 6ef5cde4c43b1c1bde77e7e250fefd05
BLAKE2b-256 b7c0443a11e704f8cda87c33c0ddde9ef606b0a6a66dba63c32cf074bf20491e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.743-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38ce1584ae1f431345c4e55b15b0e627e30e685c3d2e006748b353aa7db03278
MD5 b23fe8c58a71f30273b98e104c50b9c2
BLAKE2b-256 79d208e22a9ef2d5602519fc179a99503adc73318bf363a87bcd59e87e0a2a68

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