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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.101-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.101-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.101-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0a98982e1f39ace521d96437282b8e82297e869eae312be7ec1cb04b4b920b9a
MD5 f708081f734a9512742b91f56c11374f
BLAKE2b-256 a18b989d1a000dfca04f25c9a52c483d15da95a4eb5989ac687dfa51fdd58b7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 34bf22bbd15480f84f64335fc5a1d291c94752a7668da490b4a185b25e6285ca
MD5 244e8d8cae332344d2e255e099c7f5a1
BLAKE2b-256 852e2d2db9bccb16e1a3a7265415a910d89b90f16d185ca7d35981ff4a540096

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.101-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.101-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20f2d252d7d88cc15b104bf4a0d3f515e13f906f41ab83b30b7c7f8dcbc8ed14
MD5 5287b78f652338724e03a144f4e79136
BLAKE2b-256 c911db48c4f21116f4b0269b93c18566b83c6cd92a3609e660db500e8d108842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd9d3fedc01a44dc86eafe71a4283ffbe9f96fdacebd9804c868fcb5d33f38b1
MD5 9ed3f39a4cbc98f65712ed031aedf54f
BLAKE2b-256 d2921c6bc72e99dc9de53e0bb18439bdc397c13dac4dc397041a163e848096af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a0d783f552605036890ad6a44684fa7453512eacf96bd8fde2c33173223ea3f
MD5 405c86abda372565c2da855067475432
BLAKE2b-256 754d28ea4b8098437077f82d203caa671202288daddf6b6faf2c14949995be09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3abce79bcc0d57739d7ae95f2b5fbba6de9d4899949e79cd0c2cae381b95cfeb
MD5 aa711ffc00c98105de0987f98ce31307
BLAKE2b-256 0abae47e06330aa928b0376a2cd8ed0a72339b3a3f2d4f3909884c17c3155168

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.101-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.101-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24603d6404b1eb159209edca283ad44a6f05137bd1889a708475a49bb6e9ac2b
MD5 efeb3f2599318a3fb04a990e15fd4f05
BLAKE2b-256 b895e583547e559fd302c6f4c27f145400c9342c9373557497b3891b6f0665e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42ce322134e85e2dcf46db8e2eae64837c1b527294a7d675325be91adf65c559
MD5 88b0bc0c76b62a7aba3e3efd5ebed4d4
BLAKE2b-256 95a755a0f9edf7b3416b9febb7eeddd8add80fcd13f63e491f7014fd45187dde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1481072683560e6825d5f2f7f3066f8c81660151e990b7613630cbda75f0b10
MD5 443f0219e45f6138095426419e10cdd6
BLAKE2b-256 e1eb65763b5016fe8bcb545ab50e53f90251c37d8135b229d43454f94579c6e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 25f065c1006936dd9639a14d7d9e2e70459aa7650637cd6efad2ec12fdbe0864
MD5 75aa7f301c4399c9e1eaf8ef7e6eedb6
BLAKE2b-256 36965b5a277807feb6d9f2be65b7ffcb1eb98b08e17c94c97bbbab43ab41b200

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.101-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.101-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5be404f47719d9b51784e3e45df118d31014a3b06a6da6982408cd0a08d0703f
MD5 0e751066b4863a33da7d9553cf052d21
BLAKE2b-256 a29abe9679003bdf4feacc4bd0707135dcaf70dc564201df7df031233ab7068f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5c21c7c3f10fdd9476460e8bf8588a3b477b838a302c44e4e4bee4876c6a662
MD5 184137434c511a6611124e34e001c53b
BLAKE2b-256 b2426c561a030fb63a1d62f8ffe76ad0f492e523a28aa44da5a6465315ee27de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fbc46ffe8bb91e234c7ec2056d8c8978ee497722c5f822ae2b3ed4dc48608caa
MD5 b054a741953f2f9a18363625341e216b
BLAKE2b-256 2f5c16208943c81a91cc5a9f1137018854d44f4619c6406edee8aa80ac528fcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 de2d9df78f3c77249a55277318d348dd8f47c40770712d03d79e42cb12fa6002
MD5 8dd589415a8c6c709988c3fa30c4f7fe
BLAKE2b-256 04a5449805b3a23668940be462f4ecdfae55a608278f570d648d1102746a0dd4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.101-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.101-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 650fe7e85192c0b547077e311ad71870bdc5a9b75e5cfb1d40b031d998657cb5
MD5 31c94b004fdce0681c482f4dc1a30cfe
BLAKE2b-256 31b4b98a3d8a1183bea9b2b730e450207e7ca5fbe333b290a985b9b188699fbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 620b38928d5221add9c5d595e3102adabf3ad705b7c288ce0ae269c144968ed9
MD5 4ee9f742bb3bacd4a25611f6f859e468
BLAKE2b-256 ce1a750e580aa733fd5fedea999bee520f2e861d223e5e7e792642063e799413

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d94f3492163911333185f54df9679c2d5f4fbdbce17da084e23794a971b38db3
MD5 9e39ecab9d02269c63114bb192d24ddd
BLAKE2b-256 efa01ff54a5a0b10f8d018852b4adacf366881dad194f8fbe2d3c7961fd0dc71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.101-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.101-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 62e37822f027564768c1ed03eec2944632720f524db8c811724ab51bc1e3649b
MD5 2d95f466af2d01152754807290e47a79
BLAKE2b-256 6d3b3eb510a5acc48d5c3369e13e1623fda0c74c6ad957d3e093efe92958ef2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.101-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.101-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2fd7a7e6fd46e747f8d68d27516b1ce8a4429c7a906f5e258239a88849484d6
MD5 13fb51b99c1d0a73424761dc58186895
BLAKE2b-256 039f48a254bc2aa9e99d19321590fdc91498942546806936459c420a2ee9e16d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.101-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7603a2d76d07040885b383690f053c3d5fc2c7336a12260f0e6ab308a887c11
MD5 ba6f140e50b626d32a3f193d39996094
BLAKE2b-256 e407635271f0b6604a5e9c08b14787542088f0da129a58684457d6d4c9b92af8

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