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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.30-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.30-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.30-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.30-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.30-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.30-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.30-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.30-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.30-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.30-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.30-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.30-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.30-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.30-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.30-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.30-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.30-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.30-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.30-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.30-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.30-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7be542a772a8d8e6999e339df5e949f69c110e2a18fabd77f3850199602e75d3
MD5 c3f09049c4221ab84252893b6a51e86a
BLAKE2b-256 56632971a1f4878c85cf204b991c93184acb1313b56bbbfe0b115f628cb91004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.30-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f7fb751fbb117cf87d50951bde1039a1d804f9da597b99c6b15bb98d64bbf61
MD5 c80c48600df9cab0c0b02ce2261d331b
BLAKE2b-256 dedcdfdf4e7c03af74240f0bc2fdc4db0fbf8600bcdf9712357785ed43f67042

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.30-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.2.30-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24db71aab06c4182e484a8dc1f4e95e56af91964ee8830e14d0ae8b404f8a1cd
MD5 7340ac936fb47b50263ad172ad346b39
BLAKE2b-256 3fccdee7351928c26da4cd3eb1b68b77605b620d7eba117bd5649ae122f493d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.30-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1dc7725f06354c99449191882853ef835628275c4703bfbe9e680e42e7d83b70
MD5 967b856c1a7f106969f38da2f49f0e85
BLAKE2b-256 95cccd547ef5558c191b06b2b69ab5d70fbb2c3c264d2ee96925ac740e224653

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f429472ff3d5ce82eaa96511e0eea97f3327d3bf14732fabc32f9d2028b6649
MD5 6dff823b3e130597fd6e27fe711c0813
BLAKE2b-256 5e601e655cc976f77e97bfbccf414cdce3d0f7f70408eeb51f11469a5900dd20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.30-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7c24abdf1c33f4047907ee51aae421f8a33197920eaa9b06e2034c3408bb9e98
MD5 9e2af965fbbe2e7f8d2fb354ce946d5a
BLAKE2b-256 8765b45e05a9030bb77c0d245ac2ccf132c263809efed4fbd260679b1a8ae7a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.30-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.2.30-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0742bfed1f4349179692e94b174da14e2d126cc74fe7b14ae7f1a4daaf1b1b87
MD5 a085bb3755065755bb9df9b01f1c273b
BLAKE2b-256 e318ce1118716f71ea0448b36a4e89af5b1a52c090855c628af71c112c296a60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.30-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9fbb97ad9e7d2d438bc56582fcc09fb1955e3162b2aefb2504e37d37e255731
MD5 be2be02c3008fac063ebc69924bd5db8
BLAKE2b-256 027d0998ca83c18243fe98921e284dd163eca8da18f2adcfa9b9142c6563042b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 de821bfb890e6124ade33c32d8794d4db5351e8b89c2bc76ddcca987f45d74ee
MD5 d21fbafd77fba0f44d89c7e810b3082e
BLAKE2b-256 c345d94cbfe76b220840775eff29296289a321fdd1e1e067f6bae6b6a983c2f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.30-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d482fb60eca8a7898b8d361593ba4f7cc3612821b262e08b07f403a0fc1a157c
MD5 a9d60994e5a5539ebd987dc44bc2afe2
BLAKE2b-256 5a4ef35fae4403c4eb24e0020315c3746aa6ed2a19e12c6f60937b48bd14c3b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.30-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.2.30-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 894097db9025643ba3bf6958c98eea9e99711aee672b86f453502703db49c94f
MD5 82b95b3507414ff1a1aceb03903d9656
BLAKE2b-256 0651f5cf8ffdae87f7475402a02074adb3087bf141cc0ae3b378b2d1a8812690

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.30-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b84832be26897317180d999c106763a224f1e17a327a1c64119dba57ad63d123
MD5 69b45a2592d2f690850bb2be3dbd5139
BLAKE2b-256 51580575eb9f510e59329ff41c81fb4662a4ae0561b0c062cce4493c940e9def

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.30-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ceac9ba5f6c0d9a0cfc2d74b720b058ef17b51f1087606fd922d6013d897aa53
MD5 243e6a3377673dd80d574a38ac201946
BLAKE2b-256 4ca6d1152018d5ec2c2c4f9a706a6d4dc1da10093909181c7dd9e965a2890f77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.30-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3e68544f3be5c3e48df1c2ec82779a57478fde3387e9e7aaa34ddf7747db322c
MD5 b1d9b08cac9b6084be2aa8a592a4e926
BLAKE2b-256 39231911b0caf15c2b56b0df10e87d0ec88e2e56111feb862a9126d38e13edbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.30-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.2.30-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e28568c134c381a1191b7c7c4b3590c17d1a7edf35782cd1f7ac275ff99a0280
MD5 c3264d681b139e86bc1c62ca508274ad
BLAKE2b-256 c1d83fc9c97c3bf844841a18910c0c88cdb14bdb8f7bd6c1228f6543bb2f66ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.30-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ff78bc453c503a540363aa4d5978195458e66a70a84f77b265f430b2463e10a
MD5 aba8b691e66dfbe213818e97b86288bc
BLAKE2b-256 8b160759928afa5331f899188cfddac6073bccdc11ac2fedd50f7594010fd50e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.30-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4792b31314ea4d8cc67e521c4d33f04bdd4edf6cc0cd8c434a112bf20e8ff1b8
MD5 38a670b2899c2a031653bbd07c706eb5
BLAKE2b-256 9073d5b844fbf75888c7a26216de30fdb21c6484639646e9338496193121d9f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.30-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.30-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bb48b0d471f712b9eb77bdb6f64b750810d8d36773af7ff92729f28336429ee0
MD5 dbe99570315b4eedc383d8c16945f06e
BLAKE2b-256 780d387f19eca927e0e73a84c3ba631de7a0caf6ca2fa02f0f2e4d404562fea6

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.30-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.2.30-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d6830f021566fe2110994bbdc101d4e013097f60b023fd6456acd3b199d3f13
MD5 6b993eb46faf4200cc1b379a12e7e1d9
BLAKE2b-256 73bc77135e70c5162e34451026677bd287d13bae244fd320ef6d311629418e80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.30-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7c53f9f97ddd502795aaa1d4a9c1f2f5e6f0979f0a121919df3472712dae4d0
MD5 80df72b69811c88bfd4ca23df9089c98
BLAKE2b-256 54373d2a708ca84b181af3e54b3a7d8c212163c7a027750a7f05337225c2b4c7

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