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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.769-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.769-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.769-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.769-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 10eea3d28452f81af0edae60986c58ac011932d5d36d14f529e37afde9dabad2
MD5 b1162d6c5b277bea95450dba65020d55
BLAKE2b-256 46bebcc02334e28bd7409c12919dca63af09d3b3c0a37e76c10a8f5c8c816001

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-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.769-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 238a7c35387b5dcb50cac9c7b7df17b44de11c50d5bc73bfe365dc5e0cfbc99c
MD5 c293746cf645f2183940ce811a308737
BLAKE2b-256 2b51f966fd09ab859825b54205425673373760a6b84742133c7a3087bf58cf3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.769-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.769-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d02ba36280c2f3b92112df5ee51a1af0c48383fdc04a043fd24b4bd55ab8eb3e
MD5 47700b2bb684d07e8d6fe93b82347d5f
BLAKE2b-256 038308292205893dcdb9a65b90d2919c787f1fc9629662e56dab2233f6012d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b8069b10f64c5bf3614888a2862566319d3779b73a9558a44020c63115a1d13
MD5 b966219b45cbc2ab9fc977c69d8fecf9
BLAKE2b-256 f68ebf03e6701536ef3c907fc86dacf3d5b4183f2a33b3e12d8ce3b2cfc39d26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d53c5896be1ea8bfc4ab919b5bffdddb1fca1d7fa3652027327dcfb6b59c9173
MD5 7901500d09324aa151a64ea57e831d58
BLAKE2b-256 c63cbd0cde4e47ab4d331ca1470663496a08e793b3dff94cb1b2b29e9e49d108

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-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.769-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8bba27db3f8e7e432a96bfa0510a8229a7972891efc7d1b59279b81880b1a952
MD5 3c70ea0f3748596690f6d9b0478f0240
BLAKE2b-256 d1d438ae61edd6702682b0ac8f844c8c32a26bd5c509e2a78638674c7b3cbc9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.769-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.769-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a51489195c0b85d36a5dc4377f8595039b8194d1b98a9a74b57f3a2988c25e7
MD5 952ee938accc31ae98e388fa478380d1
BLAKE2b-256 2b1f5792c5bd9e350d0dab1ac1bfbe785027b1203a387f3fde887384aa291149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61f9e8fb41da77b46b0ef421784ba0c3280ddc59f31f3cc4a6acb49dbad0e38d
MD5 bd802871fc2c401fbe0d93a2aeb9ca13
BLAKE2b-256 4f62d77bbab55d5399c6d668420b88754c1bde534ae916966a488630be29dc95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bf19dfeebbc8109582d4c7dc22a3dcbd243bf88390102c0aa8256291ab7ff9db
MD5 005b427d48a0f047d31f3ac070b9bd15
BLAKE2b-256 2431c2ee9d608620d44a0a485da1bba00b9050faeb5ad1c1e0d1d59611b4cc50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-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.769-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4f91ca95fadfd93dbbc5b96b3c4172e955fb3c76f2c76c638821304cb85b83e2
MD5 25a526b2d10cb88dfe6c7d2655c774c9
BLAKE2b-256 9887030b1a6cdfaa3accf5175546e747f204eee76b8487efce86ba0ffd624e46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.769-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.769-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6744cfc5b10b0b3b638dbab413ef1ebdb4874365aad347b8bbc461cd220b301
MD5 4016f738ef76edeecfecdbe501016b3d
BLAKE2b-256 b5c06eb2957523f2077f2380e670d448633e2bde40f871d2f4d5b031077116e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 077e5c77abd90065ee9f1d24e8881d7a064b35a95efdf68dc31db8601fd0e812
MD5 4554ee458905233c081a8331bfb5dbbe
BLAKE2b-256 cc0f4452b918b5260e38925bd2c938846e4ca0e125bb2baa4b62b13e3e01f5a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-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.769-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 99b3ed91d245295c2e8e07ac3859ec8f9496aeaed33980398f70c38c683c8ffc
MD5 9b327444b7741316cb04f245405b033a
BLAKE2b-256 b523e1187df783b43760dd88e50f5db5dd2bfbad82548d698e25ee7c31d123d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.769-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5bec1d82e800c24019525527bd38c0c6d87ceb6b1b870669402a49ee444cc882
MD5 676331aa989fd14cfc44805acc498f8c
BLAKE2b-256 9d2006ca4032a3de8e3305f9875987435b021170eb5b415b2f8f632e3d0ca7b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.769-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.769-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62d357ade25468826bee84b4e42216bdd17fb9a2ffe313c652864830d2971f85
MD5 5cb067426330ddf37abb9020e74c2c76
BLAKE2b-256 856bd2cac42e91c4859e544a0d095a8b096089d400f80467d44fb03bfa906b98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd21da8f71e0f707785583efbd70e07384f63769ff7b2a71cb7c4c826778319a
MD5 2f0893d83553a708869159c350ed33d6
BLAKE2b-256 96484538d90ab4210fc1d580be351a9cbda97947761639dc6e0ad8b59db363d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-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.769-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 43f6949f02e4f08de900b774ba3ccff27e43c19b05cf57537edbb9e09f76a206
MD5 a7c5f646a05a7e82f43b43c2b404c002
BLAKE2b-256 73fdf193ca49b18351bb206bc4461d458d892f04ceffadc011e75f92f6e606ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.769-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.769-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9872b51c9c7bebc0b9073a366ba36ef9cb25aef563c4b165e2e67e39e44fc72c
MD5 09cae78e102fd3422a0462bd0ed7fbc5
BLAKE2b-256 92d3e21d9db5ecb6e015bda275f113702ae7c8afd07c9bfec16081ea414d5dee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.769-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.769-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10e455006225e18ce1f74c107c809f489207c170e9352f85f6bad0ea57548017
MD5 6135b532e87cbd3512e0fa26fc07c463
BLAKE2b-256 df3404e88e6d9cb20e88920dfbaf558c2a5061ac972eef2e30ff483261f70021

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.769-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14f3d7c6cbc2a30dc2f75e3e095a687362c02376c5d945f836353f1bd05872ff
MD5 42be5d53fbe5c773483b9fa0cb719968
BLAKE2b-256 469ba66c482c1a7db484c8cc9df99812be200318796ee9a484a9c44d2c25b913

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