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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.844-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.844-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.844-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73df5bbd8ec3d3e25d1e3cfec8b2ee612ef4fd3e08ff12ba79ef86c47fb0f302
MD5 ae1dd790a55725c71d68e2c362d71932
BLAKE2b-256 2c35ce07967c38f395bca70a4b63784574034fa4d8226a0dc49627a06b7b4542

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f20a505e7933b97b28281b2ce7efb1f2aed944ab1f7ece40bd3df716776e7324
MD5 6069c6804747558feb9b35cdad3a0c90
BLAKE2b-256 9a87c9bfbdcd4ac82839e0f4af27dda301f7784eff5ac7e0179faf18484bb87b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.844-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.844-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14c22af2628c75b88f8bb231bfd680c760fafb986028e267e05e13e5b76d2204
MD5 eaf48e3ec981c9ab0f9fe9d3ab193777
BLAKE2b-256 85ac06194a0b8382932b7b3641aa006c45c838123f29286bc01707426f7abeae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bef4f8a8c481ec309f09c33a3befcf70d8e92140d66a8d072ef1a6329e0e20bb
MD5 7f2218f6f04ff4beed5e53b481ffea42
BLAKE2b-256 92787c0c966d857c8b702f5457682f909e842556a91f8bfc31fa700adeac6ec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de4f4bcc05a0a415bc2910c54f4496ac0383f59467ea58d79eccac84fa9a5e15
MD5 5d84932aa18fd4a02704e7d83aeedfc4
BLAKE2b-256 64d659433d2f752c0b02b3545616719a2a19b8f936346b1838c87d2d676e7db6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 84fe0b10eddb037ad63a44e0349ac32a0c1aced28df02caa2d2f0dfea25f56f1
MD5 641abd0a22161330cd816da358e59832
BLAKE2b-256 ee2480d6a12d1e058eddda740272fc5a38a0ee340468a3f4836d05a4cd640f48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.844-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.844-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83eb93f655739534257aee1c62d4eb87c1b57f4eb79cf7fb5d31f494cd7814d3
MD5 f6ea95856faf90820312cf6d954092a9
BLAKE2b-256 e9604cb5574a1eaa6e811f8d1bf6bd7d9a87101b0584e75cfe4948b735bc539a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a31c2fd28bb8a421089a02b4813bb9980ab3b1cba4d7ce7db5a820d5e135b8c4
MD5 fd8775597eb3c61aa4af0207aa6a88ac
BLAKE2b-256 e45ca19dd6fd98653e7d7c90d89a3ca70cae4087ecdad55fa88737e8c2dd16dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3d33f14f667100b3a2c772a8532c38cff9c0b0f4614ab579e597a769795274e9
MD5 fccc8baedc73d9bac5d5e9738bb76b08
BLAKE2b-256 1cc8a57dd3fe354f4624713d503df7b2a29d318cbefd51c6c4e566bff6462b65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 80bd16b5282b09d508cbed7ae6e60aa872d45eb20048d467f9196bbcf15605a1
MD5 7d006d6e71ee71c88d6d46c9dc90ba0f
BLAKE2b-256 2e668e7477dbc0d2b4bb9df4916c536bbee87a06d488a03d5cc6878acd56ee34

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.844-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.844-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 024838654efbe6fc4a2143e57960e97c2648ff1cd0bc35ae1ee7b061c916b721
MD5 678673dea0e4ae7acc95b6e2bed9e5ff
BLAKE2b-256 13107f5f34154ad350add7a90e8de2fd989989a566258608252d95ae6756d558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75c7bb2c9bcab8a3fff919fb77aa8718bc954253647e1c2a75dcd586f853c24b
MD5 800adbd5500627c993feb4f63e77d0d0
BLAKE2b-256 fafa2d2560453ade03bb8732ed3590ef2bdc37aa33e104ac1227fe85d41f807f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 562ff2b0697f3c8f37e033eeb16b349af90bc25f0c3cf0818109dda16533525d
MD5 38dd9b7c8e2146c94177f084cf20be62
BLAKE2b-256 afc4b0358f4c4b36596807ff406bce064d0407596b1331b387889cf354d92f38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f097b3168a1eb937e7add167b2870706deb099990aed67423c3dd38a2c199e04
MD5 fb24503fbc3b3688249e72341bc11bc8
BLAKE2b-256 3dbf5dc71033c0e255faced516fcc8f8dcf91efc42761ea2d7fa7debb72b8c62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.844-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.844-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0edeade5d4a8068f74bf7d4407b53bab4f9f3f1c89e85663eff798f3ca799d38
MD5 1c4079f2959fd6c171cc2a1e454f2037
BLAKE2b-256 40486586533dc16783f459c0b80a5f810001c0b1a7f3f2478ca1eb122ffa56f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d96221b68108711d50f726fd09650cef9ede7d53c2b52175a79452c8ffc2d0bb
MD5 e1d4bd22459aa19adee6f6ffc49d4238
BLAKE2b-256 9bfaa8c6c692dc39deddec8673979ed8705011b1fd1df4fd8f712685a8aa3cf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6a7a250ff86fdf93dbd8b4f5e6f48d2911a299969445ab91a5cc5811342bc7f9
MD5 80aae8448ed9f88bb1267f6dc460a891
BLAKE2b-256 1cd7f3e956b8c5321563229f614dfc33dee63f630d1182a9ec5372ec5c90ecda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.844-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.844-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 82363c8b0b918aa5eec8d7b9cb617076db68d5d9bccfec8dd62d5dc41d83e665
MD5 d7443e87c4127bcbc4c518fa884118d5
BLAKE2b-256 f91e21f6012b9dd9fa0cccfdb97f5239b8a71b23a4896270092b04ef816f87a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.844-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.844-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bee3f27be0a812ec5c9bb4c0955d1e2ac86513c0fdc94bfc69f3f0f91724a30
MD5 42ff88168bd80b2c460f43d3fb8b72ae
BLAKE2b-256 12c8c32b40ebd83a171eb445c4b356993c6b353a483a1151dd316c01eb794536

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.844-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8a2ce517ca2573377aca496a70c9f70c8ae05be879e9b4786d2ed652a1d7a5a
MD5 00f5e6c857d400a38f2ae81d2d90afa8
BLAKE2b-256 95234ac911095b3b67188b398e379e2688c837a1e5677e4727593f2ce354bf3e

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