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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.19-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.19-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.19-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.19-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.19-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.19-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 55782cd35eb4c5485b7cb0524ea2e867f64f20a8c006603dc142bf1e655946fb
MD5 172f31b8c401d84f841eec28af5cab0d
BLAKE2b-256 27a3699720c7c5b87652dfdc87549330a2321196fed13419f6f22ba2a8919310

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4b40a461787831913c76ecb5bf315508f9b6368ff8bb7eb4bead968ee884949c
MD5 465188cb8656ddb1bb37ed52d39a8b92
BLAKE2b-256 449a6cc621848784c0f4adab016cbe5b0843779a7b76811561cae143c364e2d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.19-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.19-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87260d21f02af698134d1119d7e70e0c565f59777fe2d0472a6d8bc33d9311d8
MD5 652cb027e04c13276f68733bf39fd155
BLAKE2b-256 0f4e8e3ed1a717fd7179e72e3267c887ae0d3b2876d95588cd5f743c5e4ff442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29374fbc6c7de4c66911761f5c57cb0ad13ef9e488aa2555569e7d299d1be9f9
MD5 04aea7640814a1689b934b218bd9d831
BLAKE2b-256 98b6c21aabd2ae9492de9c631f6b68e63877850cb27c618b24abe70caa95c9e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b02cb611025dfaa1b0193aa998e89b5739bddc84013c64355c3e6014a8c887ec
MD5 9535b70b2dc4162dc80dba77665cdb82
BLAKE2b-256 4f792b076b0fc991cce6500abd80819f843be1e6e1acee019c0cfdcb748ef22f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9eb19edb37fe883ca90e419312d4497d302a5c91891c62655db19b3ca7e5a83f
MD5 68d4f8b729c7c09360d62fe2d770be14
BLAKE2b-256 1d882b3e450b14f6013430702c1f7f5fe9d4226c8aa13947cde0ea70abe33268

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.19-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.19-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3875f08ed2633289dc798af7fe4e1320f03eb62a9d5d85f6f0b96c64b39e81c2
MD5 f881e0a3126f18fe22b0812fda8f2ea3
BLAKE2b-256 69e4c2b8514257caccd3a9a949c17234b0adb951095c99dbc73f43e2e3879e2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b273b68cfa736796c963c734a892034a5153531626443a30bb4ffb7ea3e4f7b
MD5 f80241b50961fba5913cad8edd26e389
BLAKE2b-256 28075863d923593e2a53c79c32ca2a0e770a14cc99b182399675fb4f1800261f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c71b4943b582dc3392f2b60ca7f7c6edc9c922ec1424f8d61e4f1e3b73ebcaa3
MD5 9ef31163f786aa2c578a9e0ec73fca0a
BLAKE2b-256 f5b931e4a3dc11b8c31542378c7cf458fe9fd4b6fdbb0a677835b8653ff410cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a14143613a8e319fc8f60de23e05a3a9c7338e679c1d04b0d481ca8f0f2aa0f4
MD5 ab61cc8b69da16ff502c29b645d57856
BLAKE2b-256 8b5c515969e5ae0516219c8422805776a08b7d49dc0b1d304b33b37bd697870a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.19-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.19-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffa62bdc0fbb49c04269ab13231d4f7acbff33e13d2dd371ec229503447b8718
MD5 288d3ef1f342f80215d9c9d1c39d37af
BLAKE2b-256 9d340f1024d1ede3d2f0381ec8967e23f36152f98522fb873b397100f2665b44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a90af26ab56a3ca334c68e979d0185e1bb1daed3fb0836e364cfd1f0b76a6f4
MD5 d03f6330c5cac790a2463f83e593bf4a
BLAKE2b-256 6e9d09364122484cc2cc53b8aea6af3e6e7b1f96b202415481fd143aaeb2f72d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 db75d54e5979e8396d5f0c4266960bf673cf295ac36464ddc17ba59569fbb2e3
MD5 4e9a3e7b50e2e30621d68118176b7901
BLAKE2b-256 e12f2042275d0e40d32a671ddc3f09221ab6fb1db999897f7450ef0c713bfb5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2985b002d818276597ab0ab16076b2f35e4ee9e5a1f0d7a67fd3f73e7d9a9b63
MD5 ba7790e702ae7d31f056bb794b6f54a5
BLAKE2b-256 79fe7a20d05d29de45e80d73f4fdcff398ab92b149f8f1755526761f92a65f66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.19-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.19-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb0b274a2d024fc0e4ae1801343d5382ea5819db84ca1aa117020056d57ab7bb
MD5 2860b2ef7e143745cf99bc3a7894c198
BLAKE2b-256 e28c0e8616f914074ee0ca684b6ada41f39a57dd5ca5166238db856e3021b038

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.19-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbb8af916ce1633e7214735bd62715fbef6adf2b26486929aff18fc1516618b3
MD5 9974f6c4630e350eeab2713df01b0d26
BLAKE2b-256 30a1752611bfc2261d17cb34f1c6212f0816bab916563caeec025cf267527eab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 81fde14c9d0147c1dd5bce6e453a054216ce769dc271f5fec41986daaef30d8e
MD5 c6a22f67e0ad1024f451c9b48fdc54fc
BLAKE2b-256 3fe3d2ff608d6f16ffa92bf7a9ab2ef0b3c9b73d48c7b58db9e2861b8e5e17ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.19-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.19-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0ca75580aa4f2a128a78dd3dd70b6fe922c5875f56e6c8e226c764ed00ce04f8
MD5 ad72f21e6425ba2b953ac0699ccc3a3d
BLAKE2b-256 e5d3d0e10f2a4635ce634126d70c31d1d81cec297b8b5170d55199028a57867b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.19-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.19-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc2df3de18563d8afac93edfbe23ddba13926b482d481740e05b870c59edd649
MD5 09f997955030909414e91f5a3a6caad1
BLAKE2b-256 f0d7f60f6d0d3ecbfd660b6a6b3e4f098b18a8cce6b4296a88ec79ee299e4451

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.19-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e2d6457371c3a5c7198cf7d77c81b2df13073dc03d88479fa671f6d4eaff9b7
MD5 44fd2ee3d58f871cb945b68be9f71545
BLAKE2b-256 b77cb5ffbac13065fef5443ec983d58a29e2011813a455876c6ace6cf7749cfa

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