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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.916-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.916-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.916-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 660f9d0eb3f8cc9d88cb35b221365377e7a3fd37c18cf0ee27f78fd01247ab65
MD5 b304d8e5b0fae4238800d5c3cdc4017c
BLAKE2b-256 fd4341f63b6270f367e5e687ce02ffca06ffb8af945491b2894f045f4aef3c1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4ec429a05c5d1fe8adab556205afb4d4a470cf0402bf6649250e6a5094021384
MD5 bf5ff4ae079775a5485bc22ceceeb72f
BLAKE2b-256 e93f3c91d80cfb2cf89904c424deaa86e7bb19b67ea1a0ef928a4dc1294449e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.916-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.916-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7d42b1b6452e1576633e29a6c1741328c9e015f68c5f243c1d282672cd57066b
MD5 a000d988e22de1d0a1049b7c44746ffe
BLAKE2b-256 c2409bb53508906347923d6090ed194f6f6a67c6186dfca85c5196f5ef2cbb3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b844e9ff5726c9b8ecca55c8080ecc2eaa7c70c095eacbaab38e2189474d2f1d
MD5 38095a1c66fbbf48641b1657c09db56e
BLAKE2b-256 0c4e639b8cca1362e3a8c2460e5aa9081517aaf0dfd44438056f459ed98037e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 34e48b444237bc2bedb3baac4beacd852b11df686b1c1291a7a4494a29418354
MD5 9ec45f7074d7a3012f222c6abfc1ed50
BLAKE2b-256 6b017a1e4634217d9191f59e5b2f61581942b27fd22e5a9973ae62c71fe5bfc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ce1d25a1f2d74c5296bd74125b9c4cc0dc386f3246b5567103c5d890539d6386
MD5 074a1985357689dea354cddb1aaff764
BLAKE2b-256 f84895f693e47dc8307fcfac0fe3b0cb2aae490d4069ad8ea5b9338a543c2db3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.916-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.916-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29dfb67e55687b05d15f95dc49737912d23d9b64538c48e2b606836110c6d5de
MD5 9e6c4d8c84c4a30474738531f1f92ad1
BLAKE2b-256 4e90b10af1e489f68fcab40a07639ce9fb9d100891847b513bdc4cece1babdef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c67b302f35b8d0888a28496fa4e4dd133df7b704199e75ed5c1f33b9de52e23
MD5 c42749b7b586a13163f4fdea4456546a
BLAKE2b-256 3c0b67a7bf3903af16ff891da61adcde70c43945968a2b0c477ef1e79804b887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 85d400ad8af2744853c2a71f2e86ddbeb4b0bccd19600a151f7f25e1465212d7
MD5 3bec1e069b1489f40bfaa0eb742dc57f
BLAKE2b-256 3588becd9cf8ed0e5e35d7a4611cba0556a7431af63a6b6859431a6f241519e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9da60d244c52af0b5f44964d8ca6d0ae4014511e7a3f1c1dda959e17aa5d24b1
MD5 9a3915e528dd2f78f43cc968437959d7
BLAKE2b-256 ce277e42a5841da81a0d162e98e38114106edaa5d17c7c7252849fe593715de0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.916-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.916-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1cef909884954d79d0b9883a75461453057fc8a1932314a400d4e932745da90
MD5 df5a4cc1a8f7d9bb9d24595e7fbf2c36
BLAKE2b-256 a93cef061223133f0c86b5e9af5715f05d08e793f620a3b579559ceab99fd953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5b5d632302008df3f4f6bfa5d676fca572336449ef382670e1039b47151add8
MD5 c8eca81edb92222c1b250a58a8c3e305
BLAKE2b-256 edb9a21e010319583cd9848a21013ee2adfd289abe14151dfea9e88c850829e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bb15f960bb8ee351617f1d080283c17a145f464a182d8768af3b53b7b52d5c08
MD5 a8f006b9100a3ba7efe1bf5f13f386cd
BLAKE2b-256 378649dd21d6e1b1e55af8c0a3cbf997a8732532db98621f059702e213911cd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c0a4e2c1276a264ef8e096f0800713511bb084920571dfbd19d4b0b676eb0dfa
MD5 07ec8eafe47d64212399bad718fdfb5b
BLAKE2b-256 204ff572e659af4008b9a1ce54dd854e4abe497f7550428f9563484935ff8430

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.916-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.916-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5edcb04c28522aa5c026c4b1bb7c55642bd2d117fa07d56fdda17f42566b1f75
MD5 8d28825d12114be3a7d92dca95bb2563
BLAKE2b-256 24211a5fa5e6e327d8021040c2944111b2951e73e8b345d81b7439d736d7bf6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe4220043165bde9baf509dc8953557dccef595f71f1ee1b02168e403f51bb5f
MD5 d1cdd3767e7506e541021ef4d1073d0b
BLAKE2b-256 9953c924fbef713122c7d81c31af77b9a1f9606b3777873cb770d46ffacfef98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4c23e1980e8219f4b418c75c5627546090a2e85eb274e90b5fd7603a5cc7e4f6
MD5 c2fcea729b0169cf208f7cf4521adb96
BLAKE2b-256 6d6f259ca939d6749021dc5f94a5e32ed7cbaf8d4f11bc76a2abee402f9c4c3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.916-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.916-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eb1786a17d52381721c0c76b449ffe18422ec29c6979da265aa58babb9fae1b7
MD5 0e02013592ba4a211a14e2cf89fb31f8
BLAKE2b-256 aed5b2a65d658acbb391b1d17b0caa4fbb580eebcb6e3bbc55758679c1b1c3be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.916-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.916-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8531a95607d479f52fc7114534222f4f3c4d1b9b60721ed89a994aedf9a5dc1
MD5 7a85c1433f66178258b4415909a839f5
BLAKE2b-256 682decdc60f3f9bd6225153b73270dd3d942664cea0def5bfef67800f83f090d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.916-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17e14ee24db23e3e07564d414dd7ef62b14784b27ce92ed0b2ecd5e901ccb6ed
MD5 b323564dc55911d713d70fc06be12535
BLAKE2b-256 cc388e34b562037a7385d3d88dc005c5045ec468c543a2435eba9c53d9a390b6

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