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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.467-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.467-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.467-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e502daba2b6ca6fcc08a8516596eef22e5f7e14c6f37d4d7d46970b12509fed2
MD5 179e7d66d10a46286645776a73566199
BLAKE2b-256 aaf9197757f52f65950f8373749e0a8c257768be70952642b9da12c7aedc6c58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c58d30d87497a45f89146d9e1f7f41648832779465054f87ac922f239cba6bef
MD5 b78d89d171dff4457eefb783c66738d8
BLAKE2b-256 34e588874f2100e2b0bb8c0d721ae26ac5be445283275922c3e32ec4bf14edcc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.467-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.467-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b19993d6f5141ef5c567784e623918c14128f88d9067125faac3d387e06e1f76
MD5 623e6059313ea21b6118359eba1068c7
BLAKE2b-256 63123b921cbf21b90ab292473ce9f621d49f237fe979252612a2f8aa776d3a4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b30fd165a17239526005a9a84c6636c6863696245374a774b1ed0b9e17fa24b
MD5 55e17f3ec999f787cbe12b43b779a4ff
BLAKE2b-256 6284839d11653b6d83e17d27893e3c1248643a0d8ed86b4e36480fa6f90cf368

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a820ef5ccb1b5e7fe39c110dd45e33a16c29f6ae39073ead4c1ca8bb171d7e8b
MD5 7c8b6da6857d8538b39530efdaa762d6
BLAKE2b-256 10edfb2bef4c40c08bbd167dbd7e66e78ff2095c4e96628f53969241b3544b0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b0c2a81c98eb4359d37850fda371c7c053c88c625630b1e4ac8fdb00261ed60e
MD5 997433d5b60b4d965801042e51b8e331
BLAKE2b-256 605407a16ab54c062047610237fff5434f2c0ab6465152dccc9ae5d005799270

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.467-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.467-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8c81695b03eadc81fe7309b1db2b86c59be7dd9f29bc090af176a1d9f7f7011
MD5 1b4c794e90951d207b1fffe8b7d70fef
BLAKE2b-256 77747166c24f0dea94db6a34ba1e43478466cc46c4ffe1d977ced6ab4bd56036

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a70c9456e5ca1afa35e296d870a6aea4e2ac7136b1883ba6070c7afeff66586c
MD5 bc139e7398b858729d26f9e91687da7e
BLAKE2b-256 23769d68a88322386350bb38ef259281f851e30ac2caaa15d63cb62b7bb34275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 30c8f10865a23b138459943d05e6a07eb4e09b6a05e01945566aeb4b94cea543
MD5 619071773ab65d563d575bb366887987
BLAKE2b-256 44451a7e857173442161bf42ba659dcdbe33fcf3ac75c77233373d9631107661

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 112666494a44be8e0a882d822685a66244f5b2e5352f2315c11ac3ee2f250eda
MD5 6101f5372173cb41d340469320508f24
BLAKE2b-256 c4d1fb370ea813cc63f50866f155253a28eb89a4b4f9664cc4284210e0e8cb6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.467-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.467-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7b0f47e039bae5e36aff2dd3938c2310587b0bcfe571d4cfa1355cc0dc52758
MD5 fdeb4839bd69bb1627ef06639d96a747
BLAKE2b-256 45f958a200db90876a35fcaa28f6079571db3203a8cfedcb75de8afabf46f695

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6fe531bc13fbbb6292407882ca24761c799fdb4f03dc178d5e8d123f107683a
MD5 3826b9e94f6fb5abf3f897a6b883919e
BLAKE2b-256 9a245b34d48e1317289aa19ccb10b0db9e77f98ee721509fd9744113501ed079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 79cb145cb792fd5140d8a793c256cb90e303c30d64d19203b24f0a332113acaf
MD5 a6fb515d49b94bd4d9dbcc3f7d4d03cb
BLAKE2b-256 fd8a05136a11dc3fad9188da2d596ef5c6abb152eb1d774d7bf051b037702ccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c1072fe0e36be91497433ebf296abf1ff8ee3783e266718e939b39507905d08d
MD5 da6069f062ea033b922dd4948a519bc1
BLAKE2b-256 528a6ba27e767c26e5589e8443223f531ad523108ad5e6b411b22dab4cf0789f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.467-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.467-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44a216ebf28a0853f60129e1e9c7b84f1f9059fa111853959018a9f7bb2d59d1
MD5 94fe12f5d6f855a5463b8cbcef47c2f6
BLAKE2b-256 7e316aa1a06a6ded3f119b9ce2d6b0b3e4395487106c178640dec0c7a0cf7ad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77176fb1c52c87f36a95d6d4831290ad5482c69893c51c1af1947790cb3d7341
MD5 01edf97ed8cac6f3b304698903a52a66
BLAKE2b-256 a9966ff049b34c0177e459f8c936465a442e1ceb2c65ca158e85075098a69f4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 82b844f321877364b7906a801f6e46087fea0229de529dbe798f8c1b792cf0c6
MD5 5f93a47940f31e59cb0ea791fffe2902
BLAKE2b-256 b8e1546b96093553aa990a27ec799c333c2da3bbc22227fbbe6f291aedf7533b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.467-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.467-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ddb8d799d2fd0916b72cb643a56af3e7776210ee618cdd9d11996574ef231bb4
MD5 bb939be406fd11860841375df96d1325
BLAKE2b-256 25df54de7532d1292989b2f66fec96f867fc34ed75d31b5c11ba45553a727e65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.467-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.467-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70893bc898eec93504994726a37df7e9adbfccdede242f87695ed978c5cb9ee9
MD5 6bd7bf818f8c6d532798b77dd91c633d
BLAKE2b-256 d79c5efb4c54b22298d3b13534df934be5b77484e03792cbc469d8c66d45c445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.467-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 184ec3718fd78a0b996b7b6732cee53033505237fa78f487badb500c7965c840
MD5 628783ef17e05384217f35ac0598cbfc
BLAKE2b-256 2c3d43d3aa2dc31ca4b702148b825c0207f95523574f9075a6997951dad74e74

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