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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.418-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.418-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.418-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 75ff996af3d35e59a0847e8d0f5a2b7e6a0f775cc42b90f8913ae9bc35a0d730
MD5 def39f731fc6052eb292ae3b3748a6a6
BLAKE2b-256 2f837fe20fb84d9fc254e31e718a940f30d37a1a5313b20817bb64738dbc19bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a733460d67a99a80328515c627d1d1490a56df33a7d6276b9d8d151391663602
MD5 c16b83b1771f7d210ee0a1ae0cf5f4f4
BLAKE2b-256 6bc50a84589136edd8498b5251f0aaf2377ef3e6e1402c0a4796e606a37b2fc4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.418-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.418-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fca9ce8553896626599ed9644c749af6f4f761a21b3e5ebc8ab320f4c3b48861
MD5 fae28f372e6ee746d70e77e198d76fa9
BLAKE2b-256 afbb266208fb6ec26dcd0da6d498919740574c6e659bdcf65dc8933215d60efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2fa59724d778af013937a35c4c25c8e8cc538f4965231c009042ee5a924a9f9
MD5 aef71c288be0949393ac817457b77288
BLAKE2b-256 7e3f3205429b3411f96f314bd1ceddb2bdcb46ce3d21cd98e0f024827a190877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cabb28beedeec9561a10f66a2b050ad59b6d4ae2ce5f9bdf512cbf881c75f7e9
MD5 d76eebbada49f9a946495451c07c8659
BLAKE2b-256 78c42d44d875e050ccde1d183f9abc635969c66b5ec61b828a68a6be3c980f55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c3741d380846077d700b90afedd80990c8858a4eb4f51762129d9587334bd162
MD5 b392e36686ebbd9d0c6ac428f3134a0b
BLAKE2b-256 d26dacfcfe84570b7647ebf4301f611f97aae701ef4efa8802a09eb807b61c76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.418-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.418-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0dbdb4e8ad2c20e537456bb857cb7a3ced47ed5bc136082b2a9346e7a3e4cac3
MD5 1b0622c0d55d4253405509ea059be556
BLAKE2b-256 737b824e6df00c43b8aeb56a787189b9844901877e2aabd134f9778c8dfb4ab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca7540df2874907976925117c799ef9fb038fe62f28b4b5b9639fb6e6956e56b
MD5 826e7c366650fe27ff1155287789bed1
BLAKE2b-256 ee49ad10f831425dcec85845ebbc9c7382b2ec2a05e17c85cb7815b21d7d0155

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9a952d216e5b7110f35a428322d3eed49087e7b02f37296b1f797f4b775333a6
MD5 7f0dbd0b0eae77615a10cc790ce4ea36
BLAKE2b-256 3c6bb7c8dfc37cfcb0bb945522e3f628af6265710fd0d8495a92e477f3a03e57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 619bfe88e679d20efd2136c86a14af090e8986c964564d3ebc8df0a0b537db9c
MD5 4f0b035478129be8c0375c2d5b30a8bd
BLAKE2b-256 623ed88ec48660e113648ee365434fc9201d6268dcd76e65276c34d51c822964

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.418-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.418-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ace3445b62b147336c0e8cad450206e64a804dd4d766c43d273a98af793638a3
MD5 e664ba3f3ce9587cd056afbab36f0a6d
BLAKE2b-256 59a91447652914ef8769e2a264b825f33a8ed2e2ca4eaaac661aae3b6cd7ebe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 318ad3ea260643fb198146742a216934aa498b408f32c77d6e052c3fd725e799
MD5 fcd7cb3b862843c500fcd1ed9bfe309b
BLAKE2b-256 0a0b7497a1d313713829b611866b3b712f76be0291eeaee2f71c65af94b9bc89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 38122f3535e0cea05c9b660cdf8815db34c050a19657cf6f43e2debbbc2cb384
MD5 66f5e1c1acd5398f2aa92c086d26dafc
BLAKE2b-256 1a89899567a9749654e286dd2d2c45ac96a71ba980ede393a93aba530417992a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3332b216ff765d38d095c82b012a847c506673bb3aad5d18ad613e1ef2b37922
MD5 9b85f6a8983f2401d9023bf9cb67968e
BLAKE2b-256 ba42a9e88b27fca60f6a7bfeebab86c63e3b471d4f77ac5ebeabd582f8b0eae6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.418-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.418-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95f0d8d172a32fd116cca19294e635c45879a8e10baecae360a52c52708466af
MD5 96dc788d6d387edc7f2898d7ff516e63
BLAKE2b-256 3554c725c7cbf6748826413e4869fd255878e5d94f8ac0a31d9de610554b6ff2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78b702372a0790f9f4ace9cd4574b03d28a7efb564ec347952f1374a2c0d3c43
MD5 97293e82421ff2e8387cf19de7dc9d45
BLAKE2b-256 7559f70cb0479f92e1e037ddb2dd26816bc01dca10bffc81f528aa2bd3b1b3ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 69cc452a29902491465e865625896305443da9c489dea45aacfa1a8b957b8b32
MD5 4bfd8f9722e76b4e29fd88b6049de5ac
BLAKE2b-256 79fd8d296a38cec1f3a1876c75d39150822b7f0bc534b0214cde6c21e5dfdaed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.418-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.418-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6960752e7c527d8c1cafa16b3a3f0afe49978f3b9066a54a965751a3fb663625
MD5 800df29de9a84c1bbc4ed25c97adf26c
BLAKE2b-256 a211ec28a5cab4e52e74019b3bfab7917952ec1913c05d0a1c2e606797e63c4e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.418-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.418-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e86ea55c46ccd56c467cdaa4143fee3e464c56d8d4c2a3f913445765c37df265
MD5 b9054f7dac46d0be4632e78c89de74e2
BLAKE2b-256 54c85b8cc23258169f9005ef8138bd5e3f1a881ece66832f9520ae5caf8ce1d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.418-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc87609471435538c56e9cf88b1292ef892f7b421a7e3dc41c84029e3bedadfb
MD5 88c359988cf87773605d61dfc6f95c6e
BLAKE2b-256 8d30b747442d468c05aad437bc76a0be9be6a08eb70416bec026c6a105c4690b

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