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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.757-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.757-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.757-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 76040370e7fafb2cfc8848efa3ef1a722bbf5a60a42f1a5e630bc587f64ce089
MD5 1bbdbc980ff0b2e5bd82d1520d2753f3
BLAKE2b-256 8e66bbe71b695aa26354b1e66f293e926969f04f5f57e286ef2ed90dcdc92434

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b8d724649437244bfa26863029a293b27f819a6df19b0cc77becd8010b24e6de
MD5 d40e2acf5ab6cd9542e7ee5c81200dcb
BLAKE2b-256 f00523802d4c5957de08a9d87f60aeba9e486458844b5dc1ebe9abe7c2c9b8fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.757-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.757-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4299d5fece83d708a715c763e49b3f667f81d51d970a383c691e7c50ebaa89ae
MD5 7cdb869b5d368aa69020a42fa1306b56
BLAKE2b-256 bb530ea10caa510b3267b028f5b8538f632eaf32c6eff5e411bc496712125230

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 453bad11f1b63856080168ee01b8607f004be63dd190317d1fcf65fe0d4f5f48
MD5 4382887aff318da4c5a9df6448d01eb5
BLAKE2b-256 b8963c375a0a96f220c0bdb92a80b5ee7177f37ebcc081a4c42376939abb648b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 28b5688295a971495775f010065e0ee12c0abb9d91452db039eb99818567f8a1
MD5 7ec5fc86e9a2cea5b183a47e3f07ab2d
BLAKE2b-256 2cb049dc25652cce5550338b29539900bca8091c0d49cdcf975a89953acfef5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6a7cfef8868d56a2b89332349356eba0f747b182fe1d84e5f0fec37316c580a0
MD5 3c9fed1d7ec956fa60bd904e9eb50437
BLAKE2b-256 ed97bc895181d41c28761580ff94d57b996738385f199507390157ae1e626fa8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.757-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.757-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04ee77321d86cc01f337f4712a83f3c7d2302766ceafcad6a013e229d1885c4c
MD5 6590d5cefa214cb41eb1e805d4788fcb
BLAKE2b-256 da7e92270d09a905ff587008d25d1df445bc0d1e5ce9f0a12a7f1da8ba02a026

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79f52bbe3deda65e736dedb54676347f3016c5fd5d9c4196b0e83c30d20dd9e7
MD5 6d50adf12214edb771055fe88209005d
BLAKE2b-256 09078acb216beeae1dcf74cddaa8f2c9a6c2342e75da8a9328c7b56b2197914d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3e73551bfb2f4449309ea1e2500d14031010baeca2f99562e22dbd2acadfd982
MD5 feeb915d379e803792a7aeb29967cdec
BLAKE2b-256 5e485b99cc67f87b87ca3c2439be2fae01d857c7e4f8bd876ae30bb8992333cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0625a2201e530485466cf45ab6f873e529d136366b285b5b7206b7ebecc7901e
MD5 76a162ce9cf3dc42e501d7da0c8cc228
BLAKE2b-256 eb7f41ff1d70d4f623665046bb5c1f74e22e74b97e7153d1aef04eb64d358ea1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.757-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.757-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8f9027972e3dec474ba266d769039c24466c9e7e57f48f3b74a91e7f9baed58f
MD5 bbc22a81e94cfbc35cb9c43bbc26254e
BLAKE2b-256 fb9c1da65dddc0dc7c0dc5bd5c1205620e68387d2b39fd3313b5cc1403d4a02c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7f6b2d564e042d39f6dcf45cd667e6b37dd685c19c307695c65837d8743ad6a
MD5 c2a10ec3d9f6ae1ddbe4808ee742da3e
BLAKE2b-256 b95ecda5e0225cb3eeb4706eaedc5c0977376b98753474af1c8f501ad59b4544

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2af48b163885d210acca95fd01af6e0c4eb73e324e4a275f624f9686e4d4fa0f
MD5 de0dc6963bf5245b9137f05550a0add0
BLAKE2b-256 040c7cb4db2298956bbcb3384335350a08e873d9de7078124f7bccebf1e2e259

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8418733614ee43ccb1a5b9d195c4718ea93e70b219d1fcfa3121f3dd74026854
MD5 d9f20641bb268412be988786dd8a0d4a
BLAKE2b-256 ca7bdd83ea74594f037e7784694509a3bf21ac84584a68ef777931481cec0b1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.757-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.757-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 284b4be210121d165d41f3c4825430088a211c23adcb19dcb6ffc07a20116c9a
MD5 1cdbad61a233254fa5de57f496fbfbe1
BLAKE2b-256 e5e4d6f9f97b697b65c037d4c893c5bc1bed5549f499a895b6c5d60ac95cc3ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b823d649531fb02172a04c207fc8b3d9f946c20a076b45434d22b5b422bf1b8
MD5 d9ffc17b2559c9c96de9dbb510007323
BLAKE2b-256 db7bd98722771be1742108f15b3989124177f097e0141655dd17a26f1df9844a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 72887e2cb2dd1e8c5464a2955c56bba6ab26b5c12e940e4c6c16928f87534ca3
MD5 08e0c331923f1fa074cc755e8e6a8829
BLAKE2b-256 cff55f079692ad01415b23ce8fd78b1a33392b8e0a81c0978352fb8329265e51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.757-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.757-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1b6bd765025cd3f286885f5a4074e47241f1e0a6b5e7e1a90891d4da7a81e761
MD5 018c7366fb3c96eaa828927f82d0a00c
BLAKE2b-256 1c444cf466abbef8c100cb7d781398774e5c0ebe3de696cf8ab9bd6058278a33

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.757-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.757-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0ed3d68c7b691563e4b759dcfa0e200041211e8056ff1c1d6c135ecc347ba8c
MD5 5187cd3f5e3e560b4da6074b55d59916
BLAKE2b-256 14f29e03a0aaa78c80884cea66349b5da953e290bc37bb34de86f9980e5b1f9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.757-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4df34c9e7ae859bae25f89859d6d79dbb8d025d4a6339089e56f644f92b51ad
MD5 0807de6595fe0d264970ae8a1998a0f7
BLAKE2b-256 926f5d0ec898e2baf2884753c536ff9948c6e553c5ac35a3d47f95df1a2b9abd

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