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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.254-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.254-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.254-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a35de38a3c8677a33af320a435b366a9418b08c9cf287483bc65ea70c9954e74
MD5 4c829f898fc7c8d28035e2d815730d88
BLAKE2b-256 c680db0d848e8ed39762a33072ddb5bab5168708306ad7a7b26882dedccf3963

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e98a3e399d622e7290037a4a9204c0bca2e9a1f842ce6a8e4016538e60d8a8c5
MD5 e566058864ed0ba873783d160a77895f
BLAKE2b-256 876f0e1d974d72aff7cbcef4fad46546329173cb175f43343a21e92162a89c11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.254-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.254-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b01f267f30e518a82925aec02d0d3b728e99b0a514c6dd5f1eb07a5b2860b92
MD5 0e5fea08e90da7fa31d95058fe3c1c12
BLAKE2b-256 dc1eca3f4dee560509495bc59368b8a25d6bdccdebc3675f5f1afbe9d303d28a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88e3eb9d1cd4c73e90bbbe40dd579cbeee89f81d92abca93ec41f3747758e470
MD5 e075c86ffa714a229829abbabc935b07
BLAKE2b-256 34173c17c38913792a4141a74db231c932eac8b195e20fc9a2879419da6b238e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eae6c3b1791c60a5acb03fb0c0e2fc9bd3e3720f49a370faf5301e1d41fa7c3d
MD5 997cf1d1e037cd296ee30073a67ceefe
BLAKE2b-256 010e571773453405af1a0a06fc9ac64e5ce789fb7f2d821ac5f00024288563b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d30412f98ca17e5a6375c6e8fd370b89fd0ca6edceec150215f5299c78ef815c
MD5 c6996e1ba4815a28226800667eb78ec0
BLAKE2b-256 c81a1371b8a8eb7884716afec848c7ca38e6d9c8ac3fbe60208c0269b78d881d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.254-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.254-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e390906ad9e6d384871002c7cd872fa20022f0f43c1e403564be28fafe524354
MD5 7426b1f5afdcc001923891225a3a7c02
BLAKE2b-256 c15ddad6b8d9a8856805c5a95a3021fc5fb327a2c1186dc6a775edd91af244f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e68efef209aceef2cf52a8c7441e3cb9fb9641564859851cf803f51d6950a11
MD5 f41ade884814c519d951a58162a91f8a
BLAKE2b-256 b2194f4ecabb1104a4b4f22cc953e3832f0baa971449d100679bb9dd06f4450d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f33057ce46d094751c802d0813a1a121ec38d317b92702100bdb672deabd88a
MD5 8aa8d4aac755b5e7205a6af9771fa2e5
BLAKE2b-256 d11b11dff1b5d2fce5e77b4cb0f1e213059efc804339f8969a7562fba8a6072d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fffdc1deb9299af43964e41aa74c202376aa8055a822e264bccfadf1ab98e802
MD5 3eea7cdf291c13bd1aa57d9154919c42
BLAKE2b-256 b47afcd771e8be865860b293d282a08200a7acb7877f519c29b95808457cfdfd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.254-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.254-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7a2d2cc8bca80e5351bb98b97d8deb17b761d4a9d7a87d2d6fac76e8b252562
MD5 e2a25b1bae651c93dba6e98a9341a9f1
BLAKE2b-256 88561c7409244f24ba51e10f5d80beb9dae11619ba98498046abc8540c4b932e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1887157ca4916aa549d711b3ec4e3f8053f28724158dfcf9d4202def61119c47
MD5 7607296bda3d992121e3497ad34757c4
BLAKE2b-256 34e4e2e7de2cffb672c032833fbe7970a4b4e75303e6dd6d6a23080fefd12d83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7a904ae246079ae6936e1830b401e4f66c5515b2d4bd6332681254c27fec9e56
MD5 dcd6a4cf02b8a6bd7e90076068562b5c
BLAKE2b-256 6bd14e6f3eee69e6f3730b5313695d29cb41b2ba8d71492c0238cb511da2c75e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7d6d4e7819d19c4cc8b994311240136bec2f6e7af9c317305d4f74a6afd3eb6e
MD5 78e02f6acd61f9ad57871864645a7526
BLAKE2b-256 3a1ae7f3e21a325c1d6cf91bcc8e274d5ef3f335125209cae7ac96087fddcd3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.254-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.254-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85fcf2a2533f00c5e74c4a415c5826882f0c76e07a5e96d8db1607ffecffb03b
MD5 53ab2de50e529ecf6b4f470cb85fa5a5
BLAKE2b-256 83ba8d890a5785ed5f9f1f01205fe20d054145b876977714ddb6807db8bae0e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f561c1eaaee3d8253e1bf35c74c347ecabc8d800034d47684cfe1f65eb57c08
MD5 a20284add0449c45fb2225fe8c3b7f13
BLAKE2b-256 283531df1a4975aa3c5de6e8e3b5af77b17fcccfb90fc5020abdde31fcc5a419

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aa5249ba81f922ab00ce94f5b9777cc7353676e6abb94cf525ceedae12af63fd
MD5 6b129fdebb167e37e6b098974e4bedc1
BLAKE2b-256 4bc130930ea4885128032f85f7e5c3c6270e0a0134432c6b550ede7e7bc9c797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.254-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.254-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5b48302101e89cb2560acfe0d63705e27f28f8a53fb6f62813cde9ca4c03fd96
MD5 fc1f015d949ae020ac5a40216db8b5fa
BLAKE2b-256 3506f16c2902fdd4459b837cb2ea0f45bfb208b016147d3d931b8786f792c03c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.254-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.254-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62e9ce85d72e83d2a53b096a516a987bda3cdc92e1bf8dbf40df9b3f36d0876a
MD5 06f2afd768575345a37c429de3a25191
BLAKE2b-256 2b40cf3bb1363391c98ec52437311dee61e0bef2c3e39e4c92db699e03f33587

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.254-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52b5c98cc8695521592422d401c8f9c38ddec9bdee3d6b77e446635034770d56
MD5 01866854e908660f1f7306c5ea3e6330
BLAKE2b-256 cca43137bc18d0663bc946c70f065331ffd68d9b97f00fef10bde196ba7dda58

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