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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.271-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.271-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.271-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb2038200c7dd8b02bcdd3f44411e5b1d75f4dfdae3d9d0d56a2a7ad44eafad7
MD5 5cab2da514aef962909c026fb0655535
BLAKE2b-256 954d550e39f8d982cf58c149fd642a779992f44781b01efacb92dca9995680fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 89c91a19f5e05dd49fc7d33078dedad9a1ea3519a7a48b980ed5021bda038f90
MD5 91448d3eb9852aa53f43975e7adae6ff
BLAKE2b-256 353f9942b08d2b21330a3564af4e821fd58f26a9f8c9e34ffafcc5e85c495af9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.271-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.271-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3380c986316205ac81fbabdad50d5f7b377a22b1b8eaadf51cbf28e44f971395
MD5 7e949ce10185ae46b7d94f40d209aa21
BLAKE2b-256 5006d2c06ab7f0f152aa3b08c0295ddb07aa91183f6e92ccbd939bf920803383

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20cb3681df7380fcfae1b274b0af366a02d01e9824fd998d462aa916a128c927
MD5 34254acc9fa2fa804e35bfc3c53eb9b4
BLAKE2b-256 ba8932228d8cf7cd8e52466cdfdb473c2291bcde7a52aece4dc69f5f2a66be49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44b2b912208270b6e7011c1acd888553874a91753c9faf882bf482ce3a38dbbe
MD5 de773311d42160a7b773153b167f6423
BLAKE2b-256 00227eba91cb8649c7f4f994c042889c3232ce18b3dd7d733c0b2ab83029b63e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 281acf090fc40b92084c122d7f054408417e791bab2b398350e1a3f1c9436b4c
MD5 73d0a7940bc6ba96ef9e1c0f5fe69407
BLAKE2b-256 31419db37fa90c734d941f12ac7cbfd13d7cd61626876602bca135a46ac1638e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.271-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.271-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7cd524cbe1f9765ca0459a1b40f5c86f02db5442bb1dbe01eb5449e96de018a3
MD5 13cff64a8457994bdd2c53cadc3f8b4e
BLAKE2b-256 3a5185cfdf741a9e3b11202cbbfefa4040750d038f74443d367aa9ef8c657323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 215952baa8ebc27bb3c4ca67da7de22062595d3f9c0d18efc42c1c9237773e19
MD5 fdb3960ba0aca1451812053068f5dc21
BLAKE2b-256 a1048cb78a7f6f7aa1b40814e85291f07f960cb2c2416332986729b2a2fcb366

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c68f79222617b689a3c54ddbc14ef527cb1c1b1933b5ea96028531f0c61fb0b
MD5 9f76260c210b7f816b5b4a90a27e3703
BLAKE2b-256 9c18f43dec0f941d5e72e9ad359e32c85f40dac85a73bf2647ed0c88e56e3f4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 445ea71764cf4d5336631b47650b5d36172dd09f327bd3eaabcde74f167d6a68
MD5 0750ce4320f4aceb0614e6b853be63c8
BLAKE2b-256 29739c1f6051e7a136f7d5514996cbce4b54ac3f6e1ccb9c756f1fb8ea332587

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.271-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.271-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 159da89303ecdfc849ffc3d43e767a66303fe736b1dc299bb04477d584714073
MD5 9b156d8949274ccebdc3a34902459f49
BLAKE2b-256 84b43f5369db52adf0f9a7dc80e2003baf964d92d31da42ca8318bb8a6bfd20b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 992b9b2a16349cd482407ad133c961ba64de11f20151e1faadbaf493726e5249
MD5 b06e7a6073bc903f510ee6e4a025582c
BLAKE2b-256 70d2d3b6be0bdb6e57d27e0042a96bbe732478269f930292135543a05b4e7aa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ef896cd5286308107a49edfb3bb23e3b5c67a422ea921afe743e35d1d496a05c
MD5 76160d4cfc4705ea2ef1a48097ab0a5e
BLAKE2b-256 1a19927c8fb283c5dadca6b9caedfcb68b5c9939f7a3ae0a46dead59ec6d1515

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 635fab2827bf501b8754ad289da103ccc476b6453e53697af92137ac1496a31e
MD5 6edbabfea9d85fdeb7dcc3236ac70048
BLAKE2b-256 129b8736cc99ccaa98aa0ca652d55de754b9aeb0cda745617a3ee39babc5c824

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.271-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.271-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92f97f7d607f43405a9e282fc4e2f093a3377a48f79f42d4093a441f230e6efd
MD5 fcd59d4603a3235045878b9706f1b3b5
BLAKE2b-256 32a0c69e78bfc7537da9a19a7514d251fb609662ce7ee53baa3097e59004cd46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ed1055abcba94bf5399e2d9f2a1d2212a76075eff4fe55ce2ffdfd0b87d1d06
MD5 f8fedac4335e4cc675431b9d82096323
BLAKE2b-256 4b4252dc26a2e8cb9d4788c273054654dcc9da415f4a91447e286933c089b049

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c7a6ef7ccedbefe12f28fb767b2532ae0c83406936763a691dc2346365e423da
MD5 dd99cc81b4c713934ed0d3a768fd8be0
BLAKE2b-256 d22da98237edb503ddb8ece7b22842dfa6cf3a39c0906349a6df61c16b02518a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.271-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.271-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5e41ab0ad1732d57a25c2a55cd7f972a23bd8be32c8571da67b60339bfbc57f1
MD5 0f23edf1b30d374b597d45963e8fd796
BLAKE2b-256 c38a2e72adcba6babad052257569d118d68684ebe79aeec071db27e765790a22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.271-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.271-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57cc0b151e84ca50cb6fb4279fa41b8535f2c0e310f192baaefe8b8af4f37f54
MD5 3e6f126ff5f70b76a09dede579793479
BLAKE2b-256 000c733aa6da2021ac1c88d94b28ba3de134e6a69489ddd14246d5012923c9f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.271-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14c665db88e95942ca07eea7544a3b6f1752e02eff91516989809ea809993dbb
MD5 0be07cbdf2e47787e935932c2ed706f1
BLAKE2b-256 a6f58d107955073bb7cc3d6fb1b850c1e3446bff90d47e4f14c51ad5267992a4

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