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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.792-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.792-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.792-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.792-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b961abab408c5dba37c1aead16eeedf6f757a664fcf64fd42c7d3b3110a7662b
MD5 efa64ca86472d16cfb4f9fc3c4a87bd6
BLAKE2b-256 70d06f2916616f9977188e33cba67c6af6c4b2cc35e60985896e9643aa64ba87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-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.792-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3f1d8bb1d4e457955315ddd5e209b0120ee5ad195cb7beb19275ddd3ca2effc7
MD5 1269049da79c68c39a7f6091a2515c3d
BLAKE2b-256 9fd42b64b1c7b3a67eba603351640aa9b0f63036d79774b1491f5c49d8d4744c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.792-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.792-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9de6795820cf1015b06f743144773664f175db5ce450c89a996c75ec113c430a
MD5 86a8d0b009103c00fee30515a11efb6b
BLAKE2b-256 b08d985657044623f4a0046c1670d6f1553a0631aac8cd2b8e525ad087e4e252

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55091f307536dd6333e2db43e2c9ae1523288278e73e78f02d9ca056fdf414e3
MD5 2c02830a15b837dcccc744e9ffa14c4f
BLAKE2b-256 2d649583584c0a847ece5f774d0f971b7d46539f36fe8ed1472bba7507506f5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f985aaa4d89635c6d02b63700f048fdac13dc4dc30d9aa652b82c4296395552f
MD5 ef4a5cacadd5668bc03372a3b5b5e687
BLAKE2b-256 9b129ab961bdd2a311b61107d1b622037e39c003fe31c2427415c4788de76742

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-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.792-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e0282226ad58b1d2c5f83dce0c1ede96f9b3f38896432bd52aa3969458acd717
MD5 c7f8aa43001cf78c499a144a1534eb1b
BLAKE2b-256 9e6b176a5e333798510fbabd761a170a2f91d3baed6c765c602bacf603334146

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.792-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.792-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff712a132f594531e3a085b5b282e87b69057d66ee5d50bd229e53c510a57cf9
MD5 b6c49f2c92283a9ae7ad6cd7d97fe473
BLAKE2b-256 370becec3d7ff9705d703b9436613c2ac43f587fcef36163b63ca54fec386a32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8b85ef28ed225f05e404ae92e1d950a4b651a6900bff483045537ce4dd36ff0
MD5 1783278bd10834b5eceb50b7e20f20b3
BLAKE2b-256 86d13a2db548790abcaf6b30363f9eb833b08c301be70a64f1381986d1117dd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6dd1760929133e4fe19030c4af1b3e6d45c265c21776f33bfa23aef71e2f72d2
MD5 9df2c27db6d2e6f8bce1a78ad718c08d
BLAKE2b-256 1bcf7d02e079a419beac858f3561592c29092805b9f962c42a69bb99624e8d87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.792-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 60cd865d0bf373f553f8f7c14bd1ce38c06fb8002923a25f8e17dadc5ad24d8d
MD5 c955bd75525d4b9bc37841482a222565
BLAKE2b-256 083fb3d6ed65f74248a42f64444968a0c01f2a3ac069188db0671105787f2b23

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.792-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.792-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a973d343c1cc865081386845e936b9eed7e6a0ec230f47339dd6bd8358f42855
MD5 0f38237da2ebb39f9f108942008fef02
BLAKE2b-256 6daa717a14ab1817ab5c17edfb0794de09f016faf5cd146644741f9b48212f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84c95b6f6f63ac74986238da0aa8ec28f64ba462b8748657019dd9aa75b59b68
MD5 82b6cebf66c3746a2bc1915dded8c351
BLAKE2b-256 53bbf8a112a5da448e87660af516d806b032d8faad413874f523fa60b75e9f0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-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.792-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f6e445b54f1411305b7cfaf67a82c33c2b4eebadded776d1b0851ce2b3f5dc68
MD5 32b85dc3f40197468eaaafeafdb7208b
BLAKE2b-256 3ac90bc8d839fcc337f4dd142412da2eefce944d81b1d261b0abe7c967e08c5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-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.792-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a6965e56df3a68ea35a5a65fbbebe6bdb5c3b4066223119b652146cc16564640
MD5 3ccee3714ace7d6bac056d43aa658d1c
BLAKE2b-256 4243114ba36c8b5e010fb50e51bc7c5810d96ea1602c94f173c2b47ac003c1b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.792-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.792-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6cda1d0f56c80b40d140139d8456d23fc82091866e8fce58ce22347096f4a332
MD5 8f70f932c84cf6ea2e8c5d121d982f65
BLAKE2b-256 5d917e187bdd801edb05135818d4a2124b7d1ffdd3d13deb2e039cf42162233a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a3bcb542759e53af3c3cddd6cf7092ce3d300cbcb356eb74e39ced628a76385
MD5 7e2664fb8140031c5301efa858c507c7
BLAKE2b-256 c73824dca3cd352a2a32bf092d9fce2d3f1ce5391e64ab8be3c673bb54d1b654

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-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.792-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 817cbc277a8160616eac3d6254638a6683b0a1ab8afaeeffbfbb262d11b0b496
MD5 da9f5c309323448a97a2819bdda19e64
BLAKE2b-256 e5e792ec336edcd1e9e07c0d22d77f351a6c44001b475bb6bbe6720d22857df9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.792-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.792-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8b1a6b06c61c8ccea73be03b8ff6165cd0fba25ca83ae0d4a0ab3f3a11949444
MD5 3ad7b8c8286f7b7f0a478d9f01822c64
BLAKE2b-256 95432ccc8650c32e63b5e4eef18ba90a56958c3a2db65f378536ffe4ff62ef42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.792-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.792-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d62bd47935427a60906221c51f4c2388887583561dafceb9dbda1531905cf77
MD5 41031453167842baeec077cde716d0f8
BLAKE2b-256 aeeffac43c30a8cd2157ced7ae2c813790e3b0be6a642038d54ab628f30cfc77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.792-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6aa90e5b668b7edaeef968f182311234d73a9a8ae0f818afdd92f735d6cce8de
MD5 49a2c273b532b87c959d5b79d234c4ea
BLAKE2b-256 0fefa0e0ac2f9366c227bf96eda1c590013dcb7e72b03688cbed234b91624e3c

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