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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.530-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.530-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.530-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6f849f35854dbfff45d6975cbf61834affc7c29986bc25a22051b861fd5ed08f
MD5 fdf53a2915e12321baf0d32d95a45ca9
BLAKE2b-256 506d98cf4eee58c74569c931e820672e5afcd4c6222915299bcf790cb6c7c32d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 656cc3c2809fc85c4a5dbf5ed72f7f386634a781cdbbbbe637c5b25ab8702313
MD5 069d4e3357903e0e8a9a9e57432ebc37
BLAKE2b-256 cf8d06e4e64b1cb0d2f0a758324697f96d9506bd91c369496325b00301377254

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.530-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.530-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ed17e5a6b5243161f5ff81fb94fee3b0e9069db156545e3d42a8a1a00e8e76d
MD5 e2478a8fb96886ded168eb690017eb4c
BLAKE2b-256 f802978a1ce3c94dbccfc9f21180b41ba9e74bfae1fcf9d6080fe1ab97332546

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0be6570c414cdb6d3571b17bfbd94338495d524dde2d6dd9b3457a48be0dd00e
MD5 8b836958d405d710d4b8f2a30e696922
BLAKE2b-256 f75267c6b8b49d6fdd5fc90ae99f8e3004f8aa054c5adf2d451c4df1df7ceda1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bd10f9a046748884cb76c052f38128d4c1da0e6d6933d56dc19338231219afe5
MD5 2cc45095950d2081ba435251cb09942a
BLAKE2b-256 0115fbae6b79296702b1af6a83e747f03f36918b40c98fdf0e785f4f49d5bc83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 de1f4cd77fc739702412bacce25c13e53c961a64eebfeab40494740faf328553
MD5 8430e638031e12535f8eca6ad84808af
BLAKE2b-256 32dcc20d75cc5719e3ee7985a6594e0d5e108b3b484b4291c00cbd72e6ab0fde

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.530-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.530-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 27dae2947f4f9688640f484fa889e9fa3e4af07045a1cc2ed0aebab1d33a012d
MD5 0f80f71a5d9e17266d3d9a79cd313329
BLAKE2b-256 8a81f995fcef656c5040b1bfaf8499a86f123ebbb3c2a2bde949b9702738123b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5481125c9e3bc37e9986fef02b60d266dd274968eb39cbe333da5647340837fd
MD5 ed992ac30b8c409b7483322f94399b86
BLAKE2b-256 fa847563c9eea534782843514d05b06ce739b18afa321b0acbddb21877af362d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3de00a7a018d6de08000c4659f7791667c1e690625bfdbffda1950c5e8fc92cd
MD5 67a6114ba3a2ee0e628f481076faa734
BLAKE2b-256 57aab00e8d2e426d215a9286b9d4b71b44970c7170dfe47f601c89eb37109ad0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6020db7bdf1670c8ca30bc92ea584a66db5cf9107aa26cb2e6b14bb16b1d123f
MD5 44fc915cbfc94a0df5102aaed5bc48b8
BLAKE2b-256 e842465c59e4f10de86806646ce72239ae7e148d42f2ec42b3847aeaa3184adf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.530-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.530-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf21e272676ac574676d391ede0f8b74f7d1847c2654db50c65801f8e04266e3
MD5 7edf2905aa6bec536a14a281f59010fe
BLAKE2b-256 9df2f8c44cdbf760022d397afd67615e81971cf8d86f329de4dec30f93686dc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d10a665d5072ccb75a93b54b97a47855b313855880699b8ec4e3f2ee5464d1ec
MD5 27151482627ff18200520b75bab8c4fa
BLAKE2b-256 c3b55514611651471d2942556257caf7449b83cb24ff18d6ce8117a95548e2d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 729ccbc0f47193af7c9e065251e26f4d7c7e1dbf7a92e96be312b8bcda617d5d
MD5 ae6bb545090ce76ff783f3ce5ad80b32
BLAKE2b-256 488e507fe1bc611e32f834b0b253d2b8db1fdcceb900466573d06b99da995ee2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5abf68fa8a79c0eef28e597d7b6d352e3e29bde1f3b05a0809ee6d84ad87b65c
MD5 dcf503740f52367942d392640986d050
BLAKE2b-256 009c813af9a73744ef26bbac480f69bae6f820a76248647bb28c2f69c6bf70e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.530-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.530-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2276ee0d898fd491cc88ca3132f520200a7560f297750dc67dd58114ea285fe8
MD5 f9f419afa893fa87b77a3dac376d1eba
BLAKE2b-256 6d20443f8cf66f7b7e977ee3c3e7c82435cda18b89c8b479680a16c8c3905d4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1537683487d23ae651c9f7331a06abf3236e44ee3500c0a2e9831319a159c4ce
MD5 273268b59322e3fd205031ecfb9d0c36
BLAKE2b-256 12a11ce324e7cdb32119df3d00252224c8e09aa67fb0100dbcf620fff79dce54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 43be9bbb58d2268ffa54811c41cc85ca1e1b9da6ecacb2c5f33e6be42c0b1950
MD5 9c04484a8f8c505702f69495ca7ec363
BLAKE2b-256 0f49b842560db3ce753e55d7f16b2a445b46615a0f564836c7930d4fe9b99209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.530-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.530-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b258c4a932fd43118f486bd4a8ad702567c733ef641a994b1b604ee9c808cd42
MD5 2a2342e1b73886f0d0165e23c4cb803c
BLAKE2b-256 474952bb047596b83d4c8bffe1022f6563af65e4970b39d1a0bf318efbe19d8e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.530-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.530-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a24d489fd416644732ec2b06fc2729f1f6851a0ef88cea56ec754c49ec05641
MD5 dc2877b834d114fd4949b0ff6a42d6dc
BLAKE2b-256 012aa3ff3a55a5741ea49fff531fbfd100c8d8b9ad2b6098c509d0b63d6a3535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.530-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bff767c273bc4fb75c1f8029c818a0943cccd4c03b62d133af6d540bc4c742f
MD5 084e07c208425dd433c3725b38b2aa3b
BLAKE2b-256 672d6a51ef0a23192eea1633c54cdb362a671a51e03c2beff06eb08dc12cbf0c

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