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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.339-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.339-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.339-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b5b07c7250167a51f10213680440a0a933ed876e456638d2f12e1f2a49fd1103
MD5 e16e4f6a955777845932bfd3b8a3ea96
BLAKE2b-256 1b6fdd8b283a7a44eb328fb7e87dc001d6fe0ab5249aba54f4cd175a86d45203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9aad810e48829cc47bc2a9cd6fe4be12d85d9a19c88c2c5003aafa8f8bdd7529
MD5 b706f631d63a5302dd38dee55cc9c5a5
BLAKE2b-256 1e3e90bdf8ccb26a49c02e1a7102dd54f6dd55e1d4cb342c504f7468691d0829

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.339-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.339-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac73b7007dbf0d2737ef5e9f303ad32f764a1488e84448a2cd8e1d13035167e0
MD5 aab8e26e2f1975f271389627d6832040
BLAKE2b-256 b357a0ca8a499c1c9c459df9d372a8405e76c328fd2b56066eeb5c5bf96dd588

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1bf861c9e3ec5a84804ed2b1b7349339fede0a904a557b3ae7e8229c591fbba
MD5 386a4d26fdbbcea4ce0cd76f93327265
BLAKE2b-256 9eabadce83c784274d28a7bcfc3c92e0075c1deb539fc9108d3aa0d35a05d17c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2527b13a51b24f52197da1ededbbe3b07d88eecd8842298b3f4810bb0339c11a
MD5 615813213473e75f166baf7732499295
BLAKE2b-256 227b67cb8e93ec2035c9dcf7433c1896768a0b369d03d6104fe0c1c336e0e22e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 946b9034f3094be50ae412498e60f826836bac2c539d96261fc03556e6f7b65c
MD5 c58f8f5e032715d0cfc599777c39166b
BLAKE2b-256 843660810fa0827abe59889b3ee9ee76bc3ac5067f3123fb989bb57c8c72f930

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.339-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.339-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7180ce62866f75c9ea04cd8c0e510b230bb984bb13991f8abbebd8c447e3f183
MD5 94a6924a0f56b9dd1a95dfd54bc9677e
BLAKE2b-256 02b84348625122b699bb5f9d91aefd0b94bf5039a8aa6cc28afacf9a9c1ef863

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15394002a0b83294f8fc9dab18b1c29778790a480da8dbfa6c4d8818392ed548
MD5 aa20cdc3c6e3575773c44b85a9b22bf5
BLAKE2b-256 080be245d9983435fa95547ddad69e1d1dfa27763e40a103413573c33730afda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16a4b8e931a0e4441a82cd1784ccf041d6216938b87f86cd021d92c0f1a4d72c
MD5 f596ad4cddc3c74ac8dc088395d66370
BLAKE2b-256 312102e9ad210437294053d472de8bfee8d4e87c54573f6c9a4ecc56ea382c84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1904c080293dd3629d37cbb177efa49e730e387de7aa4d59821f99362a1ebb97
MD5 aa7c28743363eb16793b46ea2ac5b6ef
BLAKE2b-256 1ab305251ead90052d9a5b880ec80ea507969932433ff40c01892981141704eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.339-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.339-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ce255d8fa8eb897223da183573d5fb0e9ba8e86601beae348a4ba154a379bf9
MD5 3a8ac394b59f71adeb6d9efa298b925f
BLAKE2b-256 f9ca1292ed612e43a1730338273cd9b37df02a362793038996271e15c3c01519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c762bfcdb27f6851cbd34a1b499f28397a200c81006af78a0a2443404554f8d
MD5 a0a23a6a29d57e40c0f7e2f7763713f2
BLAKE2b-256 30f40b3dcb97676eb03ef2a31b9463203d82f10e5503326cffb94719d677cf14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5c408bedf17069f6cec2356c5f5a91166ad1264ec2f990933b86c9fe0d8a92e2
MD5 b7e349ec79a810f51c9b5ee78a044562
BLAKE2b-256 2c25e074df8b919069d1d4f68459c4a39b92c8b34088260d0fcc36b99c812f38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 007a1f4f73300ef9c573087655b7c77d71a2622641a5a6ab0fb812e04025c9c0
MD5 e394a64fb07e944a62f3e802bde54383
BLAKE2b-256 1f6aa719a5f61dae1332dade239576d664ca476d8e6feb6b7000636f00c7b757

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.339-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.339-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a11081f56a6f5fae530f6cca94a80eeeac7ace2304db9c3b9d477bb86dc4d01b
MD5 9726aee512f91109ad9974ed4ce353e4
BLAKE2b-256 053a8c146e060817a49bde0b54e2957b7bb37f367ccf2d7de8b13b2ee1c21392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78a207b7d74f669d2b25b6e3dfe3e885623e6b0526a7a0c041ff52c857105788
MD5 4ce2c450316d7a8f534f0632e5959cc2
BLAKE2b-256 896e6b33bc7c35dce2f8b28305e1667a7787edccd6cb099bec247bac0024dd5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a697f5d316bd312852c3f0bcb72089ec382424cd87e53a4709d3342b661f34de
MD5 6fefe930856fb04a6006c3fc8dcb98e7
BLAKE2b-256 c25d5bb98689150ae7a58409024f74150a5ce7db10556443be1b9b6194f0db8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.339-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.339-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 88c3a459e7df49d3169b3e129a2ef04af35425e20e3ab94c427a9a11bfe6f9af
MD5 009ec4bf918b81f366e5f7597b655765
BLAKE2b-256 e72580218e84e71fd8dac80a6be5fce39be2150b71b189a4442e8a08f8eebb9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.339-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.339-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f46909463e9b43ba1200aa16339ceae2e59ccb21683e531fef50abec0311ae3
MD5 e52f58103e27162ac03e6133ac029e35
BLAKE2b-256 4697a15994d079423e29e1b65d4e34672d09ecc852d0c0789800b1a234862554

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.339-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16b0ee8513101a31bff576db9311f57045ee6e52b2118c4ffc8e571ea94f0176
MD5 a85e8a90f90aec85539ec18bfdd47064
BLAKE2b-256 afc470599b5a9dceea6385dc39c044b7994086ded67cac940c371d6091af63d3

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