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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.110-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.110-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.110-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 492f018573b7b471e9c49745b5631063e2aa982f6c06cd86545f0955cdd730a7
MD5 9ede33f3eb611f37af3504e2e8cba874
BLAKE2b-256 6c96abf7f29becdd16a5cda363c0c9befaf6daf5b196a4a5bdecb54d0982fcb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 310e46f8a555d759954ea32c8513d7292de1df923b355c9e2a6bf6f7b7bd4dcb
MD5 964c00c312c375d2205a3cff330e2062
BLAKE2b-256 db4373f92cb05af57b13172d5f6cf86383fdfbd34b3249203ee18e03da0b1663

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.110-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.110-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5f8941946d68167efc355a97b114ebc781aaad62d5fda7852928d52e2718284
MD5 cbfb51eccc327de6fe28f07cc3103187
BLAKE2b-256 0996c18b8de53d13fcd0ec49eb11708d5bcb5c8e6fa3edf070c3126834419a53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b18f725e5fb75e66dfc5b04121a60082f5d20ae369cf7c7344e3f1c7471a0228
MD5 aa87a024e03492e26c497d5deef79114
BLAKE2b-256 f6a55894b6653f6f593b18e6e3595be5a832a639e25f22fccfe575632ecfa4f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 79b13888fa5b6245c6362abf87576d2120bf6ec92221c42e412a249e4067b571
MD5 64a447d4ad4d5ee92166b4154c11a6e3
BLAKE2b-256 b9ea54af34e3ba93e2b51f4aecf93d93ead70fbb27680027000568477418f608

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7d91913e3de358861b3636b0b3114b869ca15a31f358d8c462b3bfb3086acd9a
MD5 31df6ae10a6c8ee20605b3403ac93c26
BLAKE2b-256 d3dc4b95e2a0c6b39d362ce4775e2feb1be0661779dd1be5842e8899b79a3953

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.110-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.110-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8def55551b3ec40a870cf85803d58cad081bd454efe8e6959db4cf4c4869a71f
MD5 b2aeda5f027759aed932c0011203fe69
BLAKE2b-256 b73be32278e83faabbcc778e09fc45133c0f1e765eddb49de094b754d8424f70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc0639d43c25502a1a5945b78c5fc0f8426036c4558bced60f1c81cbd982a929
MD5 9394f13c9151dd2871710a3bd3ee2bff
BLAKE2b-256 f89c3d23a7d067471c16a718dda4b1ae8209c6f4baf85df9afb5cb48bc9f1f34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8648f570cc9464b9d569bc69e242166145d0821ac1b404ac535b416ffaadbc0b
MD5 f10679abcfb0fb21045a45f9d68455b5
BLAKE2b-256 5ca490bb21c36a067f89cc0a96b9a8cb6317801cf111a4ad2dd571ff9332c458

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9f61054eb3a1d5695236528f12f0f1f3f7a8d0eb7fc5b934e4e7ab27419452d0
MD5 cc9fcc18b603da542eb765589f01ffbd
BLAKE2b-256 62bf934115889f3ae4b3db19791df096c3484e4630d7006596983ebdb90c7605

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.110-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.110-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7b037a2aeacfea7fd2708a29362af38e867228ca072ea41d303d68121d3a254
MD5 69e87c205dec41170b224ef7a87f67d4
BLAKE2b-256 8674ed6448b990bf2d65d1bcf019d04922aa27a4ccb64a77b9fa6455a432b291

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 485653dd1e9a9c674e880edc2f75e7d91b2cf31ee7b864a62dc2608700e72938
MD5 a58a5489bca5ba4e5fe7d07e288ab10a
BLAKE2b-256 a4edd859ae23eb623e402ce91fd1bae95805bb24df74d1f60564412437ece3fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 440582997eed41cba5c0f66fab5309e6e6e8aedc12c982775736251999285b1f
MD5 04759def890b88b4b2d9a0ca1609cc64
BLAKE2b-256 1d2d273d6d3731f5fbb22e78e6558fb69d862c0ef80be85bd2707e157decc34a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3dd5c60ed3bf3824ef87fea7f908129c124c6ef046199859eafa752bf6eb3b0a
MD5 0286c0073f2d0d85d88417499fabd9ae
BLAKE2b-256 ac662fbff419ebcd4ddede9f3d496337ba248ec6e2ca5c0b12aa9f4086b632d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.110-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.110-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c89001dd9163565a6a0149956f36ee3928647b77ecac32e75850640fe1323af
MD5 db09247a532a92852d79dbe9851666d7
BLAKE2b-256 f454756a937631e84cbaf25d2c29dd796545b171c9ee63623207c82fcf366bbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3002320cd6a167371d9fb4417018d9bbc6fe0a50ddf9cdf0e83af84759e24665
MD5 0b6949f228bfaaa5f63e47da939d3e6c
BLAKE2b-256 d72752ce2630e85b5862e390a6cce9ae184debb119a0f5cbff1f68818a7f45a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 65db30c857cb0d663cbc7a43c0fcc6d687f50d6cd4c4bcb669b30047bf238e8d
MD5 41aed735532b7ea63cca0293e34afd1b
BLAKE2b-256 c0b276803a28429e35021f1212bb37ae27fe23ff195930c7325647e4478282b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.110-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.110-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b466d476a88b6fb9d0c4d1902a1893974c8e535c098fb77bde19bac8c443f836
MD5 75de89779b0ae903100482b11f45ae9f
BLAKE2b-256 21f9c9d4dc1f3cbfd9053082ed476297b355b15fa332f33b21d069046d33d7ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.110-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.110-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf3a78818c72abebda8bc15aa352b2d74de6ba284076d60f33b161a121e51650
MD5 bf45e3883a904ad0cddc65e5bf3218c2
BLAKE2b-256 29a41f053140a9156d9857e522a2bd01b3ab19a2e85459b0b59c58cb7a4ad6ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.110-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 256dae4fe5ffcb4de24d3f8246aa2b4789cebe3a52f1636341341f4f768ee4cb
MD5 6ea8dfb10572ba71dd6c0a16c89eb940
BLAKE2b-256 1d629f0999e32bb5fcd169505e2f9aee48f96d9b051bb27162be7663287b117b

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