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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.345-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.345-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.345-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8d41c9ed92cfa271727e53ac911dbca6a0fe07cb2be0d229b102a00a8d831f6e
MD5 01b39f2c53cbd7b24576ab47e75cab9c
BLAKE2b-256 d8617c063715a824b1697113ba71d3fa40348ecdc628f09523f103d9540b3de6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3dd1ef65608f43a46913383446735beec139dbdc1b7be6e60166f72a4aeaaf84
MD5 d0f8421918383434ade329297ca5b4ba
BLAKE2b-256 db5a1b98ea8bdaf98880951699c811a9734c060be0fb47b3dd22ca3fc6d40092

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.345-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.345-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29457c12423edbc43897c88c03d571ad21853ed5003df1ad45634f1301845c11
MD5 fa0af17b4e74c10545d830d77ff7ba94
BLAKE2b-256 73098517677208b76d527677a9f7463b68f04e76e76cd47d56870974c3aa5f02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b12a0d270174519b86f4fcc20f5a63146c684cf1e8697f3ce90ec05ab78c62bb
MD5 111c1c38f10198c62d4ee24d5c6ac7f4
BLAKE2b-256 eab823dbcb4b4bc07de0f6f48d9130a302f1ed7ef2863e300b24fcefb2c6cdaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fd5c376faa2cde40c9f8d4f54ed7fde8c4fbb8f79c9c1e40e87d77ded3583889
MD5 aa7e4ff812be206de8533cf6da8ff1bb
BLAKE2b-256 7af4753bd7dae8b959ddccd88eda2dfce7c44a2dd677798368714a3a3898cca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bfd292114ab2a7d3b108bb3bc464280f58fe32e448d8de8634e204b24d7332f4
MD5 7832d1c47e4ade9422165d20a6dda1c3
BLAKE2b-256 7f5e17edb1bcb6e503f5a4b4601f1b88f89f56bbf7c10f09858d3b9c2265ad40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.345-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.345-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 054c5ae72af881afe86370d6d9b04777bc8581b298ab3e4403e4d6c68dea6146
MD5 3c9fc72724c6077bc1638f873d827f73
BLAKE2b-256 496786797293f0bc74a95f67bb1db5b8b2ec8aa9634469fe43fc3a4688fd058f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73a0e9e7ec9496794fb55f9978a014bac25f47874696d5ccf53826aa272c88ec
MD5 b0d7ad82db4148ccae286d16d270259e
BLAKE2b-256 5ad79c5006d4dc2bced9907911c5ea61302d402f9fed59d1ec33f0416212828b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b81f0c64df05efd441404b22c3110253fcc8a6e269c64a21e015df6c811a3551
MD5 a3b31a4d8c7408adda28686a3a1ddbe3
BLAKE2b-256 8add3a458e1fb9a3e31c6c85d189de8076113b49b5f802ef09faf35d01e96fe6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c3e4073ae3d0859c38477e1b83d3eee218f5885e2c8f2183f79cce2432a4df50
MD5 fbd583792f84226dcde9cd625f09c91e
BLAKE2b-256 3cea93203460a5040d06863255df6dff495f3348d01aea7f39b65e966725d95f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.345-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.345-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53f217f2d223a6ac9f1ac0276a9022e30d2d203d6b78398577a51fd2a5d560e2
MD5 c71c64e2f47d06b6029af7e842822b5c
BLAKE2b-256 519bca8cbef8bae24a2fca21e391d100e9a1965791445237158cd20c4afac8e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1fc332ec1fca9988690886ef50ff5446ad0c69c8e8206fd748c0b45fed1fc33
MD5 283dcd54d80402f3e2ffd3aae7239f27
BLAKE2b-256 5aaf5f727db506f9468e07da04ebd0f500fa4793a8a4fec4c96c58ec1a974d18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fedffdfe02b31e2de18d201db5eccb19d163464354d213a559c9f6b7de85b0d8
MD5 802c71964fba9b34768b8bf86e8fd10e
BLAKE2b-256 7da6c99d43eab0b45cfbd1a667c91f339a6904d9dfca382319a96217b481d7d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fce4b1a57aef12f972a3a9a8ffd41194927be60742f89d96b2ebe0c70a742f40
MD5 31b5863133de00578a9964a02f98fe70
BLAKE2b-256 64967e76554d180c8af3615acf3a7399d566228065eb8b04353d32f01e5900ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.345-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.345-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0fba0416318402beaf6c23c7984b87d4bb071fb8a9e2850fd4a32c67ca149f4c
MD5 3a8ff533347d68c467776f89be92dbe6
BLAKE2b-256 dac4df2d3ac559fc0a24023ca273d9b924310de86ee37ce7a5012d56cb520964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cb4dbf68780d2940620d08755c2bfeca2377f11ce9a3a840799d80af9200d01
MD5 b12592acc307278a21a175fb88599d6c
BLAKE2b-256 224d2e2b0e236999328ddb2bca59b9223ca774f8769f14c645ae91ab89cb82d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21ae1f5a16febf140916e106bb6578bd78954be2bcfeb13272da3a271ebc9fe5
MD5 7d6283f067a7d0caa5785c35ed9779e5
BLAKE2b-256 3550b716e5eb3a7bb623773cd6c143964a7533a129f57bbf042b7765264c4a54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.345-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.345-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 afeddf8e411e60891457ee9d2b9db06afd03737b5f730eb2025e64103b6736ec
MD5 7c08bc06f1f34a9f687e9835580acae0
BLAKE2b-256 c2a7a73a09453a2eb452f06ee0b92bc09ea5de37ca73e3895f558f52e213ea3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.345-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.345-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1739a00b86bd4093eb34cb302b25a898bd648b182472a02dbd4b951695bb24b5
MD5 3574e1b8f9df12790fbe050490e15dfa
BLAKE2b-256 cb7d7c3e4bd9cdfb9279caca3ccbef037ebf1ecba076db959e6bad4a306ecf1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.345-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98a04198be2a63a9c0403dd812a599907cadf64830b75af1b506bb97fe4e2527
MD5 ba7750402534769073e7bcffe0c1a598
BLAKE2b-256 f9b5550fea19ee8572090e8d12bde5c3deb5e51d1b747ce8cb66bd1b053d37b7

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