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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.99-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.99-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.99-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.99-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.99-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.99-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.99-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cc9f789d74e4c79a68d77ca7672070ed7929bd8dbe53d2fbf79c7ea5ebc8f6c
MD5 95f76159868b973fe6365d4b3746ab0c
BLAKE2b-256 e6de8e601f82d401c3d07acc9ea01a5a43247bf03dcd02c5abc8077fea2015c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 80e4299c1bcf61f7dc818f3d09befef000af8f2855a607471e93e820022b0346
MD5 b6249b3523d354e4b099cb7ea85832bc
BLAKE2b-256 1934b858fb57623ce6912a53546475cfee466f9eeebf3808bab20ab60d9ba725

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.99-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.99-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76cfca6fbf4e7422bf86afb460473de8608d71fb06ccd970e7cc042bdf9a5181
MD5 1727f1532595155234998faa4d698920
BLAKE2b-256 9e36c06ee5508d34733b990828df2dbb2e9528c5b4b9ce4130ee153c314a2616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.99-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07e7b5aa744cd135f3f69a489800c81b9c3b43f3bd137d8e86b72d1e5b399cce
MD5 1c0fc8c4d9693486c51928142b2eb7cd
BLAKE2b-256 3697b215027b5a73eee74e9b61c5dde136136858b9fab700ef6944c56f31995e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.99-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e25135be92051a1e71b359c1c89ea07d684cdb31749cc6a946134e6925cf2dbe
MD5 ca56c0947dad725016b5e59320a892d9
BLAKE2b-256 d5d77470cb2634ce4eb906351323c5e8ff36de91e64d2c64a9e50888d159699b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8ae9c975a94e43bc48133778b93aec4a0866d73717cac178766758ed1073ae8b
MD5 3665fdf41c9c8f91a4d47eeb31e88cdb
BLAKE2b-256 345b3ba29553eb227bf3ff3ef973c41d203bdf9d7cfbbc77f64074043ae9d330

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.99-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.99-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 41d1c605648f5043e65e3f43aaf724945e3b9362f09a65cc1a27f45109c6b77e
MD5 63cf2d3543dce77a6cf480150dba5e4a
BLAKE2b-256 6509f1b688683a3ef0aa31d6240838b571ba5fcd3554a766e64037ae8aba3c9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.99-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbbb50daedca95874edfd7c4ae5539557880ea75fcc6b579145318cd5ff5713e
MD5 8c7f0c830353e12ecbe803703182bf62
BLAKE2b-256 04d1e77e2984f42a51ba99f0061965adac5265710460cff24d201502bf6e52dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.99-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2163ac1968e405da6a5504a4f7945128503a218f694128981917dcb87ed3f5c1
MD5 0a30e1fae991a2b9afbd1a43dd25ed15
BLAKE2b-256 87fca80d97dc4f9967a9965c12a7b85a20e2a60a5dcde64af78a817e8a1b77df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3320e03419e3e264951737ed2ca3ad2407ca3861b11605905bd082a545de7171
MD5 ba7715c53889398adc13f855d3df84a9
BLAKE2b-256 a0e84551825ec6f6543bd00870be427864549c6bd3eb69982d855134321dfdbb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.99-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.99-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68c9100db78477a30c16fbf8a3a25f2244cc551ddf9f36103120d5b8d2724148
MD5 6abdf127216f6fee6702905ecc6d9c68
BLAKE2b-256 9969a300377a0481a486725d6f17bcdd13db35b3338d1cf0e009e96648327eaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.99-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a3636fd5fff9a2c352097531896b15fb91e7866ea082c60724716a9586f77f7
MD5 a00de2ff8efd168e4f7e3676b47d7f27
BLAKE2b-256 52c7f51f9122a54b1a5348009b1f0dbd4c02324dfebceba735a93f8090dda79b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8247f3e8d93b2f9823cccee933b5e7236bd67d81732775e5bb6e936ebd5c7313
MD5 49ff7b81980168e668906754060f7a2a
BLAKE2b-256 9a66fa828e7036c25ebe27715e25c1826d593898e357a23668c88087273b7665

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 faa7b29101094d4fe44d0beb5254ba7a2c8ea43312bb7b45ec02b549edaa7cab
MD5 05a81083e41430389495d737898b5d6c
BLAKE2b-256 f2235738818271d85d63b7fd0fd86c4b70ad8f727578fd586cee7b5976e717aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.99-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.99-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5dc85e37a43f2458b88e1d56792fc6ee3ac06945a47f64edebb2713089ce3857
MD5 923f1b6367355da3889e9006d148dc06
BLAKE2b-256 35d611989ec8e3ea18d1d99230d38745f251e9c3a4e919183c8c67763fe3a9cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.99-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50bc0821f3299b62335df9883bcbce8fe61eda4f5781823518ed1a95cca634de
MD5 0dfd64deb1a388573d299bc61a367534
BLAKE2b-256 379d0e71d6cd22a7ed12a00895b6a2c746f19659fe14fdd23e147f7b338ad2c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 07f828d303dd63c5faaddade07a8a90578d6bf9bb8273749474b4b936d78aec9
MD5 3924b4e6040bf794ba18d4d2d51f7fdd
BLAKE2b-256 f41d7f6601814dcf5fcf3c53928567708d53e2a5ff8cc1c2de6a43d0065318a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.99-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.99-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1a3cacc1f440578bc468cff2913680d926a3444aa8992a852bad84e1bb54e66d
MD5 2b1d80127834fbb3ac9d5c684a4b0e92
BLAKE2b-256 99709767de96ec1539918a6a22082463fd4c05a71c63c515c6e4d994b108db59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.99-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.99-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7ed72e8020a5485c0a08784ffe1e4886b55e2009449c2d61bc9ed2b2b8cf10a
MD5 8b2e9e9f852f78addbc8f670619d23b7
BLAKE2b-256 18f9a61d9511ca50c978033b9ba4bbe248e8d2fbb6eadd2341b88dd09a9b70bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.99-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95dc4c3ff12e52919f85c121a9e88111c269ec6f2e5859c134007343f4b19bbb
MD5 c5fae8fca523b09af569e23f20bb6fca
BLAKE2b-256 644c51b83908ab7dbf1900b072f153f31139d1e34e3db66486434ed2ae93fde1

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