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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.714-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.714-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.714-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44c0a6981122aa10acb1b349ee30efb918eec7efdb0a3aad72ee42e1657b5eb0
MD5 946e49bfbae4643db9bd914a7481d1f7
BLAKE2b-256 aa15de2ee9a0c2cbeda141aae66ceaaba3612ca342a2394aac3588845fd27e2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5c5ad0779fd7b6c4e748e24c1330bbfa652e351e2d7d5fe189ebc7778e1f4563
MD5 59626ab0e70646d36e4211819594b7ee
BLAKE2b-256 47ee96f6689cbe142ad5698a8c75ecdf176cd182193334a9f880315ef3095158

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.714-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.714-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d58948f7db4e09ab504b91628c6c427f145ac487cb46ba7a5cb381bd91efdfc3
MD5 e7348187933f6da525726ec2860e9196
BLAKE2b-256 2c18c4e1c976cd53dd5a803c62492b6e18f078e58abfb1db2825ff1b6e713084

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41ce26b8c1cccedf431d4842efdc1323398e2faa9d759384cfa06c7fb71fec06
MD5 3f7a9a4abf2563e5de7e0ec158358555
BLAKE2b-256 d0306b05fd28f9c03962780bde16a126726ebcee3f6fa80e16f2138735535cec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b6810430cd2c64c370b48598aab1bb53e9ecf9580483616a02c65ad3c9f6bfbc
MD5 7467bdb90a075db1708fcad798b4d9fc
BLAKE2b-256 13d023913b0f62943296da744ffd213a200c61ced985c5cdf8289795cdab11e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a3149ab223ee20d2d48798e11db0ecf646c0bd17679b651cd48c3b966d3f4ec2
MD5 e4b1b3c2871089ce2c1aa013937fadac
BLAKE2b-256 7a1051477337afbd5ff5579ba9faf5833d541f549627870bebe5acf73f61f9a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.714-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.714-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c285ba1712d50b4f7d42eff70109911eaa3e1246fef21c1fca22887da7c7abd
MD5 df64356975c220474b51dd4888766762
BLAKE2b-256 de45dbbafa687b655a8b1566a2f5a5d1e1f6ebd750172616b721d4042acf1246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd914f99ca690c6c422479deebe38b3cb4175fbcebfe80c4a5b6bb4ca80000cc
MD5 aa5750a16c9c526662b1e2b1bc081c83
BLAKE2b-256 67afdab3de332b85c6bcbad8da103ad6d8ad00b557676f3b07058e27b8295358

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7383a67400ed7a9bd5810bea1942ec8b6cd5118f45741ec54e6cbae0ca4d4c35
MD5 9b7f8368ba6825b3c7f07b17927bc77c
BLAKE2b-256 b3f5e5ca473883d1f6c6d153f1a05737aecf446205b6e6c352b9c407e3e24e3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9baa2871ed5ca0371299404242ad37b0f18dd345d7d2ec60b52817a8ce461f38
MD5 5bcafb896903580f015521500946b66a
BLAKE2b-256 8e9d4f17b1fc3fc25d004a82eca3f3deb0b6ec8d3dde4afbb269a34de3b5ba21

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.714-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.714-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f6e479f2d52c191626797319370b6cea56dba5d76f7d868b7f6a9c3049fd10a
MD5 2d554dad66138635b103efc7e6340594
BLAKE2b-256 fa8c071ce3e9ae674c3be6cd8d4b10182e86c92c3c167795d83ecbedf368c82e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87ba7a3c4d2141117d92f26b65861bcbcfdfa7e4cd25c79a4d66fcb358a5c715
MD5 fb79780832f06ab28ff352451c4417e8
BLAKE2b-256 f60c4f44b9dc11be915759f98f4cd6aa4e4071e134250bdb807aa3a557678a9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c6abe2c7d83454cf17db491d8930d58d40f274f7440174fd10d34efc85dafc25
MD5 d11b8c99d2c6c039e9e7f9ab8abcee3a
BLAKE2b-256 1d2999f5d14da449f5e16c0d8fd92d519e1a556404cb324eac198ef32a71dae7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5cec37673bfb4b3585d9387746fb804350a34bf1ed2bb73034c88c2c85aa668b
MD5 a8c0abdc9976abaefd3462fd7ed44800
BLAKE2b-256 c180f282a07c4ec3f551fef2cbac97a243f44c87c96088a15004c87e1b8edafe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.714-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.714-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c22775ba7f71582cdf280000a3436f3d566103d6e2bf21e1b66900531a5a3a51
MD5 e391f289a19c849eecc1569552c626df
BLAKE2b-256 28338f0691ef0d9e71d9c5cddcd036b291de4b287d54cd5af922edce9523d762

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c415e8190d29f5bcaeef938fa702ef07901b63a5c0d8b3f1daca729bf4004dee
MD5 b8637b82c1865360038d7bf86c9c6401
BLAKE2b-256 d896a38995a24e011d32d83fdde93cebd63846c7e1aa5153fcf06dfe17d22f49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 62b973e9c4a340fdf080ee7ef6b702e2ade19e7199b3347403958be3c4a5ab30
MD5 0f47fa87e54a31af2c248977e4e3874a
BLAKE2b-256 c81bb615ad114002570a349d5dd9635c1f0ec0097ccf2674f6706635ea1e41a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.714-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.714-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b6b972ab4c74e9ac927b106372033c91f918c4036d7d03d5c8f0c48bf31219fa
MD5 25fc66e169c6d7c406d04fe31c6578a8
BLAKE2b-256 4e0f8f453214af0f6760f6b222befb52f25123c5abc659b677c29fa9aeca1128

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.714-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.714-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43c7bfd3e32050e8c4a2d4ab4b9c0facca7e026a2926851978c3f220b244516e
MD5 59b4efccc626ab6b6d7e0860612c40fa
BLAKE2b-256 289f144e6b5ed6bedde37519ba8a705b657ac23101ccd627cef55e53c88ee842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.714-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17b121817cc2164d06bd8732cbe53904a91c4e05267a54917ea8fcd9f7762c87
MD5 5f264d46644ec3385454a8ad13264cc3
BLAKE2b-256 b92b9e062f9cd45edb43c80182711d5d3766b334e055a0b2fd3240f55608c784

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