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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.725-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.725-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.725-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a29c75aac23f9e1a0708d890a0d03294a930a6c1aa208a85ccd16fd74419e56a
MD5 0afefac5cb7a9d76fbb25f861cfca036
BLAKE2b-256 63381379bf8cb0d5f4c71b383638d44b15a023f6a9e2a23434373b4fb8d3e58b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 46104e2f0047c288c8ac29d6351da3b740260368829cba1e4898e292acd17538
MD5 f0ee2b342a2f5e3717ccbbb177f0ded4
BLAKE2b-256 51a5e3b3ef2a8d276b1f6eb59ba5e42b4f128e397bf6b95bfc4287dcf6feae9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.725-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.725-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b0daa9ca17917c50d2e4dcb12832dde7389a9091b81d0f291bf7475674463f1
MD5 c49f240676f791ed45e69ffa6ef55e1d
BLAKE2b-256 72c7908a0642f10f18cc95108f439191b696e72b1392c772e06b35359307b208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e830574e25a9c391ae7ccbab511202d4a05081424778be366d674c40f24805fa
MD5 36e12476941c42e5b47c0cf577d5186a
BLAKE2b-256 1e39355ef89a48d06fca676b0b0e9812603d0ca7836f17c2749bf3a40da9d4cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5bed2b4131033e41b8537ef919b6014c68be40708f640386cc79861aec31e030
MD5 e794d4361afc4db247775e83baca4294
BLAKE2b-256 d1bd50479ce0e9e530bb201aad60a1e1d7689bd73a91ed7c3500ab34b46b67fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 32424f56e30576a69f438faa18c1647543b88c650d21bbdf608700a2898f5403
MD5 42bb085259386c06590db901829fafa7
BLAKE2b-256 d7666f10fefac4aba1dc49583f5375db9c2b60cdecf34294655e8a1666968cdd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.725-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.725-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad57173fd37400f1515163a97c9d5168c8c02a3547a4b70c96d00ba6d9a48a2d
MD5 39c4ae4989fcf03954e76669c8b411f3
BLAKE2b-256 ced91a9c2bf93de0e9471329ac23e8e3c7020ed5b3d9a963d51a2050578c135e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 904c2cc268b0d3c2a18a4c61616ecebbd9f8f7b7b3f7269d5e6bff149f566a17
MD5 894bad6b34ff7455d59a8680da6752b5
BLAKE2b-256 5384ba1bf5032a0e7f193bcbaf05de5e46100f107cd19b8d981a57bf68c70a67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 003a4bab193123660e4c02b7c65479b583668c2d0600dc931a68646a5885b995
MD5 891c2491309ab1d76a72797394adf338
BLAKE2b-256 cc6d586d9540b0e5e3dc20919e7a56cb9d514916e77f1981a7119fbd3feb4bb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7a268848bc403ca904ca536cd90097f230c56602ec1997cdbdb5ea9331bdfb5d
MD5 21057ecf64d4872bb9692839d3a18bc0
BLAKE2b-256 303ab3917502538fbb3f73a172479a6164cc7c9f50d1927c9ca0687884f33cb7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.725-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.725-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40ea5cc4d435505500cfec56ccf605602590932649680a59c7366d7c7249e154
MD5 448603077cca9dfc9ea45d3da8147d16
BLAKE2b-256 dff26216f9f71b8222d7bdb13b7ddddc0ae793e81fdd9fb5d279bf04c9a8752c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67442058aaeaa18a7891403d5d74888f4677d4e707b0453a003123c8268dbd69
MD5 913a8e9f26d0d62c61fa07c05ca15e48
BLAKE2b-256 aaf15941020b5ad413069cb7708fae22550c6f1d37ab0dd2b3a28b16e297d083

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f6ad51560813d34c08c0f6ae2a6da86e235a8d892ee6ede2d68207bf57d78fb6
MD5 5b273cb3617e596c6a86dfdba4a2ed21
BLAKE2b-256 629892c7ead8dc5cd6a0a9ab629cc23a6ca9bb5896886e5a692cb8e02521c6a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3a5ffb3a3eab2bdf889c70a80fac6f9554749a9732afe0b3da0b7a7cbf60aa01
MD5 4c0ced0f6560b4743a4196ea2ecee988
BLAKE2b-256 a2ac2048bb1bdee13f0d3e53c57e9d338d4e1a1d38add97c4e25e7490d22f04e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.725-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.725-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a28d48f2c1b32a93bcb839f34ea41509626baa1d23e8a61120e823dda1b1c853
MD5 8b8bd5232aa27bed922ddef609b07c0d
BLAKE2b-256 5a695e1886cdba93973063c07099c5a9390e9dbd5294eaaf0caf7a49bda9d5b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 293459053a649d259d4e991058784ed0765e1e7e4e93ea40945e6ec2cc769714
MD5 de66b85acd3ed2022ad36f0dee90375a
BLAKE2b-256 c8f5cf249a5d71aa3548f60e00b9a668d8f43e9dd84743f5d97725841a4121cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6202b94372a110f1613a46edd770fa627abbfe2a2d2a8753ae1bc8e3d148d67e
MD5 6e4e0761bfe5d89427a76da660850de2
BLAKE2b-256 db0a84fa83fec3fdafa382189a35520c8d1a80ac30ec846e2c8f773bee07c1f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.725-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.725-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7f8606c740ebf0fe516a8694a8918cb65bda4888663ae9665a36362ffa45eb20
MD5 f8f08990ec21798e35cf98a8dff04494
BLAKE2b-256 f11c89b9a3ade774b30b223c4fd280210d133e599cfc8afbed2a0f2250c0f1bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.725-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.725-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62009b1086bc9fc746017e8dc3cf637c19c48fbf87b37d5b28d22acbb657228c
MD5 5c632011e211e04b7c47ded93ed82464
BLAKE2b-256 ada88f9e6a205bba66393715a2a149e8e84c3534260de2db1425560addb67fc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.725-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3c3b13a37bc4e7b597cb56e5e1b5ccc963591ce57508414d25db3dd52b5fe69
MD5 6e6d9e4a1d2e666b23ccbc14e20a23b8
BLAKE2b-256 eb5d9250c52b40491c7a923e52a484b6d00094dbe6f898447d0a8e88dd52941f

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