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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.46-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.46-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.46-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.46-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.46-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.46-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.46-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.46-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.46-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.46-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.46-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.46-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.46-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.46-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.46-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.46-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.46-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.46-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.46-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.46-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.46-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6063c7902de20a5787be8695723d5becc85d5be8c3d072ea9bf321fc1800cc41
MD5 2e080257b5560b941cf3543900e71327
BLAKE2b-256 a9fc00d2a748a533053f786e1b8e4ed41d14b17b1da334373f39175b0b57aa18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.46-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 81c3b3eb5aded411b52244dddb53ebf746fabebd0d23c2deaadc24fee98cb2c7
MD5 5063761c3bfa233c4cfdbe3cbc27e212
BLAKE2b-256 8cd510c59a01c8b52d5bffdcd550acf14383de1588a1bb2ed66525cd90f46444

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.46-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.4.46-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f1013e6ee3ca6b937dc6572c2aff50855c3cfb8e7cfa28a7f2d21c458016523
MD5 3f6c10311c76238fdef3f2074eb2f7f3
BLAKE2b-256 5de3b98048f566f6ec6ec54b666799ac1d7a09a75a948073dd68aafb696f0204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.46-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f52092339e1f6645c5facc5f8793c202a8665a634741a59d0a4f37561e361de
MD5 fcb42e6c61039c432016dd0339bdf919
BLAKE2b-256 583aff7b4c9c653817d07f5daba2b59de94c033d42b89320b7acb12be9b86f90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.46-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42fd8ac1ab004d0ef7800f7fc8d087b1ae7acbadf75913f1fcb899535b897b7a
MD5 c8f6e3081b8b1fb53e396cc813d5253a
BLAKE2b-256 a013dd929489206e384cc2c19200dcf71a9cb6700cc8111c76b16a4bb7303fd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.46-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d4e078f2fbf364126ce90ed9f785cef6f024dc9bae4ba33f750799dea52491c1
MD5 8c8828cf779e822beba060c5c6826b88
BLAKE2b-256 bd91096b2b783423cad79f061f993fa7a7d7406eeb8451f2f6d7998ecd663eee

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.46-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.4.46-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09a8405fe5b91bee68474a4e82bf8fede6a981feb8eeb9aabf9ca73dad412148
MD5 1b2321d1a4ca2c289bfd8c8543a3e715
BLAKE2b-256 0e962ed059f1509c8d5e130cb1b7b2e01504f31617d262de9e08ab4cccdd3363

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.46-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c0c3ba2b307c90d7564fe5d79cf0d122f57fd6484c6b4b8d457c7328204205a
MD5 28ef6f0f9f6888c1261031eafcc07bef
BLAKE2b-256 4698b7aa17ad78ccfac10d17f9468306e3c398c628ea467d4e02676e7c6f71b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.46-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d217ee9b010fff2423980a1a957f6478b3b09d99b789d297f4c7667ef866497e
MD5 969ea22acb1cc722f222516b3b32e3a0
BLAKE2b-256 f141a0438d6fe5ca03b5e887044d0514297a74b7641a0aece99f6559fa0134f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.46-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 69f0a9740632c3b03d4371a0f58725205de310950025405b6b980c5fcdacdd1a
MD5 71c764e351b281493331798daabc2923
BLAKE2b-256 42b4e6e120cbc23b44510db040650d4a963105f918009c6b80289b6d019f82a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.46-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.4.46-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 471658cab7bbcc67ea9f523513120f18820776b104c7c0ba1b0768be562b5352
MD5 93b44b195a9816fb560235b5c3b7ec90
BLAKE2b-256 2cb1576a41752a90b149d2afc69e41bdba157647ba0b729ffb3d9634f1c21170

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.46-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d23ffcb8f91d206c61957a74df923eed9ba94ccedea76c85dd8152dbf247e05e
MD5 4ae28379597c62b531dc3bca109f586a
BLAKE2b-256 15f9f390ef17335540a867ffa62c95abd9ccbeb1f3c87e7003e1c54d234da898

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.46-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e1d194e2537534b0d9dd697cebfb8c9f240d520d704f733849b2d828193318be
MD5 90302c57f05f7f10e592b00c1a259e67
BLAKE2b-256 5bceafadb9aede21afc290be84dfa513cc26bb5c0f68be4732daa96ca5c0371a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.46-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5cf6cd065bde0ad1eed28d703495835f43a0afbdf61f883aa2214a316e0b65c6
MD5 5c1eef61be9e9d7e79354cf318a95f87
BLAKE2b-256 27c6d2171813a7d7d09c2b7765218f5f20e02de2524f6a4100fdbf12eeff44de

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.46-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.4.46-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 552b947b3b9610d8d17c71b5b2c590013c0bb16fb575c067e6700ad2ae095011
MD5 f6b76776fecb13d73dd552cd22ac153e
BLAKE2b-256 eb455269f37dbb14dae1a9573b21ac423afa866c0b7ca0725e08ee3aed527c60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.46-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb819f1f92d99c2ee0e45709ffdd2f1faa274bcee0a54db25dbded45f7e9098b
MD5 0d487932a321e4876fa474f6eacc6d24
BLAKE2b-256 3e24e9228efb9a8ad1a3a115f77fa8f181fbd644185b76cc227bd3ff9ff0fc3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.46-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f5600caf27c58d9a080537e244b671dc3ddc5de96da3dbb977495028556fea94
MD5 a21fc47c75982a86ae8a90b52205b532
BLAKE2b-256 2d5e17fa81c548230f1ee6724bf9b38a6747071d240ce2af1385ebf54d2c9d76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.46-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.46-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 686be56c60da49050d50d34ea4e26007e5ee00ea978e8d0ed16657a307fe1ee6
MD5 0c2b43e0f913904069f92df686715624
BLAKE2b-256 199e8dcc7b1f475b65596aff29d50e200909de01288d0cb094cd88d3e2511483

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.46-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.4.46-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80bf446add46da5c924c258431dba84bd9f606dbee39648036c3568738b8e306
MD5 ccef094020c61adab3158efef181d04a
BLAKE2b-256 ced8995a7ad96cd1e8e527c6e48c09b91c52f939b2889a6564ddff93168b9274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.46-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b50fad2a4a0a8b65a0e87a2880f0b1eb0c6ca75d1bdb25eed784482737b9229a
MD5 fea0dc4b970e546b8992288267d63209
BLAKE2b-256 5197cc1e234750531de2c967560bd977642310345567d42da50429a5d83fd13c

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