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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.395-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.395-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.395-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eba472bec14c342b4c1579c91a9b2640b9add4d4607bb8ae7d3a776ef535b375
MD5 51009e29a78dfe225286892aa7be0539
BLAKE2b-256 3c342ce3a417f5dcf5541e71d188becac08b07b65c413aa594a6d7d8381bd57c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f765732c17f60cece376fdf749e2136e93937a0dae8aae8793f3bb256d64a03d
MD5 e8b535c592ed5f0cea8e639c7addc3c5
BLAKE2b-256 65b509477a1b660e57b753c4ba522b2c741e41c95c810f57b829ab012daa3800

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.395-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.395-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 554c6160b000441e43bd5fc245561df9c3dca8d0a3bd3c4a44dbc14f6f1e7d23
MD5 c558c6972fa67e8539bb08fcfbea8a72
BLAKE2b-256 4648c461bc861303b709441424132f17c83bcabefe5b88c56f07117d3d91693c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7c20b59fdbebf4ada5cf80aad2c237139b6c4b2bf67384481678ebc9c168aeb
MD5 3d2498197bb645c716e183c2c01bf681
BLAKE2b-256 fde4ff36d4cd5799c5a2b06b4062c9c46a52ea25a64f40854548b9ecbb1da9ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9d3d7536c8bd3464bfe70b138cde0d621b3e71ad21990a3e5db4cb98834fc31b
MD5 9df9ed5545518cd5cc38dbe80071bca7
BLAKE2b-256 293ae6fbe8fffa0e7f83964b0e52bb393f568a2e0998394d3a0d154c243a8609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 243a1f297d9db41606e645b0560d2862f01ea739ec37fe2035e7875c9d65e1d5
MD5 6f893a5790ac50972fae30ffe19cb849
BLAKE2b-256 c313f395174172a61a3dc41094ad9eec4b438755bad66a820ea6b3e65c5e5292

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.395-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.395-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df299a348bc9a45a81d5bafe8e2395adad4ecc7fc1da615b1cc18e396bd55202
MD5 a890310064602c78d2b0bd5a9c56d048
BLAKE2b-256 a664a28455c3399ffba2b7919fa2020d0364eb5098d6adffd08d40ecb27d9292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8f57757d8ba9271f60cded34af94fa9e7f8fee42a3b89131508cf15ddb86c02
MD5 3ed07197b33acfc930d4105f2e9cce0a
BLAKE2b-256 3e03f7fc49abbcf764e49b7a8842885da77fd4514eb061105384f5e87dbc0e76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1d0845ae31fdec17a1088683b94c457eb455187c1c29ca05831d8c7d5c34352d
MD5 dc64dfd3da8f7466102da1b949e5ccdd
BLAKE2b-256 049a76a6a7f49d9ca24ecc08b8c9120365d23130f1ee6ab4c02163c776544cc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 16db316b882ba39eaa7791630523d7467796b3c002d9a08444973656a5b9c8a5
MD5 e7a5b55f316cede5cd6a62325a3315d9
BLAKE2b-256 791d83082b9548479eb89e51e61ea9db9c3e50ce536eff5cc7c68657bec42612

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.395-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.395-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0dc514256b421f29b88e328c948354054e00651a720099ae1e1e46e640ac4a7
MD5 ecf68bbc93ee9d7d3669289466202ea4
BLAKE2b-256 f879f91d9446f8e55ec94e6484e5a35472bb66969430ea9abd7b1eae28805fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91ebf20a7dc26772b8ff1af8462f08ef5fca20b61a617f9159ad1bd684803a08
MD5 c813711c6ebc34056f4ab09340dea956
BLAKE2b-256 7c1ab983e4f9f734aa62d63b429fc5f53e911858a24e14f2de4325f8771cf08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4bd85f195a20830951a7a02e5af9fd67ad920ab65e72b204ef952e52364e0a5c
MD5 6a89a093b847c895c32093c8021b0b2a
BLAKE2b-256 5ccb7264a12bd21de0e34ec86220784f568b01bf7d964e6526ff8c6464a4d356

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 12449d11d1261af99a4b3917beab81bd3da8201fe5311d98e596263fe7463240
MD5 7d38c1c6461266407ed3844fb3083d6d
BLAKE2b-256 76ea0827d83e565b16ec3f7fce3440bdb52e066a400b97458eb90ca75fbe7f68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.395-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.395-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c87770117aeffbc2e0b2eab457a205afa161b9507e624e25882de3e07cbfd68
MD5 d76d8e5bd2a4af6e539a6d841efdf7a8
BLAKE2b-256 ecfa8f19aa38e1ccaa6b8181e950bbbdb73bbff23fcfce3e8a57979946ae9cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 caf3e2f77b7a70de4a1cfa9bf0aee0f1584486371870496203dca31df4fd60ec
MD5 56bb8168e2cbab290dd97efcfb9d8d8c
BLAKE2b-256 0d588251a91801d4987a221ac36b70058a0c6fcd3eb4cc3a67a90949d08e6aea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aed4adc93202588ed3f5ff5be426de8f2885319796dc8e9d2b43a69f6811850f
MD5 d04ea6cc6fe973ad552ea4d06605df7f
BLAKE2b-256 277862c1261d7704ed55bd7135634a55a893d9470f6764a38700d29c74a901ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.395-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.395-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 39ad2ecc3eee56809936b0d94596f63e8e717734043be0a9bfaaed19be425616
MD5 714af1ae5463de92ea53d1ab8ebdf808
BLAKE2b-256 f5f9a50166cbb3e77346919bc1aed4f347076abe9c77dcaca0a9d8612def3d36

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.395-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.395-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae4ac6c75d691338ddbe162a4ea26f831bbfc9645ad483e1cd636fe08e2f7092
MD5 ddf5cf0905114e63b86c8f49cd14c87f
BLAKE2b-256 5fcefdad8ecb41d2a7e565ec3230cd680923d0d57573ff2ed25eed6f288722ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.395-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28f328b243d46cd2308c202d8c0298b0521790833345c66873fae22bdf448a3f
MD5 98833c6c9e101eb4ea97095f56f65036
BLAKE2b-256 51ecf550262318a2dcb11544c54df9121063018bd2b09e1a6b9f78ab7c16304d

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