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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.252-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.252-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.252-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4d1b4c40515f38e9a05d5b0069a01ad21c6a06865564e9386e5ca5553fdf9a47
MD5 c054cd49ad95462eb0fa0f41ae2bfc41
BLAKE2b-256 8016b047d661a84c079db1228643a20de5735e0ec9effd634251a6c6c0f055cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 311048fa0c799badaee7d2605a8c1e8d08979f1ef631183e503dc6ef2dae563a
MD5 cf0ea1f07370bb9e0823039eaa6e902d
BLAKE2b-256 7ad42080103165efe504f631e9c04f06486316588487073d34556a13588879fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.252-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.252-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6767d1e70befd143a103aae97b2685c17162d9231772f028e6ad99604aa174ff
MD5 766b1eefecda8bb9f101cb6d95e09436
BLAKE2b-256 aa212d81322732bd4bb20213b88a26f96e9d9c7a4349ce699dec53397057b84c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ad8f76641a5346641bff4911b4f0184c0ff59d5cd0a63db9e0b82c09553e422
MD5 a34338277916ef639f1f582a2cf98145
BLAKE2b-256 ed2c3b027db40a73de7044080770613adc09d372b96ce5c0525fffe1f228ac54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 753f8e1d3da4c510fadcc673a30ef082ba6a121f0779d7d80e2fe9c2433cb096
MD5 680b5a903ec416b30e5e546433dbe28d
BLAKE2b-256 c0c14261b13594ca13f724d62221731f2eb0922bf62830471d98578cb7060772

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 08e4b644eb674a550c89a161d418fa7edfd9de2b6d6acd9ce7ee2876757ec7ed
MD5 744e379e969a99399e459cb2a6a0d0f5
BLAKE2b-256 faa66971cfea72963ae3aa0ab9dd152f5688686fd16e7dcdde54c3d6676c41cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.252-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.252-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f8f20eb453cf63a4fc9d30334ccd83caf5c61be096455d6077924b350da6845
MD5 afb55f942026577ab08765edddfa06cc
BLAKE2b-256 0e457f4bae4acb648b1bc4685a90a86fc7f2cba59728c9a6c36ad8b61b7295cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ef48eb6ffe1cc29223eada6044aaccb55377843c87a862290858b65de9c23c9
MD5 2cbcffe9534ba3a3602a7af3b763e8bc
BLAKE2b-256 3531aa05e0fdb0c5fc2a76df69c0f780ae824995ead32500d3ed36669d0a42b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 427c4b9244482d293eb288de77ec7b53adedefa7ec0d17b03290835c19eb000f
MD5 d9506c7440a83fc88fd1d8c73582e81e
BLAKE2b-256 6148a0aa4e79cd6226130713df69da6bde48076102eb6ef0dd1e03a28af6d9d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7e5c79d006b24bb64f53cd1218ce935dbc61b9b9bb093e73d7e17804a56351fd
MD5 b713aed47f3c7487d162a5b268d752c9
BLAKE2b-256 6ff799064249b927554300ad8f1871eba2ddb87b1da902468ad773e0034bd0c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.252-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.252-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a296258fff1b1fbbc35260dab8c63e550e9e7d79d91527841b3d255f41813e1
MD5 a89f93135a01a83f8e034f33b524cd8e
BLAKE2b-256 981c90f4cbdf73ac77bdac442aadd3b1e770ef434c6cb97410f2327b4239a0a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f492e17c2ac95b231fd0c42649e07240cb6d09ed44cc117a74e2ff2bf0d59e55
MD5 30c88a603755d4a02fe44702f52d2acd
BLAKE2b-256 65cc64822ed427a24f68b0c1be8b759b4ddc05e1d7f0929cf4de421972ea5bce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b95973cb496c62250d838b8222e58864977bec8cd7d543d65a9c9954971726a2
MD5 54e746ad60605749cbdae1c4a9acb320
BLAKE2b-256 3a74e9d56cb535c6328c3ee9937dba8464cd989043b710dbbe03019a4a587acb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 68fd047befc5f683417f4fa0a6f83f04db2ab0cdce25429bda4d63aea5fc569b
MD5 fce79577ca92071b0947b4a842358b8e
BLAKE2b-256 0dbe714c566276343e76bb73bcce95f52a4c56a4ed2f254e4552d88b571de959

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.252-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.252-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14ac07ec1bee314e96648fec6d0dc98912acada89a22733b0e228747f64c68de
MD5 3d308359f1898c132b1e083959c33a24
BLAKE2b-256 65159453dc09eb7f98297d9e8928af42cd2f58560190628a5d96afd07faa2490

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 816c1023eb1cdf9d7816bd696165d8cb9e2fadb112e8c73053509c4860cd765f
MD5 8935765854d7b096dce53560c9b9b476
BLAKE2b-256 f819b859cf3917bfd6d627e6b3d410e26be125326caf5053f1594f7eae46c3e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e6e43e2215634a40ee2b39176de4449396fc0b94bc0fa627f98d4740e3a7217b
MD5 3d8e7561a1bbed77905a68aae74508fc
BLAKE2b-256 4dc22cebc626fbc89f018a731e2bfa712eb11b564ec44cdf52614bfd5217132c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.252-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.252-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c6700c228a8651ba4d53fbde5bf4c5481ea79f587500157a461f658138fca66e
MD5 adf82c6ab7fc02f401594192b69a3702
BLAKE2b-256 2bfe76ad579dc9afb74a121703f8970677ee1c38fce906b91134ba9d1943547a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.252-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.252-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f01dd7d74ebd0cd71746ff3e3da2ce1d99113275dc8aca5dcb5c5324a577dd3e
MD5 6bb0c76acee2c841cba0228dc0961a78
BLAKE2b-256 ea99c7cede7d2a3c26dd3731f937f07741e3b63d7bd7503286777b32efce8a75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.252-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c159d69f8ce03a2644274499ca447f69485850b47c00c4cdebc39198d0d4242e
MD5 cb90e2e7a6afb9cde7d812d6efd33089
BLAKE2b-256 2311ddf1a8718438af8ab7277b2db85720c37161ab3b9427111d4ffa4a4fa9c2

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