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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.23-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.23-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.23-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.23-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.23-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.23-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 814cbd55bcdf3ffc3b7d04a234c350c2e3061d614690b4e0cc7fbdd5aaa428a4
MD5 b2b210c3a53f77db79dfeeeb4c1b9e02
BLAKE2b-256 3aaf68669c762b0e4b4835cb0465dadee771e06ffd1fec8070fd3ba5bb1e67e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6d739e3df04a97fae98f8937e8e21e0fda9da25e27004053a1fa7256c84d48d1
MD5 520a7a17ae28e09471b235c378e283a3
BLAKE2b-256 81d03189d6efba72659c29d91e2e46cd092e169065440556e30eb158ac98d594

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.23-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.23-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f97722b9f7891dc25f0351f9e7e64551339938f30d655cac5b253c5b8f00122
MD5 c6f0d052c26e85217f4a8c357f51d4c8
BLAKE2b-256 18f9ce2978c3beb1fac378c11e25266847d25448342d3c820d1266720a51aaca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.23-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58f608fd81e7be588d4daa242004aad4cb1657e0f32d67f4c9a3d8b5f24bb3a3
MD5 56075ab0f0146cea66bf702422de4af8
BLAKE2b-256 d7663468d53be2ab923e3fd2a11a818e89aa0c12be563844980799668a095e24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49e56550fc0a5665fb47ebe6ed0313b44e17df63ed395451ebe34fbe060600d1
MD5 11a2816d0ce48e24515529efdaa7d877
BLAKE2b-256 ca1202139b68518715df602920c8857e6b97f22731925179beccec481f7855c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fe6453287852d6e854aca23a05ff1191e5bc607d41a1845feb9ffff24906228b
MD5 6c9c1f676179334f669edaeab92a78a2
BLAKE2b-256 e24161b31ec96b184c6fc5413f8e1302ff107660b408589db2bdf582c9764e97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.23-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.23-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0fd016cfcdfa9c9db2c3199e7d35f7feb63fb03ceecc1004464abffbd9f9815
MD5 30470cbad5cbc5b242508e39656906e1
BLAKE2b-256 85f528261993f45e2e95463b1d4f5c6b6606671a814488aa0e899e2e2643eeaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.23-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1447cbf3f2d3fe36903feee633a3c51d2e0d99a89e5cd023c313c058848303f5
MD5 35d0e4de994efa69d4406688a464714d
BLAKE2b-256 ac0ce77ed765c2015ff21b08963357a71254346d451be1410c85e5bb3799d7a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.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.3.23-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 604dbe4dace1e5e157602a54a2c135f3daf6124ead2fa468dd6170ef28beb0c1
MD5 b11dff9de7c4c0023430cb94288ea87d
BLAKE2b-256 16bd19fda791e4db516c621e1c179fe10ab4550f810d93d95d45ae503e87f60d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c2eed03938eae8de5e46f0242d1ba4d54a6f1087481aa05937b2bee65f8a370e
MD5 6e3425489635c6fdf4b32f0fab5e55d3
BLAKE2b-256 4fa03d957a73f2e088dc5ad809693e682eae47cb054869035758c7a91505cd75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.23-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.23-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a94da44fe31e14ee892206c70136648f1d6f47a255c85d84be262e62ee0a7e2
MD5 44e903651e58ae6e42331619d2e30ff8
BLAKE2b-256 c8c7df89ce8b0737557ed74869fd0e1bcada08a2158ccd7135f3e2b21ceda344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.23-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3417a58e62da38b1ae02fa41da221a8a4e59ee31880e6dbd8787f24ad83a6270
MD5 7f75a31c0daabeb47a3122c2c82bfdb0
BLAKE2b-256 90913dae3ee7c99e490e1ab61c1cff9b303a376a01655e5d57ff64a937edf60f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cdbe79af81e5ea2e44984c5b7a81105deb49620e6a075188ff032c93bf5316ec
MD5 76601748c2dff1db7307ec0647cc7cdb
BLAKE2b-256 6f83e1272e6fe881a95c0fe078843192e584967c1d9295e344fb5ca75f7e7605

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 361095563167321126b225a1319a4f81cd84d21c911ddf7074122f70a5f4bb06
MD5 0ba7742d4e45fdc305ccdfc433e6c333
BLAKE2b-256 67afc30bdea583b5c89ca6c0ed5b7b3a8d314105224bcb9837faeab6c2c0ce26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.23-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.23-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8327a4f36f01d7f23bc72ebc4e8d1fa5457bb01e2bc818017337b9ef31b453b9
MD5 bec5db06a4fc56d78f4652d6d7ee6b1d
BLAKE2b-256 b2ee5184a4caf1a96cdd04e9ea89f872aac3cc63d237de31bbfab8575ed243ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.23-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2215ed88625773d5e3f801fc8335e2d1fc1fb42204593382212e63414cf3e5c0
MD5 e17547ab646b39c362e28746462e9d30
BLAKE2b-256 cfdf105cddfd5573f67426d959c2a10659042b62e51d6732cf94899b960ca721

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21603c5ca4aeeb0feed08e7208adca677a12e7309c45f845975b803b42874889
MD5 1836094d57b5becfb7b0eb11582eb3c9
BLAKE2b-256 7f3a6f2fa36cea7465dbb2c22255b37cf58e779c68ae169d4f8d7e9db224d664

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.23-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.23-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bb4d28067379db41b08e695990b75184e39e71f3dcecd8cd9b56cec0b0fbe41d
MD5 06007f31b5b6e8bbda060430aa2d637d
BLAKE2b-256 f2981501860cbfd9eca69b335ec348bff1a3d7c65b4c5062ded5f6872cd0c4ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.23-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.23-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3c5efd549e7671e9f4a546e8973f601d05510e163dc1305563203b3be34a8ee
MD5 6725d86f63522c555dba6ed59af4f130
BLAKE2b-256 24267551913d36904eeda55675c982340beaf6e7966caad9cf5c949efd31c8cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.23-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7a722a52f50349a5be371bea5d5bff5032b70758d6340a11c9c62844cfd687e
MD5 57974485b57c0b47f61d97786beedbec
BLAKE2b-256 4b53382728d179bb888dd61d918d5c7abdd51108651e5a7590dd1bfeda5bc317

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