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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.942-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.942-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.942-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e8a18c5468f8bd92a35b158b3be99acb47ba1b8ef97a0306552611d2a11fa61e
MD5 a7a779f0848ce5f74ecf2b78e1bfee9b
BLAKE2b-256 76ed3cbad487c4a6307381e0f7cd218a8e0463f222d03569ae115ef86c9257e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 50f7e755bd22cf3060e50e10964c169b06d9dd2655db4a6693962bcab51c58d6
MD5 602dbe5b415c82ff4c55ade9c5c1e11c
BLAKE2b-256 03cd4765ce51f9812807469cae1e96293325f90017d302e2a1b556591e3949d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.942-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.942-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0b14c2e9ab2a3a52434b2785d7235807c2831a368d656f312d499b174137433
MD5 2f78ac8d2d4e4391b8061976b67aa1dc
BLAKE2b-256 57d0a49decd9af77f309ff5233d224099b26c33077b9b620fbac4541b7f7161f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 217d5fbfe9ddeb142a48c8e59cf0d7cd8ed080e0c403f4825bdf8e2e565894bd
MD5 6eb8d90140e4e2105d4af757b0aad8a3
BLAKE2b-256 aa20b236ae411789ea33f61c2fcd89d79b53bf9078d37e3abbf88af1a5ade962

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9a8a02733e5164171050c53cc9a8cc104ae26d9f568c45136dc635196989f316
MD5 343530660f0258715f37f6bf4ee822e6
BLAKE2b-256 954a37652cd587c86cd9aa7badb38024678e31ff3cee3adb85a135578d6c7c14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 32096136ba2e47fb30e495707cd399edef825d72b2ae6d6ba91ed671569ac8b9
MD5 306b19adbd04451b7f427eb80baea22a
BLAKE2b-256 e77201a5e35c57cdd24648cee48ecf583ab99f7a9d6c12f3f69d485db09a8538

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.942-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.942-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3454a9ad9fc4ac43ec90538ebec398c534f6454d696ab6e6b4065480b57f8bbd
MD5 1fc01473efb43c3251cc5662fc19b94e
BLAKE2b-256 2676dca7fadeccd46db1635bb8b089dc5bdb5d6edfc15c4a69283dc1a4a9bf42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b1967132722ceca26d7c39a86d8f8885a82e1d7d26a4b01beb809b46084631b
MD5 7263a5a315d7503bda3a80f4e8e4b200
BLAKE2b-256 1ae270921303092b26511ac654b70b4c60bd41516654ace134c4f58008108eee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b712483d763b9b3acf95e3e8a088eef28a438a0b1579b65c6d92df210470e379
MD5 d50df8864ccd0a18097e9b10a53ac61c
BLAKE2b-256 64f930ccc2192636402ccf423ba1500ebd0b9a91da3433522b4cf8137b62f2f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 db423fa6eed74380f4ba5093dda0e8aa265fc72cfd354da2bbeba4bd96b57f41
MD5 e5eafe52b04809ff3ff3cb3da2fd19a2
BLAKE2b-256 3bbcacee813295c0c748c56f0d3d80cf630fff1d68853193ddf6f3f868c33bcc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.942-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.942-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bda5d94d0ceb1c90277146ec9d1b0ad52d9f0bf21a2a571a78e925bf156b480
MD5 25e86c286da544b54177b07c07492c8d
BLAKE2b-256 947a0aa1a6362a49cf3c5f3feb858f9fa8a4de13afaa36d861401666dee95d5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d694218600ce91906bb3fdd647ed305b21ae97c50a7c2b91ee4e881cc14cfbb4
MD5 1e61b1d446bb7f19ebef2ccd84c8cc37
BLAKE2b-256 fad0c8339b1a4e83ab688c1c57988e3eeafd04437cad3f12571c2ff5f0f896ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f68ed754286a602fbbeffe51ca4d784f32fc26acadfe00d0b52141da249b9cb5
MD5 2282a4498a1b77c6cb00458efda0fb82
BLAKE2b-256 b7713c22de3deb3b6013796e96590189a25d5a8576a1fba5871afb16e9a1e36a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1438820fc29920bf7afa0bce9b28834950d7661d7e6808472e4e15b1c1bbbf3c
MD5 da1a4b22b07831126b3ca9d9ea5173b9
BLAKE2b-256 a2cbcfab44396de1d747d2703ea256dfb09bac439b82c42bf2a3bf39c18877c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.942-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.942-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b503cedfb2be0c9fe1cc7a4cf06e8efeaf20d9f1e77a3d931c2df8011afa89b
MD5 8cc553ed7a1257c2743117c94e08c1e3
BLAKE2b-256 59e1ddc534a246cd7ee364d04157931c2e659c8949731c0466a18def467da454

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a1de535b2e6d438392200dbfceb518621744c01bb5bc4e9d01b635cc12417e
MD5 6318f6a2c8c74798d514d9c0975b22d5
BLAKE2b-256 e6f1490cf2ec83bf06b78085450c49d9b9b768ec62b526bb0a7d175b574b646e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d99322fc0700f487ecff34df7111ae0edf30fb94188af4b3d9931ed355be86e8
MD5 1a829424d76e6edc8d3c2b7057cd46d1
BLAKE2b-256 0612b3d9b08e7d0c281f7aada19dca447d4d2e8d3cd02fc1d81ef981b3282138

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.942-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.942-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5049b9e32a3d5758c0444f995b8d85d44ef4d676bac8349996712b8eb44de3ff
MD5 ede7e1fe50ff0032a38d5afae9f6f82a
BLAKE2b-256 77d698840c73a8dbe4d14092bfc9538c93e044d4fd160fae4b8de24791b08ad5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.942-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.942-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04fb4a3f6791cf044fc8bbf08679a9493c96dfd8e7e97929a67769ddc9e51e8f
MD5 193a4f31191b8065926fdeddcca6c2e2
BLAKE2b-256 ebf51858a95608d60e123508acd8b7aa920994280b71334d4e1e2e286f56b3f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.942-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2b7815caedd49e91618314cda63a048c623be8a3fbba8620a36aee3e5d66dfb
MD5 05aeec1893b47f61ba56a9f3ec3b66e1
BLAKE2b-256 42bc7d6edc09e4e7be2d58fad70ade80000596469eb9192ee738484857203dfa

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