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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.314-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.314-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.314-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 40a987db1fedf31e90628e0d06d527a4cc8fdabd85eb163b73b7652547d8ed6c
MD5 6d6251b3a73ab5454d0f8768096d7936
BLAKE2b-256 b589e486b8159d9224133f104e39c4226a2899cbb4d77caec59f4516684cdcc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5fab31da55b32d296b16df30f32f668568d907adb1b5da9ac055f54791d75737
MD5 d3cf620a28cade0862567f40da967907
BLAKE2b-256 49dbbf08649565ab4084695bf1af12b4fe72afbb8c71e6fc80da75229f18d4a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.314-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.314-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d00b42772b35704b5469dc4a8b9fec7b9f6ecc28d285b35b2fad1fd965009491
MD5 f7bf24f721827f350508e47e2d7d1a26
BLAKE2b-256 1573b961b3763f0fdb2069146623aef8eebebe9f00a7d943ecca6b2cb5843fcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ba4029546d392a72bf3beb27545235c7367e5e163770f7a293d75ee903fb420
MD5 4272eecb6b265fed296c06eab38a6b62
BLAKE2b-256 b47d29cc92c9ca3c4bd607f2a43d88ea3f2623fda6ac0b5cadd18fc387af3478

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 062a6a280b2eac31c5757bdf4e1c78721864d56e995587ccf6988be808633613
MD5 3239a1b9699d2085331409403c23d6e9
BLAKE2b-256 77eea6cc68048d537ed1c17a06710c7a8d8dec9335a7688aba390f7a037391ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 edc8f441a0c29aa488fb80f0580d6dac7f979b3cb2e870ee3601568692219e3f
MD5 ff6bf33688af64b61592bd459db2ba19
BLAKE2b-256 23ee262365e3d4194035c4ce054dd3632c7dd4fe636216924ed60a3f92feac8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.314-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.314-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff3cc5e801c3ac8e533e8c09c86b4290a47199cdd69a22b660ab5c5606bfe206
MD5 790c6b80945d48943042b12d23d140e1
BLAKE2b-256 a51dbf27d9b6fc92851078831bb5aed1ee17ff215e60a9944f430b731f7b0c37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f14e6fa64a17e50e5b5da64bbf66841c19b35d6d2a92494ba17ef1ab0d33784e
MD5 2b789cf05e6e59036004e27e3bb714a2
BLAKE2b-256 ec7c2a2fd85ab8d9636ee0847024e0be4dc099bc0df85727be98f2cefe570c23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f61dd6f232d5b5377ceee6a4d4076be22b934a9de7e5431ad7971a34e32fe7e
MD5 90a46afc26f02425ba1c5a00883adc69
BLAKE2b-256 ac53d19fd8deb36d99e2cb7f75d7ff63dca968d426cb90309f7b80e04994454d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 24b9480d9026b76a1bd94a480c9c6b27c38f7ffb8fc4b0887e93e13c906b6dfd
MD5 0d051c14e056fd7c3e6f6d4bd2692c0a
BLAKE2b-256 4dd6b5f9e014dcba64a7a7bb259dc2c8e026a4e86b53911b25ea3bd2657f8b7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.314-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.314-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b2520cc0f6b699cc60aeb79210a17b8dcd2e53ce9bfa2f010818995ae6a6e7a
MD5 76b59cd7e61937badc0b094771ccddab
BLAKE2b-256 569bd93c772249ad379d1c11862e54afe4140c3065f87280a7d6ad3cdef1cc57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c40c0dc74617ec52b50265a573cf9b773e47dc5a2bd0e3399b208c493b55d165
MD5 707c9b538d965f265d764ba03b107847
BLAKE2b-256 a0d9b752f1ba120761ac13fc56f7c9d9d7c7e8b237a8b2f9b76ee9086b46522b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c8ee0b0ee1e3cf3f14372a2742229df318980ee7be7313b6c0295daa6da63c15
MD5 f9db78e1346bfb60a9128ea9b56b95e8
BLAKE2b-256 7c61530b0a5378b36904269d73385fcbc7f7e43817119119b25e9558efea21cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 781fdfc90f5dcb084cd7ff7cc80214df77e2fc8132cf2bc8d54c6a75b68a1769
MD5 d27c6ef96959c9b7b96e2cece0846068
BLAKE2b-256 d097f57d48ceb942d387b7b266deec5cf595345e3a89d85bbe304774086c43a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.314-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.314-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db9ee550cb22cfd6231289cb39ec9b7c26fde7f1addaa3a89247255773973dbf
MD5 57a0abeb0e215da18a1b60414eef6940
BLAKE2b-256 8003e9cda5f23d10bf28d242a20c44aafd54aa3f2c16eda3aab792444f1df9a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4876bf6b65bfa884d0d8f01033606f1fa4b519da7befe5919107dc6fd862d45d
MD5 610739e968ab6ce5157dfa91ee0079e7
BLAKE2b-256 53cbe443f70af518153ff6cfa8a5cbb4fa9aadc559b2408e7dd8a368251926fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bc1add27dd537a328a8407490014a9d8dbb4a857e6699818bcc22ed4e9eb1ae1
MD5 450857018692ba58a19ce002c7fd1de1
BLAKE2b-256 7704bf72b0fd6f43fc9cabbba47267b7e6898909230c68d3ea498fb6f406fae0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.314-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.314-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 531da760139068ef9203156c5bc6d1545b86461e7475491fa3dd9611e1e22c09
MD5 4e35994e7bdcc799c3d3f0e891467952
BLAKE2b-256 3958adb9691148debbc805b09ffeb49d8979210dfcd02b9cef98dccdf24b6da9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.314-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.314-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d707111a247b88f6adc12db68f5c07d61ac9038eff1812b2e3ab9f1d4859b6dd
MD5 8b4739518f9d4bbfdb8c91567090c3c8
BLAKE2b-256 c17aca7fdda69060a4fdbad62b2c504b3a088fb835b0b206eb0de85731d80fa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.314-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e5fd258bc3a24d339b81dc95019ca210305d8229b62ba2019ebfa45d89a5d8e
MD5 e92fbf7c8d693168ebc252b1a1cf45ad
BLAKE2b-256 59122ad2ba8f27af8edcd6a6fc612e7d70de8fc35fd9c78ddc0f34d3bebc91cf

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