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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.51-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.51-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.51-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.51-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.51-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.51-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.51-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.51-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.51-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.51-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.51-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.51-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.51-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.51-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.51-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.51-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.51-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.51-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.51-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.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.2.51-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2e8fa15970b0d0bd1a8459404bd4715eeea5eb05d63e9a8860687ac313eb852f
MD5 9cb53b30c6ef5be0904e35837b979e51
BLAKE2b-256 d0f1e97be72553df59799da0e8c6372142ae2c92b451da3d3d53e669310d5658

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.51-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5d4df35d562bbeea297a8cce978cb7817469931b9450b9db5c004a144c51c6d2
MD5 840ad4d08baf2f145b5826d07543c61e
BLAKE2b-256 3b52e68ec097b20be3b21cce22329b68207e8e4ccbdea5eb7db33563f1c24a5f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.51-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.2.51-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c857ddc80243bf52d6518cdf09b673ae33e98ecfc3fbb881d513fce616aa4041
MD5 1a88d9644f1d9bdc3f5ef1056b5ac74f
BLAKE2b-256 2bc068e7e4595327066a9018ae10a14529d4725d1ba782a7d5919b6fd7384124

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.51-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bfe6e5dff790a718c34d1cf88117a60b708b0e049735ab925b853ec4b742642
MD5 288873f3aed20d2caa00004339e0ef7a
BLAKE2b-256 ae88c29a78bf06c07f15fa91e81c1aa559bc8cd7fada6be3541f7cf2b6b067df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.51-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 94b373986b0c4f67568dffae032eee031763cea1749657436599a395ebeac8b9
MD5 7dedc05486b6cfbdf8863274a502fc5a
BLAKE2b-256 d1294ec8efd092b0081f0c8287259b92f1f17b1ca99043a8299b1c52217b0f7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.51-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f5920f0cab9821948861eb4c55fa81e1fd56fb701b1e8c1e5505bc80ae1872a6
MD5 f1296a261e743d551e657518e9f15179
BLAKE2b-256 a8bda37ef6ab1df7f8189206fedd28324601905f44eb59686bcdb5341676b523

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.51-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.2.51-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d14d29b81295ea96ab1b5d525e0983bc4f63403fe3e8daef1a41108af79b8917
MD5 34efa1861d75e5e15ffec2770cd1237c
BLAKE2b-256 b305380a61ee8089a2ee5f55ff65a91f74f59dc992be0f77bae88682b5fa1dd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.51-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f7ca116bcf3e520c8aa7f1d30a4027842e30aa0ace1e11ffc7ca3cb0f86cbf2
MD5 eaa0d410e2e85b53e0e11bfb9270679a
BLAKE2b-256 9bd893bc3185acfe5164aadc60d1c8fb52c20fff7347c32cb1df31f6dc2d814a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 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.2.51-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc11878a0241122f65e6866090096339ba4e894b004ea958c27d17feffdec675
MD5 ddcbdb0de9eaf1eab00767362e9a16c8
BLAKE2b-256 542dc0e21fe8aa5ed56dc8662730f11c2e671ac501b7e7b2a2e5028e5bdb8d44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.51-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2763bc748e826d5e63b981f842da0f4bdfc70be8fb1dad08444f48ffa43520c2
MD5 4169117cb400024f23cb7f32305cd63f
BLAKE2b-256 90572e7fc120efbdcca5734233e5efdf28e5fd25e6f518003367f26928b77830

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.51-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.2.51-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aea1168f4d3e283627c246b9c972a630b9bcbfed944ebd58367ea173963d2cab
MD5 0d9bf098e3bcdf0bd6ad337a23050fad
BLAKE2b-256 06f47dbde0b2f904557bb72ca30d99a2544f76438a87e74266db2acfffc7deb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.51-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37aa1afe8eb4ed94067f888134b65fa4ead57d5baecb790d3afd16e0282d7bd1
MD5 fceeac8438283a4f25111427ad64af96
BLAKE2b-256 dc98edf97b6c01d448b308cbb57f53a5206144f6fccf2c2b826072aa584077a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.51-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 72f9bb905af47b7d85e6b419f25af5fbc7355a2d68127ba734c091393fbdb2c7
MD5 acff4223a249bccbbb3abbed37557584
BLAKE2b-256 5223080aa1a0427930cad28971ef1834b174a104d13c3726e6639ff5ef1c99f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.51-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9adf4b4c0311333ba937bdc9de2e8db802862171d212050aa8aedac52ef11167
MD5 0f6d0ee9539ae6c357a454a064815032
BLAKE2b-256 f32a2c7247cabb2b0b7312c66456a6e0d9b843753fec46d9fd9bb315914dfc23

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.51-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.2.51-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e81e86409333358f0c92ebb3c1c77234ccc2f6600327e08a740c8fd69a6acdc1
MD5 8564fe7d6149f738948348c6e02a77ee
BLAKE2b-256 e924c76e87e031c25367ac4b4985c1c7d5eedf89a039dd815861cf9bfb01d113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.51-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbf55f992369de2bacfa374a2f0c8d88f23dc06dd161287a1a641c1057216047
MD5 41aca5b14024bf6aa48d5bf55050d76e
BLAKE2b-256 7c3bc61e474414f393731dfe8cbe4b91fe6bcdfe11a314e20670656d24753a17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.51-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 691db932c33e53945f7597576380860e1ffc8ff255e2753840afb7a3792126a4
MD5 19226cd8548fb5c83091d8a8a4bfa986
BLAKE2b-256 6a2c0bdbc65cf99d216356728657a2d9471193dcc1f69cb6ca65b5127cb9b1f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.51-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.51-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 142d7e2841b2702dbbdcd006ff1a2fbf6214d7083d53525c71d86633b463cecb
MD5 dcfad78e09a26539eeb3ad87600f7fc0
BLAKE2b-256 3f39f2015786ff51599424448f6106c303df6b4025c0972cf350664b469dad9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.51-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.2.51-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 114d575c32a9cad86ca25f33b65fe5e4ec0cff77d0f5855d2cfd0b5b86e6e09a
MD5 f91e91380a81774b2dd46a2dfedeb018
BLAKE2b-256 ead3e229c1423e21ae95cc342ecfe4fcc76cfe41fb36c80a35bccc48d38ea302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.51-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44e1aa396ab4395fdeeb122009e8b064d0c0844b65e8dd661059d5ffe3eb3bb9
MD5 c61515c517e913852033bdb32c9590ef
BLAKE2b-256 ac338fff1ec16866afd0933d36dff7bdc9ae68f0a40ae7277006fdf4e2d495ce

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