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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.629-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.629-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.629-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 de04d604670b930eba18ec063a7bda87431153037cae9f7632b2cbf2ffd59e8f
MD5 e3e04294f6774e04487ac7073c0b41ef
BLAKE2b-256 dccb06eb587559a165d6ad9b6dec965a016df77c323c50841ad4a897f9d9886c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d31c1f7902cd1d70003fc637d2a49cbb1b5eea8439070894dfec8f59720c11dc
MD5 4f80611811f27dc612f9d5c3a66d0b6a
BLAKE2b-256 57c24ad443402bab0b52575397861df6a0c52f1c5a0f616f4c59770ede391262

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.629-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.629-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1610785b90beee26dfd191301deaec68be73335b8ac824613288b343c7fb3b38
MD5 beed16d3537dc962ae54ab19ae96b3e3
BLAKE2b-256 8100ec616c8474b0cf089b24dfce9e40a2ad0e0a032f66294052ea63e006bbed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8817db9a5525d39824df343a50a2b7a8f7b6e0ad23af653ebd3e4c02cad55d1
MD5 029f3ed05010aa7a99a5d47c341b00f9
BLAKE2b-256 f8b814e6e33e7f0a4249da8cc338cc620b2248829d6762a0d0aef37b44cfbb11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4d46d5095820a2c526bf37124ea9d2ee8436250e369bd7ffa5426c90cfaeed06
MD5 e7ff3070e6880f35ff87afc2ced85e0c
BLAKE2b-256 de71285b2d09e765fc805a93ff1f6480bb91b67eded19a7cd62d122515f6a35e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 537d85dbc49c7b1bc530f6b9a9da6c54efdea165ce1018d5f35b0754aed02ea3
MD5 dd44006d3b699b3cebe322cc2eb8adfe
BLAKE2b-256 4802f6b75796ec5e7164f1ab0168f2379b9c2e4b35537ae43097570746bd14e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.629-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.629-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b88469079884a3460b33e742f5dcb15f141fda972cebe256d650339df976561d
MD5 024de2762da144541d15d036c67f9b43
BLAKE2b-256 b49c733604d67bd0fe26443728d74218550b39d4c0df00ddc23d93a5ba17be7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 361f21060378c33dafb0ff7dbb10103d18b079706150cdbf54ea426002a98358
MD5 10a33cf2b35bad8823a6522b7c85f1f7
BLAKE2b-256 2a2c1264e1e8a8e5ec2bae6bcdb6fb9701686f9076288276c1d04e63f7dce511

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 81f1e74f0fdf21d7a3f13997542a58692de9804a0fe8487dc318db041ae18fea
MD5 8cc87e78f32e415ee2d108f62121132a
BLAKE2b-256 8331bcfc1490de6cc2619302427053b8e12fa5a944d6d5b240d1bdd8da26919d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e3eaea3be5436d5ebfbaedf40536f9aee646a4ce9fccd86758449ccaaf149598
MD5 5f16e68f26a5045bced6545241be0360
BLAKE2b-256 740219d1e53e88c4a349d24202c8ee18c2d33047b7334ea436e6b61f187fb480

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.629-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.629-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4ca07a519aafb43761af6b4d0863f3709f0060bf29f26c07d95776a10c0b78f
MD5 47b57c5090dfb01dd0bc8efa06811741
BLAKE2b-256 bf747f9e432bb58ce079eb5ef5f0ca01c94bbd5a03173935535002163982d66a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5f7b4f613eb13b81aead2d954fbcce0895c602c860246fae3bc3bddfb4174f4
MD5 61ff6c3a23acad421e26dc650bc4faff
BLAKE2b-256 f2b0ca6296b409279742630d979d45da16d40c40ed44ba831ccdc72041672edf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6185f6759d39b4ed48780e2d8e4fee20cef10237049882af891f99ac2cc69383
MD5 0e765f8fcfffd7362ffa569c14e9b908
BLAKE2b-256 736393fe9c0e0b953f670e7aeb3a03c978bef628158ec7efe7f341f839bc37ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1c7f2df42838c0f3175c1f9994eb51bd239d27bab3d47d293f0c911b6c3aaccc
MD5 ad05da2a8db5310eb3df8aba19c76d1e
BLAKE2b-256 03afc640aabe6aadec9c31d734e152bc790340349680354207eb6b7234075d64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.629-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.629-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48eb198825edf0845ff4ecea6a320e9eb31b765e3774068a1fe460466eb5a15b
MD5 b4ac75d25d1d5c393b2295a9114f9adc
BLAKE2b-256 29c1f68c202a788cfb46ad8b49007a8ce709c3663f3fd90a122c6c760b46cc38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dced614d66882332cc0cc8b9cf49d521dacf51ec90b5901388f544222e50d015
MD5 1403ae4a7ad730c191cc90aa9239284f
BLAKE2b-256 544f7ac3c6a74aa1f0dc42d5b949993ac96273985e20cf0be87be503c45e7442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c807fa7c61c71554913f0a70915ad0381c8d1f5dd023afc3f1e98a8a7aa7e35e
MD5 de0c1168131cc8c20cda828c06c328bb
BLAKE2b-256 7c86af7e343304355dd45a4ed7d1ecd57f0373cb1d4a0bda1fc968db3b416712

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.629-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.629-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 af54cf30556ef652599ebb95ac7322804027adfefca201c1a0fea732789497f4
MD5 924dcaad5fd31a7cdafd420af8f93d7d
BLAKE2b-256 ef2aaca5c8543e113bae91b9a0205e0ee8f0481e89439060d9d762e651d83683

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.629-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.629-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5985a57b049409cadf023c318d39a9ad70ed59a1be637b583a09d92673e21f4
MD5 83e224e8a6cfcb39900bc412ee696f4c
BLAKE2b-256 968e612b14e3e5bad3bd64c2fd8bf34c612a1d872dff06360b136c19af62b2cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.629-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9ee156446882bc3f0205c1750725915aae8e3ae5f725a1b2825e3e681ae94a8
MD5 b3c63adfae5304174fa2a1434d7f66bb
BLAKE2b-256 d4cbd41ff602d572bbaa609db6ed5724f1df2bc2e119b3d85f205015c231fef0

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