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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.49-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.49-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.49-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.49-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.49-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.49-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.49-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.49-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.49-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.49-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.49-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.49-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.49-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.49-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.49-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.49-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.49-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.49-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.49-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73f3589798eebfb3ac462b0d9c952057384e6edf7a5468cab5187f38801e2648
MD5 8ec950ed8bf5cf227ac86149c257dc18
BLAKE2b-256 55ca0d3fbb9fdf96950c26d51f436a874b80861885c3d47e51bc2ddde2e3de27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.49-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 101d8cc399f4177e74dd46a38c1bb2bf1e5f710f500fb8f63f08a52114bca699
MD5 c05bd4f955213d29db22f788a91187f4
BLAKE2b-256 d10fbb239d340e226960a2a677253c4a1c06c4df6e62006c248ea18325642211

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.49-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.49-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6660e8e150439e2747bdee8b6322a67ec404240c806f7c3c658e5eec607def67
MD5 ba3fc7c02375053c98212b5c9323239f
BLAKE2b-256 9ef1ef9cacca9674f07f6224cb812b0ae130573e44919f5f0584b8a533303a45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.49-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1efd09d33ed138760e3ad3d28ba6daec690a56ba79d39709ff8cbd37a674c948
MD5 8ef992beb189074b17291b7e11e7d9cc
BLAKE2b-256 1a3d08777d8bd5e04d19dc49b44f1b20e83f3c6baaf2f7c2a37481eb4ea8adf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.49-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c2c85840db29c4d225f4307f1a13695021b161bfaa906e5dcb1f62bc0f177e8
MD5 aafdad86809a3a7819b1f6c955e363f2
BLAKE2b-256 74ecf4df429f77da556a318f58f99a390b86faac6b0637b953c9aff909c9e453

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.49-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3a6571f8282a2ab08a6dee2af4e45e86cddf9121da6972299232f11175963e24
MD5 7c22a27490f847228035fb68a94c5d3a
BLAKE2b-256 accafa1382b42df3e0dc53f72b0ab4d6f35e377b13183cccf3347539df8f6ff2

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.49-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.49-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf358cd8bf534421bb84494fce7849845335166f021086edee08ce8d2bca1874
MD5 6b5c78bdfa17c62e67edb145de0d9429
BLAKE2b-256 c583c83791691790304d3c43ce09ea14848939a7292752750972d8353ed5a9a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.49-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a81bf722474da8067d2d4e60688e0020ef942932164cdf67f2ccee3843b3dd0
MD5 0b924a74d3c261ee38c2f356513e1c4e
BLAKE2b-256 3925b51a8f22fcf46e8d5efed25c4bcfd1f4e614039b24eccd981877e10f28d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.49-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4fb9cf810d3707832d310a957f710d94af5f74513cc1ba95bfae6d81160f613f
MD5 e09dba7f477221efea42b25f279d3de6
BLAKE2b-256 e597a278bedf552c25fc35074dd6622de8b560e02974810b44a0b04118365a8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.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.2.49-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d0bbf8cbdfe69d7f9636e181b5ac4822227258927ead8e1d163984ced04e2c36
MD5 787a9212169e2b3d487ebcdf7bccf877
BLAKE2b-256 91df1ad5fb60abfcf9ab531749a320290b27cd76a6445cb40f4f5e46b5e45a42

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.49-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.49-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21775a173159bdec4fa4b1545e246b9829a85c033e3be6e1429d4d12947cf18a
MD5 d43e7fcad6122d41fef87eb1716534e6
BLAKE2b-256 6afe1d58c9f2211e65a452fbd97046f13f86986175241cacdf6fb55be4be9831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.49-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c195cd0d9191e51478a4e46b01b70a209dc97d7f69581dd9c3c983fec9503ea9
MD5 f35755251e52efb4b6cccc6bba9e77a5
BLAKE2b-256 801e78474bcaa1037277a9f6f66601b92e4a06200c5010a378e02a53db35ed18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.49-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 732cd5d56b4ce317cecc030d0a6bc2d4416a8ee0a5b45fb2e8e0775363902cbd
MD5 33600a74368d37bd4f92ec7a47943ade
BLAKE2b-256 f1c19c19066afbcaa89f88e41243d984176c506db94a49ddf351a5d036edb595

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.49-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 db4855171c21a4fe7dec34657639d360fac42ff30e983ad925c84e3fcdffb353
MD5 31ae85573eea98d3c4f1d339ad1368a7
BLAKE2b-256 c7adf629ac56638ccf6df3ed95cc32ebc198b9a2c42850d65ac4c5875c56a05e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.49-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.49-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9cfd5a514489f78326fbd4ed1400dfb7959dd2e8c1df0b0e6f1e2f0aa5f1ca9
MD5 84ab4242bac4997bc50b2cabf52b6e50
BLAKE2b-256 1cb1a04dadb233191b9dc11a85751dd641f03d8f7edc1c169df837cb041e0b4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.49-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7073616a32427bad3a7946b2bc3b5e7107372c5692644a2bbbc77e4e183b984
MD5 16a5579863c078f25953e66776cc596f
BLAKE2b-256 828df33308f42dda47d619c5c3d34b0948dbf18d83e6218e5f89250f0991d43c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.49-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6b42a37649f0f2e08161e3eb3c16416c08a006ff281bfa50eabf237ee4b08b13
MD5 c9e0809d580d44a49139b001ab99710c
BLAKE2b-256 524b130e341e0004f7d1c9634ffb8a0a9feda2d2a63c594cc8d9477b2611260b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.49-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.49-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9b88cae1d487ea5cd5ca9079a8cdb76ec68c518ee57be88617e0a0d3729fe240
MD5 655225361a2b04fece58819f241d4f14
BLAKE2b-256 6192a30153296439d4c776acbc1a452d42253eb3c4c507f9d5724cebd342dd06

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.49-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.49-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e1e9333320319fc989aa95489106b8c04bb28df05d80dfdcb5e7b1811695257
MD5 19438444dfe018f09d67ed1fead29c9f
BLAKE2b-256 8526d7a89e39e31ec4bbe0e5f4692dca1ec84ae4f2aaa0b172ea29682e1c7b32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.49-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70454e9d5f65b21c34fe0cd7b2370b6f53bcc476f65a8f1f582a45f247e5906d
MD5 fb78bb75ce42a3d27832fe5ae797c9d6
BLAKE2b-256 a89819bdee8dfd3617381e93d4282a23be907d668f33412e3ae23f39d4478b8c

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