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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.306-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.306-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.306-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 be9a3d9f0dceec02c210a660c816b9ba13c65413b742135739b188c5dfb78152
MD5 42e872a113e888ebe799e01bc5b436a7
BLAKE2b-256 4f639f7058ac0981a15116ed0aad1a509daa9e79bff89c3e2989434cb4e40ecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f774496da122052e7f2131d9188a2808723988e86e594032c2708ffa1f6d2007
MD5 59007ed1de13c4a35702dcbb5f68dd8c
BLAKE2b-256 2dfccefa2d554a5ac2106a5f8ded89c89a180e61c1c310d228f4efc6cbf1f33d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.306-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.306-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d252a75215fec0e13e36c5376b2bd393839f50cee5401c5895a3d9c93e7cffea
MD5 211397533a25265b38cfcd6fbac7ef03
BLAKE2b-256 5657f28c18a38d17b9ff9f75392501e4d7d896dac2f1d2f472c363ebe3077a2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2531bb3865eb35ef71fb87c26e2788944e6f4e5169dddbd17bfc702e7fbed726
MD5 51017ec23c8c1fc80c7f189abfbb9aeb
BLAKE2b-256 fd8c018fc3de0ae4c0c75b099f64a9400d88f6c3e40bd6cc1e829188aecfcf33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 afeca17c79bf2be49c09bfc7abfcfd219f28175c218fe90e67907b551322e59e
MD5 f465393d27a647655885fd189e04b4bf
BLAKE2b-256 dbfd922fbab62cb476bdc2bba891b7fea14016d0062ad9a7aa3186a376b2bd5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 168b0bbcac16b455f49129b0e26b2eaae65dd5255374fbd1bce0ca5087e37320
MD5 c607f7e5a77cbe80b7bb0ce618702b40
BLAKE2b-256 172e390406bb64a47ef5a419f769c9a3304df3d1f7ba18f6fa04f598645727d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.306-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.306-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f508383d98affceb968a8ed234668d4794d8fedb2b5776a3243d86242189e287
MD5 75ad44f16ca2cedfff4615369b06dba0
BLAKE2b-256 40c9948f359af4375ceb7c75956a4aa501a42f02587de385a2c672bc4c7333c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57caeced5dfd657f73e2731909e70a5db2a5409c957d4b9d29a18fd1bcd22010
MD5 6ede6af3037fca96e1910058098fadf4
BLAKE2b-256 553e619f0b188f89773123f53953a3d83f2aa73019304ba19e8c2c22a11bcb29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3333db922eac4f8d6cd2f3a95fa26151169f1dfc712100b80deae68efd6bb51a
MD5 d3dd329ebc554e91362c1754ce3f1dbf
BLAKE2b-256 d82f2b1cfefd8ef610e1d44e91bd4978da874f6dfdff98734597cb0d18a0fb74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a231edfd3e86849d865d7170252c1d0494790fad553b97f2624c3344ce83ebe1
MD5 47cd8c96ed4bc86c8c17ea626d3672a3
BLAKE2b-256 57481606c064c5f13bb3f2f6016122530ae241d5c9bf6e7f9601b514da68b142

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.306-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.306-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b8d71c9b52270db291b5af455c6a82ce8ab116ce2700372b068725e549a6717
MD5 b1686987d7020c32658856869d4cea50
BLAKE2b-256 675401bbc63322b32f3aaed97995a3e64bb063f339a4ec60ae9d009582056e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e39792676f742fbb709d23e5ad07127b05ef7a6fbcd37e62feb2d9c44150913
MD5 da2a3445e8e296f153295dc1fc585977
BLAKE2b-256 2e66d2ccbb525cd73abea9594dca93faf408ae2dbe4082da79f8fefbccb5f906

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b3c8463ce04d192b65b10b1a8d73f29b632900a38e187334690258a25ac08216
MD5 f30622da7627444e44ff2add8d384ac3
BLAKE2b-256 9946ca779beddc57b69e5ae246b67b57d8dddf97190fd040c77cc6279a3e7380

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7df6bdb9659f9eff6fb1bb0e26fcc6be37cf8e3aaaed4f30238e1287a848b214
MD5 28d792b6b6821b01db832f867908a97b
BLAKE2b-256 c8dd54de72e3da0e3933f38da9239587922e5cbe68f99feae466177ee0ec9278

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.306-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.306-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 118353ed9e1cb7bb6c43c7bd16b4b546ae213afbb4aee30629f9ada1f986d287
MD5 04b749990b77ba09f04251e3c098d5df
BLAKE2b-256 97b70c0396f741221b9e4a75e605a0683a7420ca9294ae433c63557282bba0ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61e0471d90f25fbecbe01571174026c285f70422b8cfc4d3c8df0a86ff95b77a
MD5 ed3cbbed3adf274c89f6dbd93cf24004
BLAKE2b-256 88db6690b3ba4e6a4e1305bf120d2effe18f58981e90a4b52e9c44356d551872

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 12c26af6c6ec1811100b97215da2573f72b96f9be3c71f9b0ffba201df508aae
MD5 0f2c45f0b5a1a16255df41f6336df77a
BLAKE2b-256 1e43636845b395e6905469af8db501070bab497ac24a95855c6d0e4b26ffe2e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.306-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.306-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9ebc5dcf7bebadfda0820ce1f89481dea50a8b1b61f69a888c35373a7c78e7af
MD5 5e973c33e703f05675cb999509ba91a5
BLAKE2b-256 543cf9b7f578653ae10ba7bfb1e598b35a9116d1f70be8580ac8ce934aa87a33

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.306-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.306-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09f84c1a309961832d5569e2c13972329ec60dd7c5d88a0e6703b01aa1566e36
MD5 9d24068dc0705defb3f0fb5977c5573e
BLAKE2b-256 4d7099a2f29946387c4d1c2c52bdf503c9aa6fefea348829e5e80bc525fd0d54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.306-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77f1ffc6f8be81bccf22bb16a65c9b5b998a2ef48b8ac7e349b857b0ce15c5f0
MD5 4be2fceab5dbe928fae9851a7c1fd4f8
BLAKE2b-256 e3e35a89b7ed2e8792d34b0e177281a19997a469c71e712b20807b0d50084442

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