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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.927-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.927-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.927-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.927-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7d08ecfa8e8ac11bb03ea67bd163ed265bfbfe2b72a9ace3bbe2b23726c7fd5a
MD5 e50302b89497f51c783198552d8bc8cb
BLAKE2b-256 d7100901bad7390f0f7c66de1d8c8d64ff297fca4b8dacf8dd06b19bd0229557

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-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.927-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3ec9d936b3cc49e4aad1f842c9003a850205d596d8e19ad50e7ef4cbcf887c19
MD5 76bda39e215e957fcfa82f8b07e38382
BLAKE2b-256 627b87e76199615dc93ff653f3197b282561d4a826b487279b40a11ab84bf85e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.927-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.927-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b44aa4b6d2ef7ebec085baeb54a488363a8245f941031b55265f4e923d9105d4
MD5 57f2a9174cfff25961b771c447499869
BLAKE2b-256 7addd443617b152ae3facbb79d7b389aac601f20fd72460c3bb752c13f4d3402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e33ffa2fea918fa50204a1a8d072e2e60d1bc68b3b7229110a4ce319f3ac5044
MD5 ea5deb36525e01d69e8cbcf25174929e
BLAKE2b-256 ab68ae48264057b7ffe52a9fba8e5a7a2f98bbf68a1cf0eed714f46ad2746e21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea1b44e47ce700b455719f5184303078b95b286115e0c5af70cc059f53bbe6ea
MD5 3dd926b7dabcd1f09071332a9280145f
BLAKE2b-256 62ce1a049e54f824290b7bd7d2cf238b437f3944c4aa2444709935702c12a34e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-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.927-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4638d27817727480ca699e9b1d2b7b1d3ceeea8250cfd87015380770d14158fa
MD5 34d1421714e3079c8c722126bc89d471
BLAKE2b-256 7122d26e058658b95b0f23e0145c73cb98d3a221ee7ac21a7e48fea4ed78a38c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.927-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.927-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e814c719dac8069a503aa11d2d3094fe434c4a04a35ad87cc04931779bc77e43
MD5 1dc2a82144a1ccf06f632125c5027b31
BLAKE2b-256 f748b059c2e396a3146f574c94b7195534a43efe6943add73c3e642927374405

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5610cd33e34d7ad6406f1f16375d70c97d281829612677ae9e605ded6f9abd7
MD5 f87bc8aa76020d7e766f496b0bdb40e3
BLAKE2b-256 ba7a46b986f521589e7374540370a6ff9a5f4cb4b3bdd971428941eb921b6c2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b0a4271f2ffc095095c56183c885288586789023efca366f45b42268210965f
MD5 d9c7a1244b48e178ef313a144fdfc8e1
BLAKE2b-256 d1190cc56bb0544c2466df60aeab698694a1eccc1c154df6d178c31c52dbdb0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-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.927-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 25823b8fa21ed7ce04fb508f4cf7e634d700830d0ae548053b0611aff95cdcbd
MD5 58f7d150dbca1f8ac9e73d59ff6a5002
BLAKE2b-256 ef2b3385d6119140e0090fee79fdf176cc07f2f4d30b619af918d97a80e28f2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.927-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.927-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ca0290920e7493dfaa81c3acde4600eee04b20af27e0d3195efeb34c25819cf
MD5 4a6683f074af27bf23293c1503d5246e
BLAKE2b-256 562230cd71ada867c56b2193ce33009417d3b7a16cd74cf532dbbd898138e6ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 992b14593001e7f570a752959658d22ab416418dc83edbfa4750256c66c5f08c
MD5 6ec06c3987bc93883429a55d210f03f9
BLAKE2b-256 84bc1b899b16441166abd08fc9ea0bddaa033d9b319cdbc4d917a2e6ab608889

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-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.927-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cfca84cefa94d621043eb82a85ca211a91265f559ca97ba631caf9923809d3aa
MD5 81096affdbcfe22dd0a2cebd1e848837
BLAKE2b-256 8cf8a8adee95faa26df3cddda606814081f58b592ee06b841e227e0bd52ee761

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.927-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8864dc464088bef65b9702e963cdf685fb23aac549af6978d70ec115e1be1d73
MD5 e00d5ba7d107ed26fa15a2c92093d6ae
BLAKE2b-256 9b30238513dd63663d25562a4dbfb42e9e9b6c827f14ec0c3603ef39ab60a82a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.927-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.927-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20eeced310588852073fc34ad72e343a3e79a2c93c28bb8f28e469d250de4aa6
MD5 88dbd93e59b40557688b63565ee16bd0
BLAKE2b-256 57c884f1e7768f2130589841db225edafddb0401bf9db488c11ff5f5f273df60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4959e75d35d3e85dfae83b0e0b602132652ac9521c4000d3f374cec4a8f29222
MD5 403492a104013dda304e44fb370fd8fb
BLAKE2b-256 af693c9c388e97f85b0b4beba55d0f1a0093878cc8bfa731fbbb86fa27f11abf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-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.927-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 16ce526ac1636f8bc6ed45a69a49996ff24a35afa890d0d85496509c2afa3dcc
MD5 d8f105c3af17027821990287b7e5394c
BLAKE2b-256 3324a77da75b59eb0f45e571213bd4fe5b43715600a247faa877338a3987a059

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.927-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.927-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 96e15ba5db05f1a9ce154f41ad472dd3fcd953a8cae093bdeb59698b4f58fd9f
MD5 427a2b40b43f1ef5c73c56fe2ea5900d
BLAKE2b-256 ff833c9d075ca7edd1aa5b1231bd60bbb493168c0aff1537d4e046b54c999008

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.927-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.927-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e68e1e708d4b1d8b0f4deccea6a9b65f467559533c3de0dc5fc98a74382365d
MD5 d952f486d8e173d33afcae15acf78043
BLAKE2b-256 46b52527e132ce703f50b48e963701dd87052b6d246ffb39834cbf347e66fd46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.927-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d536ec07b6644f24dd60319cfecfba9b244b461e9e9ed37ee6efeeb968704d28
MD5 5fb6fd63499bbc36da7d0b3d984dfa29
BLAKE2b-256 600b806ce5789acef712a50b1eb22a9b5a081b039892d1e576a823ced6354fa9

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