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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.528-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.528-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.528-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cbacae59d52155b20d5b6efb7d1aa32e49419ec862058abba85cfe007e9d1c7a
MD5 fddbcd7df52b38cbb823e176133b33b7
BLAKE2b-256 8caa08919dfe0823e1aa41f15385375cb5c321c3f4028ddd1fe6c4fe306b9afe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 835f5a476804a0466d2b6339631b1ec68c4aedc3319f3878a4375676409b1da5
MD5 de7f51341f0384b7c615368355e36290
BLAKE2b-256 54fdb6db8d0ad3301074a06d63eeed67861a92d95f852cf4a47e50841a6e8ff6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.528-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.528-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efffd99c5fded00ffe307b2d6f68e488d70f7e992078af7b637eaba271943e59
MD5 74bb049112ebd577a99ed39b2f2c7c61
BLAKE2b-256 de1b795caa02bb897becce3cf257c97f6d2c5e32fba702a8a8476ef3d1d3dc44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 83e5ec7866a49a7e907f13239624e096ccdbd3cae8ce84414c62d1c53ccf50a4
MD5 508ab4d18c8d084d0581506698653331
BLAKE2b-256 67f308dc65c5d241b3af30bb63071540741bc4b5fe77c1aeaea74899913d7acb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f7e1bdd40c7b8163842c2662c955fe49ab7b39e497ff5e4b45eb3a470b7d528
MD5 27719ba8a566ffc04fe4b8bb406265c0
BLAKE2b-256 54de03079c221860bc35e86a56507b3ff2ea690a78078e2703314c4e6b1fef17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5193be3176564c47b667d6b3c7a5df04977b47c9437875af0f557c8cbe7689bd
MD5 09b4c6a8e0c2b2a764cf9d221aafcf49
BLAKE2b-256 22e292232752cc6dfd38cd8da8cb64e6673d64c337091027fbfc872f22cd3280

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.528-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.528-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcbc74cf523f102de4354c4303cee61fc16a81725320ab7fbfe1fa6452a93a16
MD5 f857077300470584c222bfa02ed20f17
BLAKE2b-256 85fdd9d171c318fad92e3601f00f11ba7b0d4440d905bd438fc42980b567e677

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd687cce4432c95984561ce1ba889473a25c4e4022fda88aa9d1555222e29e68
MD5 2efcad5ff2c4bfdcbe0307d929aa4601
BLAKE2b-256 530d273831bd99d13ede25b4b02c8aea0c8fdd25ea936542bc92dee19e4fb943

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0c48cb6b402ad271f4d43bb8f575e6986e6816dd124d242d1152fa6b6a09290
MD5 9d3291fc15ac0c6f077c2cab0603ddf7
BLAKE2b-256 0d002edbff299fe60a7aec4a0bfc200b3f06be33e7614980949a449321965e72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e4d74a59cfe344d19a4fdbb9d38d849a7b6a7d25d8597c0475051ff0ece18393
MD5 491fcdd0565527bd891a6f224660552c
BLAKE2b-256 993df7d8719ecf80d36bb52484b6a1918ad1edbc6da8a0d6b29d3ffa37efdf3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.528-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.528-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ebe99a9b3c1183e351cd900a6997578e8b1271d7e1411ec816497bfd0a80224
MD5 fcde59eb3b82110451a3c4a395941185
BLAKE2b-256 5c3c4596a94247a00daa5a52b4ed183d4b9c0d1f16156b7bc50962547017a803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e121532222bd619cd95ff328320f9de08198b3f6ff8efa43ff208386ce274aa7
MD5 1c6261a4130407cee9480c92192dc961
BLAKE2b-256 6e267fd46a692243656ccfcc81f74f18c874d5bca0dc445a2450b06b1f186a54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5fc9b3a9f97aad314dce91afe192387f8ca33ab5ec27dd6e2315191690966a71
MD5 9783f399e357ac17b33fcdbe3cb034ab
BLAKE2b-256 2eef8df34ea7def6223bb05ba23c6e33fa26b8d7d0c1b668a8335a7628b44670

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c1eea416de97c24e466a8629003d653300c083880ddb9b7977f23d3a9a3b4ade
MD5 9c2564fb64cabb2b481524ad5906d42f
BLAKE2b-256 3f529cdc698a02e287cf8f33281e2e5b5c27a18ea7f65060509a199a4ceb9fd6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.528-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.528-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf6a214a01d74f8c23d06f3d186c7908abd1974edfb31efa9c42b1d99c0dc4aa
MD5 47ed1bd5d11019b348ad5e838f373afc
BLAKE2b-256 c4efc81ecf088fea58c7d08b94b81bdec88d3085510cc9763b82b829cc81d9fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acb9a9f085a5a67cfde0dbbfd657255987e8267717f3699334216ba49e333ba8
MD5 2bde72a5ff1582128166c4f3cad1b4c1
BLAKE2b-256 61d87b120c1886291b0d440bd823121662674b3c284af6f4ce0d4b8692dc6349

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cb1c7a9ab99f38d3fa18c77363bbfbd827a2be18d2e0379ac66a0117b1fb236c
MD5 774d190994d8e29f34e6425d3f3eb140
BLAKE2b-256 7718c4cee09891126ae8a9229548b3cc4768c09b7942e53d94414d61fac131af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.528-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.528-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6f9a6bcd69c796f374f99803435b505ccdc7c88319dfda7aaae32d5c6b53f9cd
MD5 e3c46d187dc2064e11bbb9b5fcb24419
BLAKE2b-256 218556ef075579f5d2cbd2068db7b080009fd5b51ca3d13fffa52d36511323a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.528-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.528-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5af389e94836255152fc73d2763d01bc0593cc2b01917c0771f90f8329cbb90f
MD5 538970e81dffd57565b44391983c6d18
BLAKE2b-256 ae198786be64eeea08565c36eb99f1ca735c7e32e93e72e47f103ec659be6fdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.528-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67a7506e4fb6e1651aea6dc59c8216ca6a17b3df5876a244507a3d59c59a83ad
MD5 fbd4e4f7d9950747b8682127acab9199
BLAKE2b-256 2698e43ffdc0e456564d36a866052b4a42b5db75b2d89811421a25cb8ed68779

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