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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.609-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.609-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.609-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c2a67a4645cd8d5cc240c338de54bd26abc945fc48a0738aea2bfc6a21ae2bd
MD5 a369855219cd10c08295dc89a5333711
BLAKE2b-256 f950a43874cff6c5c9ea605a47a11b9a0cfe08b1a9dea9bceae65a500d145ca2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d02a0275690342444472fed02a647c5d0b5f329aa55817dbaf38b5d86d84ea4e
MD5 656029524f51e1d2f43803b0f30ac81f
BLAKE2b-256 5419c4fe848fbdb3ce45c6f90b4a88e002d319adc74ea09c9db4a6c307252e93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.609-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.609-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e29ca5b3fe6765425f1c52e0d76ab84ff54f8c5a12d885b6a347fae1b499ec1
MD5 6e82bfe3dc122814917f14d4b743e235
BLAKE2b-256 bb5aaadf0727842bcaf9a0b87399c548e9e65d23c21d6a7be33b9f72a52838b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e43cfd6d8fac002bb64dbdb4fe25e5c379d766e71f6f8585e4d8c9db582f914
MD5 fbab1d648ba92aba77b111b82b5e3fd3
BLAKE2b-256 979a473656eaa69a0cd9f77eca94676c5dd74159ac0e1cfb7ff671112bde4be8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 844d39c35cc0fbdefb116c033ce54c6af871e4705403f9fec36df577494b61ae
MD5 c320068604f576a14e99a75da0299695
BLAKE2b-256 40d7bad03b49eb213a5142b843f1c7db00e9099f58ad59401ed7c8f1cfd173e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 95a154ed4ee15a2455fc29252c3c7e6457bd8c19af01ccfc646902eb46284539
MD5 70e23ec3bb28a13017f7eb3c9f461fa5
BLAKE2b-256 8de98920dc8d6bf3c694b4ef484ee75eb8586926f806f911d5918714a8a665bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.609-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.609-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a39c04150f12e5f9a3e315649bdeff97edbbd6cc43978676f0d05f2aef0d6c5
MD5 8f5c44e996d5493efdbe61a3eadd2c7c
BLAKE2b-256 3bc76e2ee19260068989d2fa5a1c96d78467b615de2724e2655640d43af1160b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 207bad681f2e4363484604ace90772cbd2a07fa3ace87d2cdb0cfe5472644664
MD5 c3def73048005e08c1ad4adad24c9f2a
BLAKE2b-256 4a6b2a273b4d50d0a9324fbc56974d5792339451163bb35160222ae0c636e34a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b44b8fa83ec72969a4f6fd67838428082b8d3341ef95132820fea071dd23f439
MD5 cfaa580596ad6a84dedb804316cd732b
BLAKE2b-256 c46703d57b3a5459b567cba68c880e7150385dda6fc9bfe326c6ef7d4ae93a98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e1ff7d917693f43e94979b8897ea6e090bdef3f3e8d2c25f78bb34a09dbe899a
MD5 bca9e3ba794ab7acf7e87fdb6947dac7
BLAKE2b-256 2f9ebf3669771b5f64c9ee78730f95af6a62e0122db56484c159d8de994da6ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.609-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.609-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5784902e0b51c43498334b67dc0b22a260c92a0990c31e8cfae6d32d5b954350
MD5 59a3c0576a3045cfa17d7e26d22d3d4a
BLAKE2b-256 8d72369dd0857596dc3945329ecfa9d609c305639976890a27a1a10268d5cff5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fee3e1a8151be461eb257fb001f3076c379c1fbbd352c19a86dc13f513312332
MD5 9f9131837c630fe1483b75bbbde48612
BLAKE2b-256 7fdc5a6ecf2d1a56a8f297eadca5cb09b86ff8a9927768a0dc3dfda3c11dffa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ce4432f24bda2b9e0dedfcb246b1249b44b82ae498935210e4b192ae44797307
MD5 597ad04da03e678990dd42b36b934aaf
BLAKE2b-256 39cc7c271b92ecdf86685342bfc638cbd0614fc2e2a5e549281de2cccf5819ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 872a8a2f6c5b66bf61a3c77c895b451c097634ea314a1adc8c5af48f087227b8
MD5 e0cb75e1bc1a6e56e44d13c42f4120b9
BLAKE2b-256 757eb4428967ea29c93477cae40cc0c80eb5ed53380d6ecd606671feb254f773

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.609-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.609-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81dfd45cbaf61760248aa8dcde82f0ae8a4fbf0802f4ec68a6cf9ad301b461de
MD5 b7fe8cc4adf6f9875380be31336b82fc
BLAKE2b-256 b5e6a3694b39dc10e82df1b81a7aad726e4ce710ad6abc013fd01501430d079e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e0f6a4ba6c4207466a6ee89141f8f9c275fcf36cbb2b10dd9594c9bf4eb584b
MD5 3d7e7021c6c7d094cb2d528a9c77ddf2
BLAKE2b-256 d74fcedc9ccf14ef525047d66941d8c326e96a89ca8b9431910bc0b50e9f8944

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d4287e99a2ce0e8ba522f3b9651212555a104c4c701a4d8cf2168eeeb23c6a43
MD5 2d2631229d9a49db23d90c2612d0a410
BLAKE2b-256 3af517facf309695230a75ca46dea5e6ee84a013f9b52b0eaf19dd2c61e993f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.609-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.609-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 821abc9f565924323cc2599e00d4fe3e7bf2a230a4b2e94bcaacbd14ac290207
MD5 0026f6954b88a7ca2f889d8ec22df02b
BLAKE2b-256 7e3f7bf2a07d3b3acb6455cace2dec6780d6c1517feee4c779c90cf9f68b35b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.609-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.609-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6f04e51a1136e8fc9026c62ef52c4ddbc837ed0bf18ba61f11f98a4b066c5e5
MD5 a628f70873cf3898201bee2bf88d93a2
BLAKE2b-256 e6fbd29f0f9afc34c0867a0c059bbe4952c5ca4f6762a07ffa5e6bb1dba657fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.609-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2124a98d4cd60966e65d6b88cf7700a522f11ebf9a0257d3317e7a9f1586b5a2
MD5 9f4beb93b2e8ce92dbd17d4da321b9a5
BLAKE2b-256 9b3e37de1f4d87b9dbb6cbd0f43e0304d72cdc1ceda985adc9c7649c4a4ffee3

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