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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.140-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.140-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.140-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 00e7ceabfb4fc96cedb69862e0f838720dd3581d6b16b6b8353efb4074160c69
MD5 f6defd43d4e7515afb77fca318573640
BLAKE2b-256 5556ec23b0ebc9658cc6b88c50ca91e1422f9cee9b1408fae9f05bc2d2744855

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 29cace191d2fedc5374c54d63ad8871413d6d61ddc7197cfddba31c47e2bbe75
MD5 583fd995fbdd5267d1f4ace216c82e60
BLAKE2b-256 4a2c745af8c19ab8b016cea91ea2e36b1743f42011926fdbb86cb173c86fd4bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.140-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.140-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06705d0a93c3f880cc773d1df719691a27654fef80249cfed56cca3c4fee754f
MD5 1453108289723742ac69cd8c1698019b
BLAKE2b-256 53a2e8a8d759ccb0356043a9e66449ffec78e99d21157c36e798e94ef591ca76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe356acd63d0e5114b11088a8a33c76ef07819832f1f6554b4f4a5037e4c0b5f
MD5 a381af67aa61f3bae5ea71028b5e51d6
BLAKE2b-256 6fbe081b07540342f6ac9c06086fb8d80c47632291e15bdba893bb8ebe403300

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9cac4315ed5e54dc155613f699356cd1b274236117e7cefec9fad9ffa07d6797
MD5 a7eb87c76d0bf61814dee9c7d75537dc
BLAKE2b-256 6926a93f49dca773f4bdee37b7229c838160f0606725b54f0bdb5874a6e32e63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 27018c4786540e701d86d9596fae6b5f6fb216b3690f4e623f60fe515b8be12e
MD5 0fc30b928862036d09ddfa5535865b1c
BLAKE2b-256 f04d73a08f6319d01703f63135f10dcab87ac4901a1d8fa6469be2d79ac39b67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.140-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.140-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 34bc2fc10c10795704ae46b91045d11bcb8cf25975f9563e53bae9704acc2482
MD5 bac471dbce247f975768bc4481a30e1e
BLAKE2b-256 378a5d93f3839bd291fdc153ee06a90758b6207ed77ef531a1808815157c0e06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91d7f46154a7ccdbca3ef1d25283e9fcdfdfc78ea7f1b033a9d5c2354c80c34a
MD5 f8d58b5f276363328cb3937b2c0b253f
BLAKE2b-256 fbc8debee576fddd6a399b8198662c776f6e228960acb9f36def464e371f495d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 95a85ba81c6a87b16b86b3bc96493af80b6ae92bd11cf14086625897a10bc0b3
MD5 25ff421452e8f3a008576946dc1ae6f8
BLAKE2b-256 cf2ec24b9241a50c3aa2c9170a56b0a2a14db2bd6fb00b308954f44fd9093340

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9d1cf836ff65f1788555a6283cefcaae60e57f78cf0c6b39b1dfa27baee05ac4
MD5 9b31b4e5a67c0986d1be3775763b22b4
BLAKE2b-256 7dddc2a69434f98fb1c8422b39a5b6016d27037656946bca0d37e189857cffc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.140-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.140-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcdf29ac1b3dd2b5030b4a7f42e731b27763095cd97e4a707eeb490636c550dc
MD5 d96ed1c413a9bc16c12a4fbca9afefd2
BLAKE2b-256 156729561583f5cc49f9f976602e39d068329019b7d5f32e99bc0984bb0a4bd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c2ef4e7b908183e9ac353aff73446f1f94081aa5d0eed6a94e0bc50a73da50c
MD5 d9b496f186fead86f8342420d9857d0d
BLAKE2b-256 83b3816b5cec84ba2937a0989bb480ded1a140ff2ee93f0309241d9e1661e928

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 30cdcf95f111a7fc4df32aa609ca2e25da43d67da9817c2fa2324c0d44519c29
MD5 7e4f28f2662e20842dc8f37c1af41c02
BLAKE2b-256 1ac6eae130f2daee374ce6a349e005ea2cbebf8f4a8f8ce7cf4976f3db504464

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 99311e51b3849ddadac0fd8367daadd1ad278e984d39979ff608634355073881
MD5 e75b72f41516244a1dc1c1cc85ecc8cf
BLAKE2b-256 a68ff6faee28482bd0cb624b9a1608779fa4a9f0b65376d1cecae8509f9a4095

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.140-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.140-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9700ccef8af6a42e7505c6c3a3ea2f457977c9c0cefa48ce57bc3ef8c1945b64
MD5 ec2bc2aedabf250ca94f9288c61e846a
BLAKE2b-256 0f77f3abe8df1ec3d5d73f61f39b2140bac68023c9a6af91f0e1254188d205ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfe4e1d88d10233f9e71537b2a1a29f2280d49387d1d499d1e94d6195e1d1056
MD5 522ffaea15bcbb1d9da1cd25e1ec86cc
BLAKE2b-256 a9631c232c3b1f969e3761a1334dfe993312d8c9dd57ad8d5d9b50dd8b1e3ff6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e7a3fc02516f01e1dbe56202da3feeb3035f8f3d4f98434d1cb29fdb2b516a15
MD5 c8af670ebfa236661a2a8dba9f3b40dd
BLAKE2b-256 59f94123ac329cab3af887a21513ad149a6989b8a31dcbc7d186acb39defc5c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.140-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.140-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0170cec9e2ac11f55156938f79cbf0b1576496c2b648d46ebbb200896d19916a
MD5 446108a6a89d1058763a3761bdd4abfd
BLAKE2b-256 d0a52ea3d3afe634f09cf9680cf20e02945a599a7a378e0f3c067e0e190564e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.140-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.140-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 692c3570d09c5a20e456fc8fe020f8c5d1dbb7ffdd34562ddb774c5c9f980ba1
MD5 9f769f100a25e0e247cffb7b4801045f
BLAKE2b-256 9d3b26e9551ad9d7b72542da5fee183916293edbebca6dde6c759885e3b47fb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.140-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3af1922e0b16e58976ee13a3af13b9ca45fbf951ef192101bffe9211ab300f52
MD5 57b0924054c136043ae19d777df3f042
BLAKE2b-256 55a2929ba4d8b992887f81b08b57629458dc4c592cc799cdf5fe784188fd8fed

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