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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.617-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.617-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.617-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.617-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 52293fa7e9d22b719bcc2ccf80a0d9c392f0f3f21e872d05033d5b37800f76be
MD5 c8572744ad11ecab900d06c1514ae523
BLAKE2b-256 7fb4c8ffe99880db4be07c9191d7df266ffc6ec6497897863d429582075925b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-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.617-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0201acc1290a6ab3301b12c019baeeda5414f7498fc1956ff0542149944cf3ab
MD5 1720a5f16707528da056f51a955490c8
BLAKE2b-256 a47b9cad36bf8457d6826ae7c054f50d4753dbc6b9f39d57673aee629984fdb2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.617-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.617-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6834813bdff2fa5c3c9948bce2610b34d126ce7cef1dfda882b0d6b05cd4e335
MD5 3335072f84b994a9d38d8664e5bd2569
BLAKE2b-256 4190fd7f0603f37d0c9ba069af5b50579bfb4eca388b35d9f89055c0a975d35e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11fc1c4d2303e3ac07de59f45df4e993184737f70922d5301f35c58f852c5ff9
MD5 77b32219b57e721c6e42a5605b9c7f94
BLAKE2b-256 91f09c69ddeeb265431569006b0d877610499242ccdc98f2aafd44a9d30251d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1ca78087a349ff9e3a2796fcd4dbb2915ad61f02cad9742d2228f9a61786edce
MD5 66c33981a98203732ccf0b876538dfdf
BLAKE2b-256 bafc4998a25f585d76e2e46fc66fa97f86a9c685cf00f30d9810a207479bc36e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-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.617-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6433b7a52c36b61ce9b74d99a6258f968269354196a5f6682a432719fee15561
MD5 2ab9e639176cf1e85821b143856b7809
BLAKE2b-256 404c08beb0dcb23769b510e53b3cdaf17bc3255090ad37b81be5993e4878d9b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.617-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.617-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e43d8ecc4f95e9bfedd5c8e31fc2ae25dbbfbb11de639c776873696e4f94ebd7
MD5 6b3a9ebaef708c97b134606905e55d0a
BLAKE2b-256 31e5c671f00883ad03c4a66e0ea0847ef44668592741d21be82359b824448f3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f5aa3c91fe25f23ef0ea40363af4f959bba01112a87ed6583ed53b5c7453809
MD5 25c8cf64c4b3bacf7c872002730e3537
BLAKE2b-256 9f52356401169d75521f7fc3f761cb7c7974dbe3927d012e659c5ad0c0dcd5d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a02768e3e89a66f73e939cd1baf8b300c84e4c18d92c48f104eee1e59b62650
MD5 d0a2d6d0f3f614510606d957ae202b7c
BLAKE2b-256 2f4a355c7ce115637961c0622f16bab04821c8748f62c795b0967f87e3517ec8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-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.617-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2c8c0814f1e555f70da201d29af2d01a222fe613248427a3c856230087525216
MD5 e48284824492cfd2930ae8289ca9bbf7
BLAKE2b-256 cba26d20e4ad50ba96414c484ef8dbe3ef3e2590ec5b62838558d73a5c35faa2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.617-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.617-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 578575ce41432825dcea3a26b2c8be0635e6ba0e4b6dd9255b4ae40587aa6d8d
MD5 657cb65e4ac3808ceabb742a43bd3707
BLAKE2b-256 fbd899d6505f19c73815d4307a8059e035d7cdbafd7e703180c55cc532c660f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04250a15b3e8eeb7fe893ed64165f09b4ddc04100750484c261a2f5ed6b65524
MD5 3c7c4f1ec5286a4e5a0a9518043a19c2
BLAKE2b-256 11112d493c76cabe27d24277766962ed442fc4dc48145138832f41867ce0d886

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-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.617-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a810ba5f9429ca8882098d5759a6d009748cccbb9a7900de560d900c79a4bcc3
MD5 0bb8bba85f740ce6cf3c38ec7eb5dca7
BLAKE2b-256 d37b978bcd812ba91934732609ae04a8e2f6dbedf2cd3880ea48778fa54c25d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.617-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2c35cae18ea998a74e3526399239b915699d1fce3fa6f8acdacad2933976a10c
MD5 1350c9ef915f766cf464e409e44ffe4a
BLAKE2b-256 945b4f91972e7030a9b223b90a802a7315c430ca4583d7312eef934d23f47a62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.617-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.617-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83661aafd522bc5e2d58feb03819f35771a03aebd99bc66e2f1099d6ca5fae80
MD5 6bb46ccd3f21c5e9895707b0619b439d
BLAKE2b-256 4fbc2bf15ff0d10e55534a87adabb614c6f32d8c093818edb12a869c3c3ff830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5844e75578061168c8489db62fa1a6572812f05e964ab5705a505212a7525ad9
MD5 fa8b04b63a3c0eecdc63184a04315472
BLAKE2b-256 db3f3dbc262ba0f0f489c86b7d1ea5e6e28669f16934024cf133ff5d722d2be1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-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.617-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a608edc2d2c9193777e3ded4ee8878162153e1ec63ec6f75198fde250bf92fb1
MD5 fccf1e396901dc17c8a4e6518eb5a660
BLAKE2b-256 2d6b56416b4e72d0388b7054b048cfdc595e18f3adcd87cb40379129be3d5e2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.617-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.617-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7bf9c268ece5fb32349040cc75189560df6010c2f4ce767c5a90e127342a3961
MD5 c8d30f1c2a0b10fec72fd362629c036d
BLAKE2b-256 972e2f5af5c181d37353e34219a693c7c41fb6912644ccb0e0577a6eabfabeac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.617-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.617-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54090b776fc1cc767fd0d7815360c52d01f7cacf4e86fc3ce6873b4aa6166da9
MD5 6408d14b1a231fce32e42479cc4bee0e
BLAKE2b-256 5e042db2496db369c7d5519d38a45b85b8aceb74d189944bc835a3201ad2a80f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.617-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e903af55e4ec9cbd3f561a842e6be142bade09f194a4941ecd52dcb077398fa0
MD5 886d6ff135a54c0b5cdc1058dbbd6a2d
BLAKE2b-256 6960bfecf77a0894096514f5674267ad0b87406737fc6e156c20aaddeb866db1

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