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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.12-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.12-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.12-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.12-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.12-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.12-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.12-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.12-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.12-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.12-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.12-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.12-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.12-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.12-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.12-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.12-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.12-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.12-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.12-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 45aad6e30d83754acc5ac76458a13794785485eaefe9edb2ebd0b7e9d565a94c
MD5 78cff70c20d063edf7fbc2c9565fcf72
BLAKE2b-256 47ab5c67992b2a9fa78e285ec4bd15dfdc64f3cd7dc7150da15e446976527025

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.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.4.12-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2f15384a1bb7b31113609d027feaf6886e5a54a6b13a33af3eca0c48b5ea9c24
MD5 6ab7eb5691fac156aef54cd80dab1b74
BLAKE2b-256 d729694e3e26ea3aeffdd90ad20b11dda9da12b8ed7622f05099d7ee4166f70c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.12-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.4.12-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77a2eb675471cf7ebc9d39adc35094f1db92c5957108beba6f3302d22cd8a694
MD5 2a17c04f681897bab39574406fea39a0
BLAKE2b-256 12cdd86539d2470721d4fda12d25ff5101a9502cabd164230a7bca0422471c4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9dee8ce3a62b7b2694563d1c83b2c562ffd1eb38422585732ac4a885a839a515
MD5 915e8bd2ba7c2dce396ffdb1b61a3999
BLAKE2b-256 96397df1ffd36b8b5e4b55e21db09db00c989f77dcc86a8f15f616229488afdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85a734fd3fce5c96a3e443ac5db1a241c3fb82807471e42dabc5b177106e90f1
MD5 87405f8136eee09bcf6196dd2121a52d
BLAKE2b-256 1a5f4e049b9d1baa0787ecc7d9f2ac478ed45b95b4e90b100c0ce99f5f7a7096

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.12-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0a61f0e68192009b6989473cf91f6fa2c1d31bbe79d5cc8fa77f36516b99ee7b
MD5 f1242b669e998f63b9b4a9554373b65b
BLAKE2b-256 0462dbf2f8dbb7415c890d830d6c7b726a4c556474cc69591bfb49e4e0119dcb

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.12-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.4.12-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b3e5c57893a1e33e71dc0679eeb7fc97d039b818de73f06f5994f5b6ccd022e
MD5 15402e30d79dcb18037e169949335d4a
BLAKE2b-256 f5b4a172b51d989f3fca7efa629d5f734f16682dab5a42172b2cf53585d2dde9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 148a745917344a33f457e8cb4d2965a44010386daa04a812f27cf8bc93c9d90f
MD5 8108f472f9b540e8de25a999e4d67192
BLAKE2b-256 5cfd23c80a0e5845da2fd01aec2a70f35678beaf956f69fc2df0d0280be2ab6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b4dcc0558c45415083a90a01bbbe09c95c89bf3ca734533848c999978f578214
MD5 ff302f3a9bab83f4513d20f03e674dac
BLAKE2b-256 aa14880d4ebd8452bf9b17f8b8219f113cb49190d8373d95fd3c4e4fb676fcc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.12-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b3ba231ad0c14f2a9c4affcf8d3fc19015d36de8f2f14a816ac6ecee4d2b8159
MD5 5145de55057b3759e925fb1e1f468855
BLAKE2b-256 4f3fcee926cb913e2a88badf91b64cf566de21edf77df47af1185b16e9a483de

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.12-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.4.12-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e518e5889d7d29a82f432c28d0232387890b293007c554df926b1e6dfdb76f3
MD5 688894988c3c3b6442686721b4ecbbc3
BLAKE2b-256 f807caddf0097c17463bf84f1942b6bdbb2d9971cc4c8f3c93d00e7ff18c34eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34e824dc36c02a6f0bbade3e4d9eec2705b9693a8284291c2ca446097261b5b5
MD5 a5ead7b06f68b021e0052ed235a4ec72
BLAKE2b-256 eb9a697cc3dd4db821ef201476e71f0ad3f46f52dcfc20c5973440a81ca0ac4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b63cb56a7aa55d5fdeb2da053b509d4a6632a0cb33c0329ade75ebd4d5afe875
MD5 2bfdaf557c206419c64d790dfef34561
BLAKE2b-256 a26cd306fe3f1fd6435f3693dcbb1666d81bfb28c2c703b00171757d7f4b0dff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.12-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6fbe52ce64aaa015908496e0188c9525f4cbf2d5da48d328608fe96aa5330f69
MD5 36a1e4f480f72140b7f9309cf7aaff40
BLAKE2b-256 d5c3b938f46a28b3482bb43e3e95a4b889cf0f99c30c9c15f7add94d9d4a9cdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.12-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.4.12-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0663dcd891156f8ff3f84852c23c61010abf350762c18adf9823f325b521a05
MD5 bc259e925ceba42e992ca78ce1f46717
BLAKE2b-256 ec2f722f43774d9a475eea371c7a3b1d5554618553e8a5de47c8a7cf0c98da1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83c23286c6bb1736e3e15406a56532969427048ae3d7ceff33474eff6c13820f
MD5 1fc6c861a53e5be40ae23c48529bfba6
BLAKE2b-256 96d7b9901252f50138839c6aa629158e9093c73ba7102c76fc61a7ad0968fa07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.12-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0bc92f19df5396e960a871e68aa5e035e74229cbe27992521b1f783e614ef779
MD5 c664a92815bed497a9f5d0f096663fff
BLAKE2b-256 3de589f142aad9491f1cfd20b6295948ebaadefd2eafceb1f2bca5e904c6cb86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.12-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.12-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9bcff2b086d13b31e416b8f08064029b18af7e41bee81d0af4f172a0bf966c6b
MD5 ebc2589a5febcfd57d759b2681bd906b
BLAKE2b-256 23cbc7bfcbdd3de04f3fa6aa0b5e536eb25b7a03b4a977c8641728c5442e51c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.12-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.4.12-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0ef2f8516388cbe2b29ca1356a9e8038e9f8e6109577e8fcf7f7e9c196cd3e5
MD5 de78183499fdcd905b2298f092508bd8
BLAKE2b-256 551edf0be9203e7cfe89727a4804671e8bb229027a2c98f9870ba63607863f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.12-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc4516a40d7289199d5e7e62c39ad52f29bf339542481de6f40bdeb0f409477f
MD5 ff5def349b458cedbb9fb1a2428b8352
BLAKE2b-256 27d29b9c6f36b65bc4dfa668fbc07337b55b93eb95ebd1c9fedeb398b4532802

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