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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.508-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.508-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.508-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c11759d47f6c1931c5c79803ae322d55037a6ea9743c7abccb91654bf9d90348
MD5 25e5c1d98f1a1e94e41a761f854ab382
BLAKE2b-256 f5cfbf4e162592a0dedb143eef1552aeef722b9ebda1e05b66a8078601f6a379

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a75d16d31cf5da0744c778f426370f946baafce5607c1c14967301be66330247
MD5 8e9b60c0824ae5a232d88a0dbbf171db
BLAKE2b-256 6d8b2e10594ba78e6097dc9e155031a8b1de52a14563a645cac618c644bd0ef3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.508-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.508-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c8987a9e5ea1c67eabb98654a87efcb0f0f23c788b91c74a4ece3b4c80eaa52
MD5 e29519a077b9d376dd3d1d62568149f6
BLAKE2b-256 c2a7d1e5d86b96ce413139438e11b37f2e4814d94573706df3a4cf62b5a6ee84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9e44d1f38e256275a7d1cd1c8351d19ea299c8b1c8bafe7c42c4c7901ab499d
MD5 44561f26cf4e5e61a1aef661fbf4a93e
BLAKE2b-256 e33414d9057b87d0b963499644ef63c8f3b8f85f71620c48ebffab1895f5242a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dea05a15a9b229005dfddefcaf03b9b704404a6ed1cd0237c2ccffc6db633b2a
MD5 f902f944ba936f43bdb2f417f386117a
BLAKE2b-256 a319484fa756a43c6f208af7762d2f4921514d5adc8eda063f488edf606b92b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 42cae16fa664c11eea778f61ceb3a62f97aac6f4b01282c71383450d4c46e30d
MD5 1836ab3e93f7fdd97eb8edd40ea0855c
BLAKE2b-256 d1676bebf1cd7a9cc9aec8496d75320da089fac4ab166cbcadfab65b86da1e3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.508-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.508-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 467e5e92138df6d90d38a9e156fb6945b1616345368d8642d94a5d62b755ea42
MD5 a35f6ef61f738637bb66228f03962819
BLAKE2b-256 1b0bdb7251db66775a2cc058a6b71dada4567a2ca7dbe3478513c8e5bed70388

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d8e7a7c1b18338ac74f851fc83ba950eb7837f87cd2a047701181227f4e7c80
MD5 e67033a06f67062357b23748fefd90db
BLAKE2b-256 8a72388bffcbd64ed4ca98c7c8847a4ef3ce8e52710bf6b28d2da1e7ad6d2ff4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 77b439f981fd0c4492bd054405d988259190ee1852be774de1ab28b7f00e00f1
MD5 50ae60568131c6e8f360cc57acc4fc80
BLAKE2b-256 f851ec41842f33702bfb8d5bc2d4fa3513f5e43a892d415544dd19e98aaa956f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c60980538b5c9430025b12e352b3a7442124218194ee40d19ea9e9b586e0e1a3
MD5 35d5b84b5120786655745595fefe5c88
BLAKE2b-256 c92f6aad4021fd7a9f3ceb83468850144703e623185892d56672c152c7d1022d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.508-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.508-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18b3ec1cd5e2f23871e5bf64607f58956369600f011dfcd23ccb941ca54e4f14
MD5 f31002f3e8ad78b4b8011e6a5672b505
BLAKE2b-256 6c06e833294645027eb5585b9fc17d1aa658705c60ea8945936222c4a1f630cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eeb2472ff3889dee27e099d76a9792fd2b3dfe27ed4097591b27823adc8d279b
MD5 a65f404e24f4cc743fbb965a79f389db
BLAKE2b-256 acbb718fc3573d7f06bbd82432bbe7e40ebd5354eb5b5cfd6a2592b86c88ee4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a5b457b2be5500bdef8cb2dd5e5a63f7f47baa31f7ce453e142834bdfd19c8f1
MD5 4e6ba4e0fcdf6b3ee621fffeb2d10ab1
BLAKE2b-256 50371b85c08d2a43ca439801b5af4e07bcae4d1d592a400c3994b06d6d1d8e0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b4ed71791ea2819acc400064ef265914f74e270afda5299625e467c843565ae0
MD5 1445039abd11d8e38ffd38661eb68860
BLAKE2b-256 9310ed36511194194925c72cc774e26c8624f759e54c48490bc31fa112f0d746

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.508-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.508-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9416934e178003b10a4d6f158dcec07c9ca7f7009c5aa35855bcf89dd49664e4
MD5 fc721a112a89600f50a2a7099f6043a0
BLAKE2b-256 4e87431cb1b0f3908bdcd01c7e36bc65ae5488157eb2fab31b0d8f38c4052e22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 374363dc15cef05594897c82952ca1de0d15feaeed6863a1a4f0d9807f558113
MD5 047f853d10dcf3eb682ef902c089befc
BLAKE2b-256 2e0fb184b57cc5c659b772e29906fa1bd998ea0868a0f215f1b1ca079c2abfb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 04d8c4669af3645506cdbfec6a2394f30173421283aa0a83b78b7d2f182bc93e
MD5 479a06857f79c3e1f7378dffe3444ea3
BLAKE2b-256 440d1e97a6a661f86e61544d82137ed306373d4189e9cbc0e743b794881142f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.508-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.508-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3f29534b85a34111835fb91548393c2ed620a60a71cc5eeb5df3ab1966f7d9f7
MD5 c2c913ff9b34cfbe469b0e0117cf9349
BLAKE2b-256 a63d6612f20c84f27723591291d7518fe8338703d11996693a75cfc7c4780221

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.508-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.508-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cc061029d950de61cfce1099a3c8f377f6e969556d10894e8461cdc4a9405f4
MD5 b27a84964eb11a1d99d15db1ab3181f4
BLAKE2b-256 fb0128221297e530a5b52abf10a7bb71bd543bb30cf545a5fd93e31381d41a34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.508-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddce0a97e738e7b7aaedd11c6eaea2262f9b02994828dfe94d1c81555e44cc59
MD5 844a7ea7fc2e12fc7ce0251503f436da
BLAKE2b-256 41cb9a97b353091f96641cc7d3b20fc2c89180b6f24caa6343b3988469c60fb1

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