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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.15-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.15-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.15-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.15-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.15-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.15-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.15-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.15-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.15-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.15-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.15-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.15-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.15-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.15-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.15-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.15-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.15-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.15-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.15-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.15-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.15-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2928c1ca4f8c8ba8fc33000d982789f24bcff53c0650b6ab4e23cdeef152cac5
MD5 b25b4ae93f07a72e7d7ec986b001e13d
BLAKE2b-256 50789f8a6ed0550043a2d8768685de90f6f54d122706de4a384a19c8d36a92c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.15-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0dc3d50d89f5ca57f0bb344df0bf23380e84b3fbb84f1ef6cbe46e2dfe6771a0
MD5 888352754f166baf1e4c8079ad0006f2
BLAKE2b-256 eab53cfa4d175d23ff3e895a43148fcff934b509c0286b6ca48fb8e2beea71a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.15-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.2.15-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0fad59ee5101b0598424411c5d4d685c4538f0eb94f5e3652bb6bf753459c29
MD5 b73a0e4ccbc14b9b45ba6a651d7ce2b4
BLAKE2b-256 fd0364cd01f7c0f45aaf8244036ae316b27500f3fc109cf512de6c08c286fb23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfcf60ab2b3fdce3f0d4557f7280a4ed3b74b4017e8d2ea996676b023ce1bd22
MD5 f7ed481bef47c6af1487e1da983ae1b7
BLAKE2b-256 fa743a7151cf9f9be2d8955460ea43cc3e3956551e84f72679d65ae4b53734c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 59b3ef138dd3131d0238cfb13be2aa6df0cf560ac1201b99559470b5fce3ac19
MD5 1192942cf6326fca7fb49aaddd07bfdb
BLAKE2b-256 bbecc09e6709521d0129b1da7af0d76e6ce475e58d4118438f3ee4010954956e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.15-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 936514e94d8bcb407c5e0b2cf58697e1feca121f31bd05b5a67daacbff6bbe3d
MD5 b58f1dc30e2c8ac729147e44bb7f255e
BLAKE2b-256 6cae14701580ad2babe25f5f4dc64cd8c3adc97f2e042b820480e886b5cec70f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.15-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.2.15-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 acf88b01cc3cb02623fd8817dda02b2a8ea9dc5cc2fa7c6ecb85492d21ea43f8
MD5 b8f49a98104bbe1354b26a90eed05e8d
BLAKE2b-256 e99770e8cbec9d47a758ab8f12779566ed65ebc4d37d68b22fe35e747225ab16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24892eea5e802f63988cfd760b0728fe7af7e385980bd78d2cae5fdb806f33b4
MD5 7e89e4aa4a5e1db92347876983c9e20a
BLAKE2b-256 8c5f55c81387727c787388433c85d30b1dfd398343aaf17a219b1a53298add08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 648dcb93d4b48671e1858c2bfd172412cf82bb52a7047af3d3f5724e2faa276e
MD5 0aadd7e416eb8609285522c29bc878c1
BLAKE2b-256 6f16fa6516fd85bdb4450ca487c05684b550342494d8fdf79fa887f0ae470c32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.15-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 97ab9bd7852007727fde736140c08dd951f37ea932b7440d87154dad02cec0ee
MD5 2ff33548704f01e1bcd9077ddd725354
BLAKE2b-256 8a88ab4148b59571274e02e46072c082bd590813327dd82ca7a13c128a6b5a4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.15-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.2.15-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4cedde9ffb1af363f70c76ee295c02b49b4cca99d973f88b63e85148ff55552e
MD5 73be22c0f340d792bf06a6ed36d251e5
BLAKE2b-256 a0adec7f8063bb94fa6e101e14df5e01f40ee08c352100a789ca52aabb6f3b42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.15-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9db72f7af26607bf14d8b6dd57298453ad0f6d45204d5e874746d29fc91e0055
MD5 382f2995d991958a38da2be9d2c7e53e
BLAKE2b-256 35fdeab00c431a3b3771eef15d816b7c94509139297cd121a071a8137f851aa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.15-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6beb85c100cf173b920105e19ae71b4f2f33a9a0dd3e3efffa9c52bff9ac1888
MD5 c24f0183598685632558bb6415587579
BLAKE2b-256 7d253791cd6da00423fa58baf844ff92906d2b2e303069b01a318923b0b8630d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.15-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e2f3fed9e9eeb2057ec61c16c664bd163284d9d38fd1b307e6253372f6922000
MD5 24cf49335c12b397eb230a0f5a58d6d3
BLAKE2b-256 ebc8df7db0590aec5f5ad413150a1fd18940ce5936c55c9590a868bd00c61803

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.15-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.2.15-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9abcdb1a48f284eed1c821cf57976018a0a22223091607bdc7c1f0bb8ca3ba8
MD5 4d82918e1cb280612aeda86252c17799
BLAKE2b-256 3a210156b9026c5f4b9cff28881392d91f713b013315a2d852fc5da00692646c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.15-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d36fd1b4d4a89234fd3c364e90996f79e9ab7358878a536d15d193a787422f56
MD5 748b115dfa22a80812d39a96cac93fed
BLAKE2b-256 dda3dc6def8e4292de888a1cb7582dc4c3b9816230a75aaa5d605579846b603f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.15-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2521df59b4727ff9f5063e3e328556e270163af5acb4a4c829edcbfa8e24d8a1
MD5 01bff271e8e72302e2023d2da18372ae
BLAKE2b-256 bebe872e631a0973dcbba3b487d89a9b4702cbe5588b6e658b67be6286004592

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.15-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.15-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c8bfc2081432a9794d7fed068c081d6a2fcecc142a5eac5718c12bdf8aab02ee
MD5 7f3fdda98524bb867f59709f60e79330
BLAKE2b-256 affc1fc09ba8c3aa6d5d367e9602ecfa75291c49d4e335126de66695be531730

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.15-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.2.15-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14c44485e775da96a169cd6a1436a421cafcaf6eb1626fcf3d2b50a1decec679
MD5 53e23ddca7dc4ae82a16c0ec24c4b3fa
BLAKE2b-256 d8472845c08d96c28552c3cb93e673d03acc96cbc61215c245876d385bb75ddb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.15-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d773c7c408eda19189bfebec93178b291d0e4ce3ce20fac2e7f5c7ee133bdec9
MD5 da15ccf037fabd459759bd9ffad27072
BLAKE2b-256 ec9446358e2b8321e416d67ac7824988b099636dd84b903b054c467ec7b3ae4c

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