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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.161-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.161-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.161-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f79ee94dd1e560d5fcfa5aec7dc60be98cc0899ea39c0e15bb68bec24084893e
MD5 29a72ee2b73580ca03ed7db272ce34cf
BLAKE2b-256 86aaa85030c2bc81a9dc48140ae9953ddeff5ccd6139a1721e99ecd9f4f5e5f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6df53f3cf959c0f52e9d4ebda628f38b7d05682d0437dd2e9018697a59769a89
MD5 e045f4ad99165b985ee7c5b2218889f4
BLAKE2b-256 0dd180e3ea162188cca34dbc6c6ffe2289f328400c31d947c79c3c96ef527fc5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.161-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.161-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fed4beac93a20eb3bd9390d41409428eb00670b067dd70a1f197785e600f3d6c
MD5 9ae9d974cf33cff070b79f23d58c22cf
BLAKE2b-256 ebd362eaf1eefec8eccda5e5932b10a3f95d7fc56c7653e9437b011c3024f3f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c46bc91e10447fa0dd6b3ff6a5f66197a0bc45356c95acb60d6511023f3523cc
MD5 9f3f55da72733b4c241dd39e739687d9
BLAKE2b-256 ca064d23161d8caba8a99cdba58f15600d9be50674196e296427be806f82e912

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c59cce6db3385954fbd16e1b71ed21f4219b59f46e87cb8c85cf3094000df162
MD5 7b016110a63e627f60b6f330e618465a
BLAKE2b-256 89240511e9b989d2236c9e583bca10824513ddf3afbda66fa30630208e41b47b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cae2553bd1cad30051f0e92730b6e6af0ea1a866645594c9b1434468a303def5
MD5 8a2e71e0844e8fbba1131a3818673986
BLAKE2b-256 4100a0c537fc916f2988b34915c264b2d88026ace2ba6de83b29d8a7a0f49d54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.161-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.161-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 992a6c361bbe029e412f93daafa0bcb2db3aa542b8542b8ebe652e5a466b5064
MD5 b682fc9f3342ca96c6a63aff2715b482
BLAKE2b-256 cbdbf614546d2de15885d2b6d82c94bb2f2fd0b3783ae9313a3abc5686743028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 669473577b9809c164ce13b6de0389aa024e381f82f57ef7d678a0fcf22ccfcd
MD5 2a5c551d15ae67fffc8aeea7a72dcaa6
BLAKE2b-256 f15f5b2e63a4c3d2b6cfe10259f38d26b515e7598c93270e14aca2da70e2490e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 599775b4221e1671c61d2c261cc3f7976443edc4302ad5eb17d3c45dc5f18979
MD5 c05a5420d18df9eabe8e10026c86b712
BLAKE2b-256 987f1d86fa90048d1df8e46bfdfca9098e82fbf45ce1705e7a2a79b0acc81d3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 48a002fdb4b5238f666fa53e25d4aff81d60eb09c32420a132275f38f24bd1f4
MD5 766a2990a425cb12742c4a753f23270c
BLAKE2b-256 d3549c6a3b9b173e5549973455f1a27438c369871172b995fcd197d085bd0770

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.161-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.161-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 597a511736dcc682a0fd597cef5de64b272f9293e0aec46a86653b373327c668
MD5 39f2a969c3a23d838ca1c9c00e21f58d
BLAKE2b-256 a2c5859337d58325fb14f687ce8fd08923131bea9bef487809ba65c76a6e9268

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98c922c70f9b6205feb03cc92c73d2f3f159733e40dbc8123211f0756b5b01c2
MD5 b96ff802a960730e533d65782695207c
BLAKE2b-256 7f066bbc2c7e2bbb9d99ce9f7bc9b7c6ff86a4c49888a70b9208bd0fb9503d49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bb85154e233960b9346bef26c3086b7964ef74875e384b2f21194efbcf317c1a
MD5 b8546f4ddb2bbf3f5d2cdbe9cb3bb186
BLAKE2b-256 c5ed44df5356bae3cb1ef3e9ce6596a53565fd1862e33b0c046ad451024d4520

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 82a35982649a87dc3374c77c600773de0ee9e452400199835414719c8368c7ee
MD5 052a5e2b9fcac661c3022f84d5176e4d
BLAKE2b-256 b5b09c71656263987092ecc009c2a27e5fd2d36a62d55f9e63801b745f84e553

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.161-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.161-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3132fb35f7eaac4b659008e4fea307dd2a5f1823991800cb8ebea47a0fcbeb92
MD5 0eb5b1f0e0cfe2a25c0f92c4b41ba521
BLAKE2b-256 9453dc38d96363a7ffd57720432af6fc33d05899816559bb1440a51c112753d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bf9cf58ed254157ba67091ea60fcffded63a8b99f8dd5cd124abaa2b1486bab
MD5 1dbb5c024fba17afc49ded5f5d88926d
BLAKE2b-256 64a28e49d1c75ff00e4c5cda18d8f9e26afccd69d3fd6b791cb2ac77dce120db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f18e1fcc677444c953ba05eaf521b8ecf2c516845ec348d8ba2a886bd810bd3b
MD5 6bd42ad745c76a200071dd9a39100701
BLAKE2b-256 a6d6757ff2c5c8a7d5b31c3e0ee16c95fb77cec96dce8442998b5b6827d3a97c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.161-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.161-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8f06b458274febe0ca1bb695c01cba0d445dfcb46a649f940b5760589b3d89cd
MD5 d4126ff6161db734944ea166fe2921d9
BLAKE2b-256 79cace3f4cf0b081409f1abf667cc6a51042e5136ae3e5c24f4b99df1894a694

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.161-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.161-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a34756c093675f4c49f00ae9cc991162a0b68e6cf6d4b85434164c04b8f8d2af
MD5 22b20c666b1480dd067f809834837d4b
BLAKE2b-256 e5923cff9add4f579aee372a49f1f0e77eef94a7a548d75256fca0b69bad8ce0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.161-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71cbeafca776e32593b29e8a20452b50e3abe994a7ec5280f7ce3e39d831a271
MD5 1530d55b6e9a84d87995f749659609ec
BLAKE2b-256 ed5ef077dc6ac5e9c6041a40490418c2e1e1d1764ce2db9d886e1cd288723bd4

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