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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.283-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.283-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.283-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd08e9fdf1986b319b1f3e163dd18842b147c4e1e1c6a62071d4d75e525f143a
MD5 3ec8722343934781fdbff1951ba5d22a
BLAKE2b-256 bbfa569b3d5778f60be7378bb2c03d22c2cbf02cd9cb410fdd0f9605f8cc71a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7c675a3c7ff05049939f55e707f6a6a0a5310130029b7c22d0e40968adb86ee5
MD5 07b555a83d9c6f2380353dbcf7c140a4
BLAKE2b-256 dbb513e57ae9e3ced316004f1803ca152b4e8bb79460afc7cc1cc178cfde17af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.283-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.283-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9cb918375212a9d4b2643a6486f03319a107e058d571a29c2edba588312f87ff
MD5 3c9454a2dab8ed7b41da5b23edb858e1
BLAKE2b-256 9bba5ff3d0a94a2939020c9b9ff9e6d45e0a885ef422ece4379f682fdbd9cca2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b9bb8d6320e83da82352cb2a917a034727889a8ec821fd273a360d22a006c86
MD5 db5833c749b7e26a44b5acc159e1e8d4
BLAKE2b-256 a97be3232e52cd9c88fd25ade7c98ba3c0dcb644b8700025b84314277fa5016c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8d9bacc8559cfb0a0c59f72955deef1ecf161f89ca895830943bc81c73cab9d3
MD5 5c0bb60a5939f8d330536754f5d9ec7c
BLAKE2b-256 0912222179b68fdf613acea6f44de6a0771464be31cb75db4d89e9ade9727e30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 520712a0f5002cbd44f64c7efd8173e2f043f54189e8c5b6b6301c6ac46d2612
MD5 ca62f56e704f303fd498a23d52634ef5
BLAKE2b-256 14e9e531bff7970d635a98d8953cae102ea3ef8285a32e2c9019c3cc542193bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.283-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.283-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97b195ea4ec5223f3c572031034c489f6c90349be179fb80124b59718916110f
MD5 a63694addc1a443a30e992e40b7e9e54
BLAKE2b-256 b93089ec018eab5086a25de802df1c37b9d678e5de5810f8620f35df48205268

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c9151a357a143c2a2e4b23986c08839540c4d2df2c6e8db5aa694d9fb80ae37
MD5 6aa48a40fbb56f6b45e565a92f8d37ab
BLAKE2b-256 d2123b1cc2ae69cff104310b52d85ccc0ddcaa8a15cadd827b6ab92e9741309c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d8113ddc254993d354d81f889d57cec46f3b0ba132966ed05fb3c47c4dc7ca46
MD5 90980cbdb560e1590407b91db1905c3f
BLAKE2b-256 ee3cc9ecc194b7e5570006494021ff2aa30286ab894e1b62c0b371530851c7d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 776dda0c9453db8d1ca59f947f3b7eae0f06df40b940408f0147c927ff16875c
MD5 055500b9a04488e4b8e00b14e517809a
BLAKE2b-256 633b1b3dab761b1b8c0c793284b110a50fc52348bf8924f1fa9265b1edd5c4bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.283-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.283-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd25bf1ef8550d4c30e09212eafbc2e5c23c2e3c8ef3ea43beea8134acce3d1e
MD5 c27464c261b816fdcd6310189f87d2d4
BLAKE2b-256 709df25896783b55c1d2a3646d4cd2ab70edb0fca7a99cac39d67e6895e7ee52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8c66ad79944e36b85bdbff714119f36b88699e52ec7e79e3be807d89ad4a2e6
MD5 71a1c08b006df27eb53e5dc5c20a5293
BLAKE2b-256 7db7cf9056813a37efd8d130bd13c18869449e52d9a04a76a30de716d4573259

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 790b3bb8fb9358a7d25f8bf120efe555da3b6d4a6b6ef6e93aaddc8b47b2336a
MD5 33fd842180fc9d774d24a30cd89146e5
BLAKE2b-256 348610725417592ed45ade50cc0f2079702a330e211f4dbc6a97b89ec2d1ebff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2c2afe15b7be3aa81413b9a32c6235cb1b6732e1e2d77526dcdc60f225f757d4
MD5 89c09f764d02c7992172564431be3d6b
BLAKE2b-256 4a8085cfd3e885384038726c3cec9a23b5f398169ca646209eb3d49a84799b84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.283-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.283-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49476ff2872daf2761321b4c556b12abb78b96c90e6129c3bee7b9edfe1cb313
MD5 7d7422a539a98d9a037e4c074acb87db
BLAKE2b-256 737fb56ed39fe3fc15b0449d4b717a5a32baf7081ff5f519d46c04e2c26b73c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4db2f08d6c63d19b2e5ab9cb8d5cc63b53cbbae19830b0c3dc5c015488c74ec2
MD5 eabc8ee2a78a2762987ac0a08555d559
BLAKE2b-256 74e0eb1fc9118f0507fc5559d164b33b21098091b5d6cfaa7bdcdf64d287d1a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c3411c2589b2ba656a5a2e00013bd290482dbfccefd077a9db9b70b3a488e4b5
MD5 5c4e45e510ee1118fcbe25a235e1728a
BLAKE2b-256 71deeb782465872d4bbd000bedd027ead4f176c34b6b210dae55adbb54048ccd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.283-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.283-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a06950aa73fe1baecf7bb28399805c8f6a82fbce68d34ec5759ba06c9d9edabc
MD5 7727377a35fe393e42ae85dae800cabb
BLAKE2b-256 ff40f7c31740f7db35a5b0bfac0cc774645e45f7e544fc0d1a8df2c21856f831

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.283-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.283-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbd2200fca163d667ed8460d3c2d32840e310d771d6ae7bfecf2b8f1147b5a92
MD5 ac18bbfd7dd3e918872e9b39488c7500
BLAKE2b-256 cf15ccdab681a50d10455eda36f70869b9e20b5ea7cc394d83ee0426cb924ae7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.283-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8129c2ee755833febac4ab6e3109c1e6b5e49be09e707f1829d427267afc87f
MD5 833fb8f48cac0f2db665250be46c199d
BLAKE2b-256 f7e96229fd9cd5ed1976ec3a7160ac2e500eacdf08dcbd5dcff154c0021f8f06

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