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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.340-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.340-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.340-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3149cfbd6647fbc4f6c3f5025ed24f810e6b7d8eddd8861c7c1bda5771bdb658
MD5 df48a35468e9f5ae14fb95d5d2b7a4cd
BLAKE2b-256 da6c5069ff9e11a7ba3c44bc839ec7f018a2441466cb834ee917791153df9ce5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 de47820f6d768a178abccb9aa6b3e7035acad40b144bf08b40015dccddfb2b5b
MD5 16eea6a5ffa13fbd526e85bfc7c5ae54
BLAKE2b-256 345b3e1e5d8779e546bfadce63375f2114f43aba1d4bb8ac0db04f3f68bc1dc7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.340-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.340-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb11c4c6ab16011e0ee09e63dc60aca32913914abb96db0f971c6d9a2764e77e
MD5 ab13e24f0c927e7fe670fc344191488a
BLAKE2b-256 8842733586ecdfa5987e60dac775b81785fa6efbfbc4c17467808bc1f7d109ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a91e0211659975d71789197044729a0bfd972da5ba222c2d037430e34a548d36
MD5 2af49f6af70c1d672916a95b889f9fe6
BLAKE2b-256 496e174c4c24812b31369f6d37e2f0b1a5c3b12931ecd968cfc0072f7e9583eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 835150f5275d7eb221f8864388122d540c528d78496869e677f0d8f2d5ffd9d1
MD5 de3c7edf1560f849f457c467e3288184
BLAKE2b-256 7eb2bcfd33bf9dc0b9b73c8ed7b7c052be983011735c7331cdf6c2e89891607c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4a86b2055a892aa649d6c238651b84ae92c12f8bdb903830f213fe3758fe6f71
MD5 692a53a277f5906c1acfd30529f25b45
BLAKE2b-256 f1edd1e48b554820aa8b3d5b41ab0466d59892472c5029e2948b0705e3435c38

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.340-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.340-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e08162a2791929551fa5caceb5766c53f11c72340635720be70bfb058a497fee
MD5 b2712b4b6aa2ea5cd1d2f58dc05cd172
BLAKE2b-256 1bba691c3a5673d962ea097d5f42efddb995967c16a7a0171d799cc046c25f9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2db08d521cab8fcf46cd534719b512a903835bd540bc6b9809cc8f5e1b306cea
MD5 32b90f32dd4d31de93c89dcfce533ff8
BLAKE2b-256 73a1f942342d97d5e64a2434350a92676d939315c61e97fb8b5f879c16346132

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9530253013dac271678e009bc79dd61d6386315bf722b635af53ba06faba1a03
MD5 5d7917172029e5f7f85c7d53be7e117d
BLAKE2b-256 baf9f8b18d169b772527534e8090abd40cd8a8239e291a363ebe8e967f81b5e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a2e2ec63dc9ec77f5c7361eb2e2397411dc0ae6d3d4312b5f8ec852a4f24d88e
MD5 f9463046efae6158769ead8f75bad7b5
BLAKE2b-256 872e7f7b65b5a9601ee9da71b2a5c7809ad7fa6802956e96edc111a4803e994d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.340-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.340-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff510804c5a3983c27ea1d442b6396039f4551e375ed0bbea22fd7613a97d038
MD5 6e345a9248f786df9290b7c928bd2e28
BLAKE2b-256 3531396e56d8bca85a96f67ec5d7973297a69a3fe0483c433e2f48fae2b37107

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30e8e57015bb2b4bc279033ce93e156dcf12e6073c5f291f947c6ad398bea0ba
MD5 0fc2ed9557ef52becb6c5d74f655dda5
BLAKE2b-256 747f645c4b8a4366217610518c244d25bc3b707378b4270de048171ae32616a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5e41b2812b898af03c82a9402d4d888f2806d72ae6e457f5f105433b9332f282
MD5 4c47acbb71b09875a3c0c0020208c58a
BLAKE2b-256 79418447154dff0cad13c27784284651e5a993c471c03af1d64abe8388142dac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 37bf373998298c03f26ab4b5e01359a1157de059552bcd04ddfd53e4936e624a
MD5 a97b8d7ab2561471183da64b129becd2
BLAKE2b-256 a0e023594631273881f1bd3d02cfeb22e197f1606ec54ef7036e4f390501741c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.340-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.340-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cc6075d1b9d9a2869d60c304e704b0e9dcb6e31699efcf52020d7daf1952d0a
MD5 c0cece1d790cf0e62194d9b8e8dd17cc
BLAKE2b-256 1c703f17bdfb48d777be3e329fc373af8cb1e105123c1a21258dca7150beb2e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24f06935528e9a5a3017d8ab208913811102ab576642e34ebcdd61def9955166
MD5 c8139ccd81e0861ac52e4904edb16ebb
BLAKE2b-256 251b2d726a6aee8e474252b34f307f16afbbb140dd41ff772a6e1e2198e1d165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c5222ed7e4dcf3d14a2159b7bb6b55d72a070f892087f4daa2f9dfe199ae5b2e
MD5 7e08052424d2492df01e5041811785ff
BLAKE2b-256 0c1b80ab680031f50f7e60b4b2a1870b93d2b00b2e90482e2e720f3a881f0105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.340-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.340-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b6712d96ed89e1cf43541728067e19ec7ebee4fda2d8769365c0bdae36192a9b
MD5 f72c367211f0db67ffeb1d9b0b733571
BLAKE2b-256 00934aa8c2cbe9641a036883a621d357eea31c33a3ba8bace1e7ffd88def2e4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.340-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.340-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3cb5f8c01e3c1ff557ed0be116373d4c20e95734c6b688e19363fe6c0c07d59f
MD5 19079f7383b01feb041f398819988659
BLAKE2b-256 5f0f9dc6807bfa51a6d107027eb0a44fd7d23e243d630eec53524902f3dabb38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.340-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63a7f67c467367974fe4daeb0bed1981ca5bea51e7bf6dafa4de3816714fae1d
MD5 801b77b7526a171284be0beaa9c91fe3
BLAKE2b-256 f44e852dfcc5175ba4e154b77d11ebdac46598874a30f844bff0b1a9ad4b30ce

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