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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.570-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.570-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.570-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 174e47ee92dc111bdd198bb713147e88db6c0053ee5239b1687db4f47626295f
MD5 024bc609f6a7dad0b8563bd8bcdf7569
BLAKE2b-256 f3036441df0c6b164090744987091b74554d8ee4edc201f9a9064fc5fa39e5f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2cd15eb3c643d19a13d2807100e037804003b486685b91daf2933204f1b7f95d
MD5 05b8483c8292f357ef1e2c4c9b28256f
BLAKE2b-256 2120c7f9a9f1864aca9b75d30e252e3ef1b5f71ca5e1b05a2dea822b11f0155b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.570-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.570-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69de040893b0bf04ad66687737e8361866af4ee8378610aa2bfc09edd4d8c597
MD5 e16c78ef739032da69c217c3622dc70c
BLAKE2b-256 82ec94b6b637c0ea8f72fd0bd6d58da8bd8391a298ad4aafc6011a2a84719cff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a624797ddb9d8ef7ea4322a202a4fed3306f9a8abaa117a230fa4a6c691e92a
MD5 1f68cf7bf45551a991622ea0baa24983
BLAKE2b-256 57f94f588c14eacb547b489fd70f95d5ab3996ad487341eccb21abf9c8efe0a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 79c38ce31baf765a77f611303a2de7bed2e7dabedd4f3c9ece33aa9f7012e3b7
MD5 bf6d9037c6bf3ee5c9f574cf63e621e5
BLAKE2b-256 dae2919d3cbd850027f63b22e7ff4c1c9e30969961f0f563510953831fe4792c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 11fa078d9dc868f4dab78bcd13ed5c0cc06e3f2fb4e44f96726bfc1627f8b12a
MD5 a4a0a1ed16a3a22a85cd4574b45e7c56
BLAKE2b-256 f440d34800e8b0899a64145a8dea41737ec8bea301e8e740b28d981518834ccd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.570-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.570-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad4681b862b698569b2ddbee497fbd79898d9fe87cfe796cf440d645f69ecf7d
MD5 a80a8a11ab50f5cb0507784a7d3e2c0d
BLAKE2b-256 a5a6078a48bdc0ace01ad8e0f8f40b923df6d1aa4e6db8268678184bc03ff702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff3e04ab8ed4e7ce16e5ea65e2a06dda21e4a711f513f8079e064976cf82303a
MD5 fd6cdcb77f81eb9d7480dfdd117c356c
BLAKE2b-256 78572bbeded682496a6ee2c03143b8e353d9a03c6cd564b3728cdbd4c2890ada

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 43e5792896642df2d3aa981863e6feb5aeff3c05b5c0addbffe1bd9263bd9ae4
MD5 d173d5e25d9ff0382593224c2f37939a
BLAKE2b-256 9885306aad470f5f903483d611c1031b96e3d425f72200fa24b9e40427b5b9cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 07844df48f21b048dd4ab5e237a5c803ea4cc30612a6e00513dc575933e7111a
MD5 a7625103edbdeb43ab619a19ebb2c607
BLAKE2b-256 dacaf6a62607d9127bc5f6e6695ae99055b9936635fc324180b32ebfcb432d29

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.570-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.570-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c30ef39b063ee78bd74bda26ef4f446f28da49087f0e6fda7c45a2a59aee76f3
MD5 15722fed11f92ff6654820895d099286
BLAKE2b-256 642854a22ce23b57296a2c48a0bc5c5b043f535334b6aaa471df3d554ed17445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d87d526923b87a6179b726113de16f32140e737d70f46bf41440b84ac48b2cfe
MD5 02bf3099d55ded5b7d243d90e89e0818
BLAKE2b-256 e5cc176b2e2f595d82a5f13c6c5676fedcc956cc6bed6071be5261a9bbcae076

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c02f7902a347a8b2f23ec0b66b4a0973fc9f7e044f7add051aeeca98c60b1a78
MD5 0533233ebb8cc2015695d8daa7a10de6
BLAKE2b-256 7810d203a07c31cf354748176c109316dff41ed10b37c56b9120a646b75c64ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2a8dedcfeab1867ead296bba16b2fd37c69a365e135358687c6457724cbd4509
MD5 e20c619b5a1c072717b2a9f6d2c22f8f
BLAKE2b-256 b01eccbd0c824b9fa3d2e395e62d2a0945749e2c4bfe53be8700e8fffbf9f634

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.570-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.570-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9988e602f1ac741b6b2835323519e35a2834a1bd11dbda6d9d9c179ca9c0ea5b
MD5 0295f4edafdff986119c196b472d036d
BLAKE2b-256 da26805e05e58356c9358c84fadce33ddb5345594e0768674121bc27b1b92ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aae5927bd3e61d6466f95dd8c6001376b5511fe26c005f780e87d7648d67042
MD5 8d0d6743d3a50f61001d43c2df05862c
BLAKE2b-256 0f54caca78d64b7721fb70e9a3b190e718e237123d9ad6db8729b83fd4f4f154

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cca0cdc8cb3de8eef6e3c03b4bdc28e0baea691321d9cb0df015ade907d165eb
MD5 beab209eb1fe02337fdfe34278e4fa85
BLAKE2b-256 9b30d9c4754194983355cbf0622e9d6e7c6ea089263329dc8bb7afa8466eb618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.570-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.570-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6d1ff36a1434b6bce11f435aa9c0165ef5d0775604c872aa3d1e8234ee461b66
MD5 13f9ae12a4ce2bd6c72f70cbbf585771
BLAKE2b-256 59f4348b2d033486c0888c8a47559bcfd96f50fa264b685f4c6ff8c51e62c543

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.570-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.570-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 26311bd3933d931fb44d5d9b5ed0f22c6602cac73e7ebd23c271a2b57c546367
MD5 8ffde8031ae395bf92eacd686bc5104f
BLAKE2b-256 14b6a053f33765955d0e808d51a962b21be0a07d1a6f36892f24267bf33d6c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.570-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0881467c2091ffde4a13d9fd199ff9b6f783409e8d68f8f2df3c11f0109fcecb
MD5 549b5faabe67c0b28e084ca5e7ce1764
BLAKE2b-256 eb3431c547e8999b53d21f4c9f76b271809f8e3f914bbde031d9fd7d7e20ecd5

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