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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.265-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.265-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.265-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c8cab820fab7c955bd6eda834b2f7a5279808fc61a873d2795f139638f9649e8
MD5 e1d218be80fea737498eb7e8cb7ae7e1
BLAKE2b-256 d9fd5a48474ad49438260faaab2477cb6846de76b26c6de0cff13d0287b8bd97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d287ea56827d4c93805c02b061f9829e8ac1df2a974ede7787946b5489e7347f
MD5 49fe6bd8a9081e0168d40a4f88a0d032
BLAKE2b-256 94820030beaabca24f751ff226e9718872a8a413f0e3fac30387e7a179ac0369

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.265-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.265-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c9053616683b2d432fe083bcf29b0875529238ca5a45bf40b2c3792cc5585f9
MD5 836c5d7efab424678cb08114ec92bb3f
BLAKE2b-256 02b7c7777457a1f53c8d2051ee45718c19307d5f3c4c235a6a6f53f0b8df482e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d471bd31dbcf1987e1865cd2af142da703438932686c271488652ce9e5bbd96
MD5 141849342637ef824e9ad38f4bc1b367
BLAKE2b-256 4532be0a6d42e2ac130fa120b5cad697846d825ee0cd3d5f9e7d808d59cd353c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e29fbc13a96fb0f17e63bd34da9328bd6218a82ff5da4ae5286fb03930359565
MD5 1393616f550643dc74e37fa893590fe6
BLAKE2b-256 3be02dd1e235708af734b3129eb4ed6bafc81ecd8df827c100ac8fd0ce1f4c74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 125c9c025254ae0a2b0ef8d33c91e0eea3ba633c7d8cdb99032b23db3c78deca
MD5 4f682be89ba8932014e5d3f0a72cd672
BLAKE2b-256 e6d899bf47f0accf0b22e8d3d0f6c669fd0fd57333cb264264a06cb63edcb2c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.265-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.265-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f5e13196b8aa4515e0e19016b35d9dabf62e9dcb78ca4da96afb53fed9fd94f
MD5 a72e86588814c29d0bb1a96cfc8c2165
BLAKE2b-256 279b0d3bd4ac2bcdf2f573713bc778d5114d8c6f5a75fd5e48b75ab72eacf6fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f19e13183eae71e5357ce318ba560ea4c541991da84ec4e6965559e1f639e3a6
MD5 44e9144bf00040b0bdd1fd20f7d190c6
BLAKE2b-256 8e871747b09e275abf6ce92468a2e8847cedd58fa0e52498f6dc8efd59cea2fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 efe691cab7b8e0d4f51249a4092dc460c49604add3f650a3f0e2e9df70cb1dc7
MD5 8316ac74ef8120ace7f74f45adb5ed05
BLAKE2b-256 80f72d710373011b31873acae3b65c6e9240ddee4ce30ffe88d2356f376b036b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8e8b46994d256a40fd058811029123a5fc8815f613b6022f9ced5a359bd61231
MD5 a70ef492b47230c5d2e7a55290bae933
BLAKE2b-256 f8ae3480b95d45b65e17f5b5d6390031f687f2f6cd4f58d9fe680e6f877fccc5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.265-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.265-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 26e9fa9ecc1a65903bc9785a6e73aa66708a79c284b9e4f8edefaab3572703c7
MD5 4a33701947f5f14c70dfea80b7e6d040
BLAKE2b-256 3f6c9aecbf18326d77b5c70b5de1339a52fe0d0a198f151be26daaa09111cae3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ea9afdc234959db14f6ba9bfbc8b9ce450d372df07321d06c55beb6b54f20fb
MD5 c79979d9d36f933a7a98c3fed6068da6
BLAKE2b-256 61c7d0929e9de1a8355fcb1f26d3568f72729bf9c674843756bfc3144204732d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bcb9f384e18bcaa4cd4d6b2b9d2767f4843fe3d6f6064cb5a8dc71077d4c841f
MD5 809f392bc9ed02efb8568c9bee60b548
BLAKE2b-256 2886c60c2cba24e9bf7e446a50c89e18ec1e988fb3b29fbc16ac91c631f06d21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 59547f950f967157f62c842dc6ba58d9ed31c44512bb7586aec69e2be59e6ae0
MD5 6ab3ceb7c776184bcce2fe24d7cb6c07
BLAKE2b-256 d3031d36fda6d8cd79d9d87fa426973e81b280be3e065eff183aaabe580d615e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.265-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.265-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b26dffa711d21c4a1c2a38205ccb679d003ac0a172e716e085ddeee514b9565c
MD5 3e30b293488f58aa3b1b848aa2246ce0
BLAKE2b-256 fe751e2c6413c1681dcfb0418206e84790878e5122e31435d2757d696b194a59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1515e9488bf12e2ffbc6c37400bf4ee4657bb390e08836f0b9a98ae381aba00
MD5 f249c01d04d8ebc3584a18ac7c72218a
BLAKE2b-256 6116242f53df8f804aa812b6eeda21d5bb680feaca910001deaa89033586b9d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 55a2956eb016502d6cbcf08fda547bde7a4a46e72c776ba7040dd38f9e124f9b
MD5 7151500a45d5de9383e64bf1dc7c6d59
BLAKE2b-256 f035797fbc854b138a6d30cccc6b07ffa6dc1b79b69f9d0440de8a58f41cc1fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.265-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.265-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 09e4af5bd6ae0eda2a0b303e65fd49646663ffcde88ae84533758e7d5c02e36b
MD5 bbf9581051235c54d6764f459c78faa6
BLAKE2b-256 5e6b6f54ac9a9811af637af57bb5c506f44d401e45a0488817cdb0c4f9048ecb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.265-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.265-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 107c59b075c74a92eaf8367dd158f4cd1c4e5042dd301f40114ebe66f72ff16b
MD5 17d3d6b9af0bb4df417a744a609b229b
BLAKE2b-256 31e4948fb9ace39ce5dad675990f42c49987fc8f9a3b8b4083f04a72a1534ba5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.265-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e43f4860e111ed40118d547afcf912cca9250bb12285fb1f9d7635035b8b43a
MD5 e6ddce03684ed2fa2b0d386a629d5d79
BLAKE2b-256 20a328a38a80e695a4eb6748b63ecbe0b630ff8a9ba6458db3c878da20d026f0

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