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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.655-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.655-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.655-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 619537edb9fba7ba426ca44911214dfd200ef3c8e83e5dd7c20ae952d9201c83
MD5 d115593d315db92f47b9dcbb52ce6235
BLAKE2b-256 403b36df57f376e66c0efe14bd0b2e1be7e86daedddce6d6136116ed27407bdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c86cfaf26387ca718b5e52790a4f287fc9bc09df32facabff91e9488eca3ca8a
MD5 fd59260c0726df8c5d2268962f8c48fa
BLAKE2b-256 ffac699d6627f077e058c5e2bc3396c5efe862b8adba3d69ab6f534a14a3d711

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.655-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.655-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 479b577c6c8f42af1f867c7fa26bb2a604de7c8aee720cee8c5d914200045dc8
MD5 bbf2dccbd55cb48cbd82912ee073acb1
BLAKE2b-256 101a5a138c741087f6a64fdf17eb535a0418b37cf5b262c0a37011888ad4b7b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8927774031b95e805e677dd51e0372b0c19d8da5681656acd9624dc2fd6fb1d
MD5 2ac220ec6f54a8674a859cfe574369df
BLAKE2b-256 fee85d1c2ed880ce12fb23bf8363d462fc323a545fab982f3261ea05537705d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dca11afe1c31b24a0fa29c7ccc4803a94ecc9c36ff4b9c753e978507b7c10c99
MD5 b9556c36dd160e7ea53337112014cc4e
BLAKE2b-256 d10c87e8e8eb3ac21575a980b54b517eb9a804e4022c77fe172623724cb1835a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d969c57b7c211aac801546ae756ff7891d13a1bbb72a61dd0c4e24763457f756
MD5 33d8d908764ea829d651c01703fb0a30
BLAKE2b-256 65a4370c619f056fc68bdec13f13e30f01fb768149dac1f95aefcf13583c5a79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.655-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.655-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a36922e6b9db9e5f1d5ae9af22df8061dac545ffa3c58aba4beee43c98ea5498
MD5 7f8967454af464f2db3201a9e5d57f60
BLAKE2b-256 f4430f5e5d10a72ed083edd042a01e643514b5c43be1217ed089a7e87d96e797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8fef61dadc95e9df61ca115fac577272b5758303f8135d3b8e3a9398fdc8b80
MD5 ff4ee35c13809d60efb62dff947b83a5
BLAKE2b-256 d029047beac39f8d3f215afa306be120b1b0320c10f30547aa53c7478826f5be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aafd0754add9e182fe5e2ef97eb7d4c08d6830dedc009ddd9b04a97da6354878
MD5 e036bfc09b1f406585ba41cbcc9d4d50
BLAKE2b-256 8a0f684db8e2d705e2c5de2030e80345fe0ab21ce6bbbe8a854a356c73ba4baf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6cab295e924e4d5701b1d20dd77a1c66cddbadf3b59be877fc3b5a69dfb8ed10
MD5 dc6d0ce5af475bd6ecea954186c3725c
BLAKE2b-256 04c81a26065a2d59abf5a297bfe08111b9b3105fff04a33104d6fbca0d85e9ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.655-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.655-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5775578f53ce361ed6df4f8d00702441875cfd2b6c5870287923e5fcfcf17a30
MD5 b92b7b7713d15c37236a4656a7a5818b
BLAKE2b-256 d7d416ae6ee0cf6e674b3237fbdca05dd13c8578b20aec6ddab6af0f1dc09287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6900b4c7c394824a0d01c343be8e04c9d04444f7696c42505ab34c5778c2c98e
MD5 d317c1c58a44017087d14a80ca79f4a2
BLAKE2b-256 529eae8f8b6b43e58e88a0ec352f356963da8a2b369cd691123e8bcc45cd87ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 444b50dd38b455512c5a4e79614634074c285118870847eb0cb505ba157b6d4c
MD5 6ae47dc0e79259592413be8229a3d825
BLAKE2b-256 ec47a0451bc3119a63a13f5130eac8879169e417496e4fa139a8a4282381762d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7a7d96bf70f20f6e4625ea39dcff765f07f1b0636462d077c3c8d6182bc75ff3
MD5 4f946e60444336faafd61949854e6c12
BLAKE2b-256 d21dbbe3bd11520dae92f61ca6072069007eecdea11ec0eae112c331a1c53c8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.655-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.655-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9674a25f3f48046f3d92bfe9df029f0be78042af0544b58a71ff0b2e093bcdfe
MD5 215903cdbc0ef78668be05a80cad2036
BLAKE2b-256 ae7eb8d119cf57ee42c410c4eb00f322a0b6fbd158cef283b2379df886e16ef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5983a4255645338aacde6deecc14642ac22a36e9c96c31de68416d0bebbf263d
MD5 34f2c536a3d4ba1a243cfe01fe0a9f40
BLAKE2b-256 784244d8b40f23c6509215b03e967735d512aa8fb3f9c8746c97731fa11025c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ca21d393b55c3e861d99c4f7bdfcbe79bd97a7b182b934d14416546dc43289b3
MD5 809db62a70ce717a41dfde612e7b463b
BLAKE2b-256 0e5cc4d6b233b34b0276cfe077386413001f0b503c06bbdf7f2218c2b3e5d21b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.655-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.655-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 72a82374660b18c14f27964040c2cf11377545b8e2570fe8cfab6df2df8ec776
MD5 6dd774f0648ab0c41dcc986a356729f2
BLAKE2b-256 e6959cdab8997f04ecdbc61f7673db93049e447519a5173cbec803d2fd341c41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.655-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.655-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9563a32f4ba33f5eb7d9ce2e33687db45d20337821e5569e30c4149ec0189efd
MD5 e9fa9f4e710685ca320d1455828d8fd2
BLAKE2b-256 139d229502dad822702c039922e117bb561b8c14de632a22939301a470347038

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.655-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 643d05552e5752ac9efbd2436aa8279372e3f9d3a6d0943fd9f1d3a0e9bac7b9
MD5 08dd54c671d8d1183a6715f25f3e16e1
BLAKE2b-256 1f2e22d802473266b52bcb52942a933529a564d78cbb19e5633c48e8d31f8a49

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