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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.723-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.723-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.723-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 612826249ac053954be115a7e54d4df67d2475bb0ba311d431678db42708577c
MD5 7053b04daeb9bb9601f9788eff280661
BLAKE2b-256 eed60f0611d8323ab13894dcfa4897efa3386d6ee939046d0fd12c005c6fdcec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b7fb6cc4cb82f016d137e78552c1e789c315cdbadc6b2047c0e4540769226782
MD5 d211a9fdabcd2d65b18ae967d14c2cf2
BLAKE2b-256 2a033da2e354adaf634410729767a63a50686e60a462f3770a9be820939fa54f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.723-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.723-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f9462be0ad0e90e19280948a45e72f598e3e7172482b37e3037fdcbbd916a15c
MD5 adb2276cb028f75bb054883e1033f613
BLAKE2b-256 c4ae004514ef83b920d26c56a68885f4a82f5b524c8c2d09c0ff0b45cc662804

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f01e717ac2e54281bfcbb72ea2fdbdef1f5354859ac5d5d9cd4150529f9b23b1
MD5 8124c7132e15174451c1ad6cf18193c1
BLAKE2b-256 b0e2f94626704cde269bd31caa4a34ddbc41e374c381fa43781b3bff00437bc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7058d7a320d692de6f2064d296a3991e78cb07af5b6955390bbc4342af5e3d4a
MD5 26a668f760cb1ac38d050c6714cd1b2d
BLAKE2b-256 83db7ef63f5642c12188c9c2e82109d801afde76c399e3086749a91e04af3466

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 980f4093c00a9b0a93b020a87ffa88a8b5386e1c247d0d6e22b4ef8a4aa4e72f
MD5 0b3947e721dc9c763181e69e655e7989
BLAKE2b-256 0e319742820f1d9429a363e8618052fdcd82f9d0e5a7e52ce8780c783cb85151

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.723-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.723-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 790e04ff77c2947b66b5feee733e79f372302ea73283aa30c12329706503f5b1
MD5 65d9bc513cf89f906375b0f894ddc64e
BLAKE2b-256 cf24bf3a7aa3a6d1d3200658afe7cee5e529b750a0f3252b367621d4ff0bea4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a600eb6809df34ec4c8f330a8c861d694deb1a8eb62f1778f55731f40a3c3d1
MD5 65cfb65d955c9d2acc36f2b1cdfc47b0
BLAKE2b-256 29e57e623e39a360a5c4230ce8a5555f6511176334f4802d479a1a9e95226aae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 db4c4b41ed2327862af926eca52d60b1277300d2502ac7ae8d2eb2486acbdba4
MD5 88e58bfafe7a1d98c4b88c5eb368e8e9
BLAKE2b-256 60f502598fd9ba5ba668a5b34b24155312cc3a738fcdbc1de03514e2dc86ebb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3eec767c1ad5da458cfe791c94fa888861a166a2f16144276c8efa59332a61d4
MD5 140870a93e371c1fb77c452e4b246958
BLAKE2b-256 2ca9debca552c78a07d86989928a66d0d041b0ff786641840b146295308ecf57

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.723-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.723-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d14055962b3ab484246a3444acf7a21f7d39d6bb8c22c4cf6f1c68405b1d2b5
MD5 65e4ab5742df1d4e82e555e1054c247e
BLAKE2b-256 dea971ca4104680007be4eb6f38211ef1eeaecb98be42e519def1bfe1d49de99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1659a958081401dfb73b5c3340d64c073f92dc50e21110e0d7b6930216ca3f3f
MD5 ad610b65b36720bf00aaabae0128b186
BLAKE2b-256 c57487cfeed3aa0258ee520c7d5aafd4d524790f41927d9d65f712704a994ae6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d17c9e9113d9885187e52f723b7132a590b9e794f5867b94826735e0c22d7451
MD5 d830f7853799081ec52cd0dc6f105982
BLAKE2b-256 2fd5e8bc3d079b71a9fe9617cceeecd3c98c73813010ff406ab9a83f003a8d67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c3ea311b92ac838509fd122d802049d8d933e903a118aa7b7a422e3625956f42
MD5 782045872ad84395db39de9d216dc19b
BLAKE2b-256 c3cc7e0742652ff8e22dcd7bee4fafaf9d7c2f2288e4d67123d0f04a3bd90036

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.723-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.723-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d37b8d13ee63229ca0740176498251cfcaa8aae322568a51df100fdf15396815
MD5 2d2fc60fca42c761012e9139e1210aa9
BLAKE2b-256 485ad149d6d74d9cce434cad1cd0fd45f5b7785a6d67d5550f94a6a167e05a87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f00aba4f1b13b229f898f3f707ef09cd80190d5ee9ecd3f7cd83076494c757f6
MD5 fab00ec3571ecd356512710a8a06f5f7
BLAKE2b-256 110a8a94609d7032568b861369c543b294ab7a7272abbc539ea8730a53519d53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f30083ce983373b644e1538172afde8363cdb582dae36b0deeda72153fe71032
MD5 055dcfb651a8bc19b8a286b0e0487c57
BLAKE2b-256 191d51cfbbd7b12a26ff35d9fdee627e622d8f0e9803d366a559cd0b617b1edc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.723-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.723-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 99b5d5eb784ad0acd0d01ddc648c5b9b63804c7e259954236be05e64efcf1f61
MD5 64e91de7555017ac66ded46c2d90f40e
BLAKE2b-256 22eb6dcce418aa4b6002e723328e0c386a92fb34f6127bad4e8303c7681b7cbe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.723-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.723-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a689667bb3813dda08cd2eee95f15faa6210bbeb089f98f0898ff87f8ebe83e6
MD5 15ca14140ed3ae4cef0d35b833823842
BLAKE2b-256 29ef8f271092025ff98fd23e109ad8e9eadd857aff03f39dbd779c983415c9b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.723-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8dd499320fb92ccf3426cdb344f5233978dd587d8eaf6a823414da84ba1ad7d
MD5 39dad634801cf428bb6ecbde2ced0ec1
BLAKE2b-256 874b9b7f98317a8497e6f3a14eb564ddd3e1fc4a9729f66add28d9767bae0d4e

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