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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.705-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.705-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.705-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.705-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7350b5dd04566059065374b891e5bfc4c37573ed344068c8b6986e9ac20b5128
MD5 274ce223b00134fae701e125768568ee
BLAKE2b-256 1be6aabf5cca86145f5c0c51053a4e841c6cdd11f61a6cfc04c0236e0c6999ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-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.705-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b78362760fd65520f38f2eecbc6aaa94c8c8f3e091fba758decbc9d56959e4c7
MD5 9384d08e4eae4a91cbf7572f3c5551bb
BLAKE2b-256 e63b0f4a2df71764a987ea0b54ee44ee0a75a9cc073cfd41c2d3627731d15c92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.705-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.705-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68f264004a63614103010e85d9221b634e4be00099a95a9a39881867bbc4530f
MD5 3fc2ee14e5e122e6eb127dfab48b6aec
BLAKE2b-256 acabe88a191859e283db2bdd788f4bf996c2f2407882d436b6fc5e540878615b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6be5d2bb0d1a9b2eb9ce9d12f9c20af5a4f75c5f64085596e0d05227cd4ea9c
MD5 0295203e682204dbe0aea63eb177468e
BLAKE2b-256 e1bcca69f10800f20f2bc55bc4152c926e780de02857b21c8a47781e0dc28897

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e014b866ca9d948a9ed315095d3ab864c139383e90ca5fb6ef904c170c00e5b7
MD5 9c86a4dd2c6ba305b58eaf37ceb1c0d1
BLAKE2b-256 4250a7e742765852705432a95a57c7a4368b4be9cae357be084f150a15aab283

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-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.705-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b7f4d5145ae13e5946d769bdc394f9c91bd173ca8bd8e830d45570a13cf13411
MD5 f5027b65b12bc3d6a24bab0066569324
BLAKE2b-256 595901fda698070ada00fb5891ecf48ed786700e9f3050838ed20a5b28fccf18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.705-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.705-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b919698e15ac549c87976311ff50962229d7cd48c649951252c2e1fed6907475
MD5 228d0a3f88a70ba1f4ad2b6cb09f04cd
BLAKE2b-256 e0f6f71a757abdd8b6001fbff7755ebcc7576d6ea2deb70fa0e19f4c85bf9c60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 646d113e25b3d81b02884e89c4400ede98c767563bdc8877a34a6ff058f416d5
MD5 d490cde5902abba217a102e60657dd29
BLAKE2b-256 84e9f6408901e66c32b1699b2404f2930ffbb2da97c4653a53e8352e59c1eaba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8cbcee26ff797baa0e9852577e8914f0af0a603704a6159e61a296e55bb8200e
MD5 5bd265bd881b265da7c8439d780c51cc
BLAKE2b-256 64159c624a75e51a6aac33bc48d3a07c11f2722b2ce86234aa57df377ae5139d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.705-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9531866fe56b3b1aa90c7c9247eb58d5f816157b79292bec59dc7d93d4871726
MD5 33f864b55864210ab3552540bdf653e0
BLAKE2b-256 6666d092ba6b6aa1328f98d4998b822e948079095326229ef8e1fe25b54bd6fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.705-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.705-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8677228144c4809bd0666cb3c0d0b7830658c05f6414889184dda85c0383972
MD5 1e48af7af74a6a9b840efc4293c3a49d
BLAKE2b-256 072fef52cf0adda323962a1b3d425ec6c581829cc4476c0cbda04873e65024ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d967047380ef11b62a9afeb3427b8f459747cec737586f2e6e96264bd5a6be3
MD5 eda356f0a9ec21b728a09774362a242e
BLAKE2b-256 98417f70aeb0d6e27e8e7582ca894ee722420015b6d36319eca9b85f2f5ec3e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-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.705-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0f57bb525fe31e832190d931b2c244bd902ac57116229247d52b3d8ff4fbb165
MD5 1a3b6f65f264ef63ea208d07facd23ba
BLAKE2b-256 c24333412c4dbdac5cbf6c6a3fae95d73eee90e139eb3555c452a0cbb559863d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-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.705-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 41a52e1c31f0265ef6172ba9af66eafa550108b3aebab27b5ea1c171fcd499ab
MD5 d0963954e2ef2de6180b4947462d10c2
BLAKE2b-256 103f7a26b30e2c9cb7be3c970e37aa1db95843f67e37b04d56810bf3bd62c393

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.705-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.705-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 825c44f04b3813ac4e52466fc7cd04e3e927ba85c9ebbef0de1e71fc69999ec6
MD5 34b0700140e94f09f612a26fbb7228a9
BLAKE2b-256 0f51042b094a307eb3bfa6e707b4f6eb6518d14e1d936680cdc7a48e166642fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 709390d24fe021a3efa199cce218e13ea760fbbbe72cb342ac0c015774a73727
MD5 446de79a4dfd245937cc3391454ed569
BLAKE2b-256 be7ecfddf11c37aec9846480fed3b40cf28518a1c27411b35f0f64f25a39a2e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-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.705-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 17236efc34e8e1a78a4a92496921e6174a057fcc8a8c1ff67e5f201dd3e78282
MD5 bd9699eac67375ebac3528831c2a6577
BLAKE2b-256 ed9c77811802370715ac1c2085f936b7c11e860eec4c40ef0e40934b8dab8ed3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.705-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.705-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 14adffdb8c64f0de0a398efebcd0fb3ccc8796898131834827e86fb662ca5e29
MD5 bcef0486b98a772816fd23cea07d0d22
BLAKE2b-256 bd0812b46d6d4bcb51131a0a7edc221dd205c4c14dca8b7c685f31fb33c7cf00

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.705-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.705-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5ffd9fe7e3eee8da8de81b844d80d1f7e1019dce08e4c0d53c6e4e2c8ca5a6b
MD5 7b6d8f54d9f4f933204142db76a37646
BLAKE2b-256 00a0e81e7b1d45943f58c75b5c4074dcd3a76bdc09822e224dcdc945a27de463

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.705-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 166062e1bb91523e0043b77c7920af7753004d948f2a89d34dbfbe9e69f79f1f
MD5 619746e65a17c172b40ef1ad50961025
BLAKE2b-256 4026c967805bab51e82aaf787d073136fdd1db7a5cd65e1cb65d6edfc131da25

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