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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.244-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.244-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.244-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f3415dab1b8fb31fdb0235093f1bb6fa6f8f13d796b89c957069df37616fe596
MD5 473456fb1ac0fcb4a9123c1035fbf024
BLAKE2b-256 5b28be3980c18052ce567dc74fd5225a1cd148d5eca09f7987df9e4a64417a7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8933fdac4f4d7dca50fee85ba599cb9cccfa62ccb386f2915421488743d57c8b
MD5 5e0d0481789a3f8d5aeddafc6b30a456
BLAKE2b-256 358bcc14dd00ee05e722c34193c441a105c48f847fec3c4a3ffe9a485a65d472

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.244-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.244-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0ff8f8f0f0f76501285eaf06c18ecd76c58102593236eb37d20070ea7a49705
MD5 54e36d59145cecb4b1c60875312070cb
BLAKE2b-256 654441bc6a706c832bae25470f6cbe8daa88d94f38fefde1129459443f3e6e9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f508bf80968060e2f3d0271133eb282e82563d3333e502ad378f788d6a76d098
MD5 0f726289063de1dea7d45b4e0a46e64c
BLAKE2b-256 cebf02241d296e0f0d804d3224ada755f9dd0da945c3f467e3514f51dfe584d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f63f559b106325435dd894e8e8a61fc476f074486faad4bdfbcdcde63bd0e0ff
MD5 12fadccfd698ae1eb1f88064722278ae
BLAKE2b-256 6c2c9793f4f851acffc2083b2e034385718d44eadeedb52e2fbcc4bec0a0d391

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9dd7af53c463e4cd10f1c91522542c5051093b637ee3ab3085b5d3653d1da2bc
MD5 35ad094efcb16e04a31cc523af075fbc
BLAKE2b-256 e21bdcdbdfd079ca122961940b6ebb00c2ae6985acd02c8106bb5852b328f727

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.244-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.244-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6a3406ebfc1462b64183c42d8de060fdd097b71342d3b42693f5c5a0138eba5a
MD5 93e112ed4ab03d45bee3de6898a0b164
BLAKE2b-256 58205a4ef1cd093946b177c29c9a006cfc04a842705bb2fa68d7f2c53fef0d48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a15543cd9eb6f5fe194ef307a52d15955bb9e68bddd9741d4c16e898b009aa6d
MD5 dfb3f6d8131d3f3cf05cb3318c3d1c86
BLAKE2b-256 f99df087b51aa5a29deb913b9d170b5aa323ea6b71ee0a8f8cf9ce2502183c0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9e096184cc1c0c06e20d1ae114b30a027948f7b8f1cb6b2e13b8fd20a92a7d5b
MD5 0914a0c373416369bf1c35159d4efec4
BLAKE2b-256 c870d3832b89b25d4a774a4fdc54579983e8545395d77e938d46d1f29fb2d9cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a9cfb95ee266121b76f122fefc61fbadab96fc73a83aec59529322573b4b2296
MD5 e87fa5b73b82394751e0d465f83a139a
BLAKE2b-256 3fe758cd47218f3ad053d6795d6f1ddc11aa4ec47befcb24e7ba50a3849dad86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.244-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.244-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aabfdf54b30194eea3dcf5cba10e84d4d33be3f015bff66a8b3a023e77b5e2f9
MD5 eb8dbe4402da206007fe5e2cb9a7b24f
BLAKE2b-256 f15a04d77c13d63874a4af96068f88d06e601ffec769da9a3e19c120933aa6d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c9622bbf479cca7044e7fb4766fc3c0a1316f6b08f9a1da016d31801058c705
MD5 928c9fcdb1385562b01d2a354870b0a7
BLAKE2b-256 531e5cecd06f00e9fb871380926737d67dbb6a05b03d7946ab02fe1212b0b517

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6c4b9577d4240e2b53238a427cb21e9772868594cb6609477bfd2c1c050a1278
MD5 bf3c959de137986beb5f270483ff718b
BLAKE2b-256 1502f8c72321b8d725d2689a7a4750744cd6aefc045315a62f062ce949494bed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 baaf6f6051ee6d4f080a448a63fcfec8b32c1417b307c6622f42d46eb38e0d0b
MD5 d44ec510855ccb5538ffb8f1a74a2b0e
BLAKE2b-256 0b1b722fd2fe290a9efc9e6051ef924ac3ff5a96d426a08d95815e30476441a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.244-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.244-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f70d7aeb930791dcec03a29d1f5c35d45853b9526673a4814f8164451cef538f
MD5 a8815c006c951156148bbacab30175a1
BLAKE2b-256 d7242e7c58f906149396cc5ac627df37c8ddcb99c8ae0ad4bc09e4ac497a5f67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af616d499cd020b02ef626bcee1c426d4e78848e3f134a794085b277e1a5609b
MD5 4b20426eb00446b73369d16b5f5346d1
BLAKE2b-256 8b41ed617242e435a16033f1b6b968f3d344f8da8843f173b984228fb7f0d7ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8312f0bf567100de588d81c35b4ac9b31c7d7e265f6534f8464b5dd5b0173810
MD5 622c04bb85ee1274f1446668a63e80a5
BLAKE2b-256 585a12e273644f8dcefdcb75f9aa884e29c7e0089db4364c0fe60176a4922dab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.244-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.244-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 96bfe11ed41123c3f55332d3431503079983ed84e48cbe3a2db245d00fe94340
MD5 c03350238d98a5e6a3ee78e0cf67ed53
BLAKE2b-256 f15ef349c8b6d6b53fc2c8ad4c59541468fa61144eb30b8da8c4811e236687ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.244-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.244-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f069026d34f856a3138d4338b0d7e351ef442fbbccf5b132013499693923445
MD5 49731f9d15f1e31de43b2e3d91457006
BLAKE2b-256 623cdd4e3b92f8c96bc94726be9eef87a35888336a9a25e19690356be2c036b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.244-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c501a258a003bfe56dfeda8db1e04dd36ad9e61d2883b197266502bcc5762f56
MD5 e4781f27dd4750fd8e753b875c6e4832
BLAKE2b-256 4a6f7a9c5fba68666553e812f16fae156cdbdc62021cf476de3d0c14613d153c

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