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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.883-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.883-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.883-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f9ae8bbe9464569bd69a0fe54e845314caaf79b2b742f414a92593b78e2154d
MD5 b3ef219733ae34b423cddbcf629cdeec
BLAKE2b-256 27776af4bea85cbdd099591694cf85caa7eee931c36bded8764d56cb499b56f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 61061d68517936a8d48159edac9231f06a529f99d25a4e828203eb7c31f8bcb5
MD5 f0ebe7994b3cd46effa631baf0d29387
BLAKE2b-256 33b586eaab477e7246a25fd31c4c13d41d221046f8e6795cd379a84898ce45f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.883-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.883-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 beb0e8b94a1919804d11f2c8a476a5f38ca81d05af6e21c68366bd83953b40ef
MD5 adb77d8a68668ddbf1d68835ca15e2fd
BLAKE2b-256 3ca8547bf2a0cc55d574c3d4857149e2bd431b9c17484c7c306ab917b2cf620a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7e5da8ea9d0d221e4bcfaf40816be6078974d7d7a4d523e9bc700efd0d0530c
MD5 757b635f6a9f7f3a27249f7a878d4dc8
BLAKE2b-256 953914ac26645380f7f4e01ba7c8c242bbe29c830b378a154a4b60b52497f83a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 421006827987be2d292e3a412bc1ca9f04c64f4cb8846a3cf4707721c71573e0
MD5 2feb323347f9df43743b7dbbc27292bc
BLAKE2b-256 d49f77003b101b3078f40cf1885362ed0deafc0631129df2617f5db318fae73c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 28fb442d265a80211602c5f048f6dca151ba23357d35b1e2a3535d3ffceb3e77
MD5 fc3f5e21490f8036abcda4adfc61e7b8
BLAKE2b-256 46b47bd7f48f1c3fb1d4f2d6d8473929758c8fa2ab3a4b0c55b4c06ed0662bfa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.883-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.883-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fc337a4fe3ea00fb9744aead5e7694bf28cb4299afc0a54548c2f5e92738b5b
MD5 fc6e78cca205b666c9587e7d9ab81a04
BLAKE2b-256 2403a100976d4e7d849da799af221b008d7483ca9fd8e62ad668d1c0d38d8c33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7f08f38db3a34c7695163e8636533cb59f33ffafeda1070e25aabe45559865c
MD5 226a05524a2c1d0ad9f2df6197fc5d1e
BLAKE2b-256 b7ad0d43fe424432e42065f4670d9ea8be0f8562cfcc329d01424f2b7cceba5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9ca2e8679dff5719b59f3b8f68be0b26dfdf8179e140169d1ce161bc7b75b18
MD5 72f81dc1c189a5a47deee12fe56d8342
BLAKE2b-256 4054867bd6856be970830e1ebfcc8b67fcf76439ff53d0753a3889f0c6843500

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7967cf899850eea83d96c16e01e3cdff4c1e888b9db5f5db549d121568d3c63c
MD5 b748bfe59af90568ac1ce0118f93bede
BLAKE2b-256 1984f806859b56660c3a9b4a690e672ceecdff21ca94e530b0be836bef28ca9d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.883-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.883-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 918f9e86f8e1b3954a5544d0a452cd645bd1961e6d619742556348b3d1d07659
MD5 38f27e6c8e6be57229130aecbae2395d
BLAKE2b-256 35f88024abe6753fa5faa3c06a39b76dd4f9c6fba73b2e0bd5b2b2df660c485a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6e91036130c70a81b580ed1093c427c87680a2ec9f391d8ddd13d272dffd63a
MD5 a81e5a412530b9c263b28f632f78464b
BLAKE2b-256 b1b620c74421acd34efdb28b91cdcd7bd47b336a411caed8353735fc713f64f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3583fff2ecaa38538f7439ffb27ea74722703fc9dbc67a7cd78bf4784681b42b
MD5 d7f71c7178f720af0b871780e0f97738
BLAKE2b-256 97db4d3666be89d82f6f0249d51357563829a62420b6aa6500cf4667a1706d24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 567ff05eacd25bcc183b3e3473dae083dd6c4763a255ae2e6a16c9e393511782
MD5 266b1053d973ec02e9a89b4739644630
BLAKE2b-256 08a6391eb15912d938c847ff61a0d5d0bdd7eb16a723c42bba00fe7ccfbe302d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.883-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.883-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 598777597cec0a3fb71f33656ce7e5d67165aad7753669c6a703d17f35079d1a
MD5 7f3ad81f76ea4455015c30ebfcc71429
BLAKE2b-256 4e3c4d0e020edafd2eae3b1796d38785f13617a51dc077e5947a54b4a4a93cb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0248ff10fc74fba4226af6d534723e9264d3c6fa721639f3eaff5cfe610179c4
MD5 19617128f638a7278aa723e2d0ddc33b
BLAKE2b-256 556d2d95fff7276fd4ee755c62f2e0ad5a7120e6348a6fa7b0a4a267e3eedda6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7d4acb32a7bb4ab2e53fabf22bd4b311521675a7a3788e4b78353060238bfd77
MD5 e8978866c4bf0362413d88213dc9c43b
BLAKE2b-256 34b569e8c32109674f3cfbc25971d4ce797dd6dddde651fb52a817a65a778f25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.883-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.883-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5212ae719241fa24fd0f19e99cac35a3f8096e0518b33c1975d86576cebc8129
MD5 6b3deb60d41b24c6c1ae39bb33af98e5
BLAKE2b-256 fc9b586f77f54cb6fcb001cf8db275c3512c69931e072fec2a6e2f8d2ede3866

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.883-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.883-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56347948c1a7659e9db7eb7f7fe9fd049926399dfaca822f190fe5712564f0fe
MD5 8ccb8a0e2ec28bc7172762bf70db3dbd
BLAKE2b-256 43f5d5c36f3331ba42ab0ca8ad204bc85e56c7186a656267b3a6c748a9aae23d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.883-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a36ecc8c76591156165027555f025ed1bd464c81a0d70e9752c4d2921ceb3c59
MD5 a39d501bdb7f345b3a4e955c056d00b9
BLAKE2b-256 e8ea17122f530243b7296aa9bf43f186410a830d6c96dd961d4a07e9133bf5e3

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