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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.685-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.685-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.685-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8ad3ea683e9597afaddd17de05b0983efece257cd44b8ca2b04ecd8535889f69
MD5 3675fea0e0dc9d188ea87bf3765dfec8
BLAKE2b-256 f6d8edfe0050e5cbbbb4edd5e7fa1e6a62daf114572f70aa4cb510af8935661f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4a93187c7b96b31de488289bd610babe2a665740e7c73e6bb6bed8c85094576d
MD5 a1a3bf23e53ee17568edceb0cae25a80
BLAKE2b-256 8e636b9acf10e0eeef6bb37cf055539c9fa966026f7dd086679f2af709b5b18b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.685-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.685-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0415b106acfdaace4c684e5893b6c8a10da7ab1aa5921ed8eb71ba0a66db8ea3
MD5 01b3a18160fd9f861993fa696db27b17
BLAKE2b-256 77b0b57e0c3a463e9e560406046ce452179e9d449f43eaad0e548bc16b9d702e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 278439856979dcee46ddc47d0b03fd3f197ac6c3ca9f97beed1d6e570be72007
MD5 070759f66f8e64853dd0fd52b05030c1
BLAKE2b-256 4b81897c5208a13bc3b13babdea4f46cebfe3c77d511851c8572cd3336224bb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 10007c56371360cc54c3d42003266e00c4b2ccc79db360faadd5183328c4480b
MD5 f7069b8f7b251b358dd3d93f44a8ef1c
BLAKE2b-256 dbe1cee48d9e277b77e0be5105642cfdd9b4b5643922262f46e03054cfd08fcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e88a8711834cfff90f90f91bbf681fc6162eedd21c79cc031e1630573fe99aad
MD5 5d2afc8beefe89305c0f26810dae4c11
BLAKE2b-256 41fe5cc31e32317b0151910bbd8dd0a124fd26530c4908f35caea8e438f986e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.685-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.685-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0bb293f4bbae1c0462d27e2ecc3e8eee252a4d19e6fd611221c05793b71e5305
MD5 7be6e4be26927f7d94c94e1e52233201
BLAKE2b-256 4e4cbdf51bb1f02a933c919f48d6ef7c076f2cad68811b7ac3807b3bf254159a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d2e215a0f6a6a809c1206a21c7028d26b27bd0d65e588b4875f2b78c0ef596b
MD5 db52dadfe13f1c226b6c7341edf0f76e
BLAKE2b-256 0fcdfbbeabae6c2bfb5f3420ba23af602c29442ca198dd53219914ad54f5ab29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 edc72682d78363556403fd56c991b5050d5733dfed84d22dc54c3901bf4f2429
MD5 16d45e86d40a7ee461bc6367b24838bb
BLAKE2b-256 b152d4ca4c93488499542f48ea61f5f28d5cc38296a6212b69d720cc7cde6a40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f8a1ff6aae61849360c7cf8cbe291bd277cce3d3db85f3bfaf9aa924fea7da3a
MD5 bef91dc1e0bc4d6b845d0a505f91c28f
BLAKE2b-256 4fce0cba4a511378fe4c57335f9ed73a27a08e6c6035893522451b9cf50ff6dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.685-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.685-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ed6b0aa5c2b260199161d9384d000427bc66b99129fab2ef2879c76d8248459
MD5 8570c3bbbba441af402cc9e3962c3f41
BLAKE2b-256 ce33c5d613b81c2798f52c45b88e708c5f3dda51d9de1fcb0d5e9078f98ec65b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3631074e13080772836289af6a369f22738a54525c79e645da3b8e21a7c0c334
MD5 d4bd22eb3ee4296404b051896fa7451b
BLAKE2b-256 b2242171005e9aa4339b50e7a7ea848b8d993d9ff48715ee2ff05b83d5c7bd61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b0b92514d51bc7ec02a968d3ec588939feb4b1272ac14d98b243484e763c3cc9
MD5 1b0959df8d7bef28fcaff16dbfeed4fb
BLAKE2b-256 084bba00c2370c2f65e64ef7c92c61371902f828241881d8d1db7c3f7b30539f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 72c56d76332beb09678334a68f3c9b154950ec291f89364fd7232c7850d4f389
MD5 7940e27394507f286ffdae55ca3b5aa7
BLAKE2b-256 2410b225be1f0d296545032f550dde02f34da815e6fad6b246db6c9bd923fc82

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.685-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.685-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6835e6c979a0ad8ababd66590bac96e32814f408f1c66d149d71b3352cc07997
MD5 ccb340d515e005dc2c5d61915eb1eec3
BLAKE2b-256 0d5be28c84ba0e50e2b91fc860e97ceff7093f6995c9c722c75a9e5a9e262dee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a836b28d3bd5e744c43dd9ca6421935b3040ebe1e12bf9fc102a8398948585f9
MD5 19d5f32799c516ff39cb31b52b6ba28b
BLAKE2b-256 1fc1608319e574b3e374f93ed28128cdf9f13b2c8eae891f5b1cc46a74c4efb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e53955d0a66a6c82cd2450e074f1810046e40c3f335064b274ab355c0e916399
MD5 3802b2869170f9517f983d488e7bbb8b
BLAKE2b-256 23761fb04fa2e10835a79e8cc3cdeb88bc1cba49ebd962d918cefefd386a886c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.685-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.685-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bcc9324610dd0ef828f087135cee432761f2ef579866e631e131c20bc0be5f1f
MD5 021d487db533a427ac6916a4bc9c82de
BLAKE2b-256 465346f404757055c97b4ba24266c1f45035fb7c9891fcd7bb3b306a2c202a56

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.685-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.685-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ecc5ad5470c1df13b8be43bd7fd076bd8b62e3965debc78cc9e72ec4a6308547
MD5 29a5df27c00ce66acb6ba4978f18dac7
BLAKE2b-256 267cddb5c6e17b5b288c431710674be19c59cccc2334b7eb030a294d38ed8967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.685-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e63b14c190418e535b8d1a8ac7c492360d75eac3fd504af560b21a8fbeb5e492
MD5 207127b0a5f0d20ae9c32c6d401ee941
BLAKE2b-256 6dace3311f26c0ff05d750fa52a812d943da3f615cd14efc582bd05e7325ff43

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