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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.375-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.375-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.375-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0e607c55f5728581f614a51ad04f2eaa7ade87fbf4e5e0104e78e800510b172
MD5 8a55cdc8f929546e5622fdc5853ff6f3
BLAKE2b-256 b44bb1e8f00db0e2ffe7717091fcaed23662971d336aeff7d1c8d15ad74cab1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f160c4469329d5d20269829ebb64826b022cdf38e376428f4d5934b8402b0a12
MD5 d16762ed4cf2a9bd27c4f478009a1a2d
BLAKE2b-256 d74c65434234782d41759d784a8eb2594827cc356070686bc8dde2e3eaca08c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.375-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.375-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55c0fa3bc122aa3bab38e8918a102f6aa5fb6a0d5dafe50801b8a07a9dd2ec41
MD5 c77132a8457a0797c0c9a6158e8828e6
BLAKE2b-256 c50141b8530cc5c0c4fa0ab90d256b59f907b09e8b40b0433eea498e322d2a4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 858325e801c5d82a25033b06010f2ea93b910f00f0e82a936efab1cfd289403d
MD5 66db8414fa94aaf88eb345affcaf2cb7
BLAKE2b-256 7a146d98fef855c427eb98386e6b304833a0580f7bf99da9ffb87c1ce425fafd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e679a446974f967caae8c1b9397e93e19a14e088282779f174d82a9a112ddb15
MD5 475987a4e7f5fd208791a1e099d1f7a3
BLAKE2b-256 655bceddf8d20ab0cfd3272d5df94640b99dbbafc9b39cadb021bde418a14b7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 35ddfc00e14f1387c63fe1304357558699f22d960b489d3dbd7572f3c610b1ec
MD5 c619594ac26b3254a28d06cabb626b41
BLAKE2b-256 7c91b2045e5347ffa040880c08050b5f3ba4418ea812ea50a84b188fab5d75bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.375-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.375-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b5d9814cec46184702360b1f977e3befde76be5bbbab7367f25fe0ec5e4aaa4
MD5 82634dfdc6b06ab689effeb61ab89910
BLAKE2b-256 9a912776f55c71874db4669e393d247dabb14d133e1dae41c8ed25e39f7ae681

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91a73752891f294a0fe793c2f77d11f23da170779b51a50f1497bc4e1f5fe4df
MD5 ffbf3ac09ead3ea9c29d99b0d6398b37
BLAKE2b-256 a2b46b60c057420691b64b704bb3ba59c4ef44c38c15c042a9f68558989ad8cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bc64f9dfa1e2e4c13476c1044bbd652ae16bb79e181649dcb3c958c2e4610056
MD5 ea49393b8734de15eba0707625ccc34b
BLAKE2b-256 32247fc73ff29acb2393c3aaec56a2d068e854fc1d5b3cff09fd98f0e6f1b8b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a7345a549479388114d683a336d6e542ded510fcd38ab947250167d65fd1b86e
MD5 b6f6f38b0212676d11740f1dee7d928e
BLAKE2b-256 4c5a4eb2e690511ccd61faff76fb32e73eaacbf83831d7f3bb89f4bb66dfb4d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.375-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.375-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb7a28a96d6adf0145d0e79467af05bef8cdbb9a2f357d410cdc94fedc295366
MD5 0e8358fba22fb081d999aaf57c73ce9c
BLAKE2b-256 e312ab5158cb97ddcd04813f0050b5b0871ee181860a9b4f0f001b1c51a98d86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5aa4784d7888532edf433840615f9254ac1fe2f1b6c3dd6337947ea113c35ba
MD5 8047acaec4c06870c8ce79fc412b0dac
BLAKE2b-256 ee6b6f2e049cc15409f69932c2b48cae0b4a11ba09fc837cf855cdf587de9c7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 31ca06853d8c0eb7ea7a2f8023361785af8a559031368aa45413e664d0f39adb
MD5 ba8097543b8b8d884fa41e1e542b6d62
BLAKE2b-256 d8d1b49cdffe5c9afdf4fe3cce69d3d824d1164536fc04a8b7a7907f7ced54c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2139128f07d4c91576958f2372c5d877127d19649d503549eddc83a1fae1753b
MD5 e0fc3bd8ae414aa0fa43dc0b40620f88
BLAKE2b-256 077f51cf760e52f53c25e6f8bc9bff41820351f01926d72427fc06115da13086

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.375-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.375-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed9881e7e4311be0d358aeeaa334c5d97348030ed8365e457434c636008ba15a
MD5 030657eb8adbe540ba44c97f7065bd69
BLAKE2b-256 8a91a950cc8f6dfe7a2300cf4b3a17626a67ff02b3f91688691adf2f46708115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac2d3a3a73b701c4710ba0fad0d6df511428a5489063facd42c9f5a4af796757
MD5 9666f433068cfb31f7e43f38d583f683
BLAKE2b-256 c7b2f2c81af70a07d8b2d4a4cc0477544ac0715e90869aabda988935368deede

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 53e514c71df6448bc131dd44ec314ed92d221d3d2f7589b3de18a8b32b79ec99
MD5 7244f64d1d0ca0087064f5db9cd58f9a
BLAKE2b-256 9ead124f64c75ada02adb7f729bb7248733213e06bbce2d38ac7c3e5bbab9521

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.375-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.375-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bd68243cfa0797a700597ed2f1ffc10710ff022c3df5139d048be3f578439440
MD5 77cd28de94bbebc9e121835d1901b5b6
BLAKE2b-256 7f745fb8c50c448c92a30e53910d20725e0bf162311e079f9e6931fc8f6fe79a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.375-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.375-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9bc5b498e5cfc42da463bc553250834ff9133454651692f6ba0f3ae68a5fcfc4
MD5 b16112f196c5bb8fc15cee70375087f0
BLAKE2b-256 1bdc0556421999f75e80004471bf194da0c31b8a1c60a281f5db736f69d01358

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.375-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 124b6b20bf7231fb772b4352a41bf3fa00e05299840c920fa07f8200164841ca
MD5 7d2b2dcc1cbcf5395e1699b8d050e10c
BLAKE2b-256 fc41a8a511358de72f522bdc53ce026aa4a1024d0861e7f37f910718c8c8d763

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