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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.34-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.34-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.34-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.34-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7391a9fa25542608ad56a2f756832ac8b769572219d37bbbd37bb24855e6659f
MD5 93d1f72d8fe59f881e9ec268968ff055
BLAKE2b-256 d4ea6ccc36e8382d68e99333bf820695f0ea5f7e64342c61e2bfa31a63e16cb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 34b1de135cae68ae8091a691cf6df5617f2533dbcdacc6161d4257096d1c2c6b
MD5 b4989fc98f6699e52321e9ff32478cbe
BLAKE2b-256 bb717b75e28612ebfc1a059b1d2bea6689bfc28eb3b4ba09af834e43d9f4ee45

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.34-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.34-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5fde3413e9dd11cf8192a932cdfcc68a8886b8a646fe9048fced7d802bef9472
MD5 35a17ee06bdd0bd4bee4b895530b708f
BLAKE2b-256 329ff385aa2309ec74c93aa49d8363782b7bd9080364ebb2432f55ee5b3d8a2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.34-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92d02ca69602f716775a6f6db7d8f91aa47079723b7b88ec93a46cda58266222
MD5 d86d375c5907ee087e82b0f0ca5ddb29
BLAKE2b-256 f7889da280531d1b2b9b41930e3848e8c27b2ccb186d793cd3e966229c2b7b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.34-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 64cd51e23c3b5fe00d64c1ad3ba08aab858ab0c6912739a47baa067644aa7e6b
MD5 1f3b4d333a7fdc282c254488813a8151
BLAKE2b-256 8b9011973fd7b249b987bef5ca92b71ff63756d9bc5d3ba15827e5c71a1920a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 45707f86532768a0a4ed28de3f5abb91865657efd83d48047778846cbd0771e7
MD5 cb8cfdfd5c5d0bb5b17b7795c9ad573e
BLAKE2b-256 dc2efcbd3fbe5ee533f8fcc4495426baed1ef9c4f9645a837b1199e77fdbd9fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.34-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.34-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc3d3882e2bb483ab9bf6cc1f4f205ad039f2bc041a13e9d3e210fd73c6c9320
MD5 794c847ad0d39f7429b3faa56ed7d1ac
BLAKE2b-256 b2eabafe6b0c1147acee285c849a966a6dc34e7c459bf8f21d9bf81150ebc708

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.34-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d30969dbe8a41144d7d5c0fc74f310ab19a566f8f3209c3c0e22b37691b95733
MD5 acdfb7292220493a66b8896b96e7d910
BLAKE2b-256 e6815e8a38d787c292ee3d3b36d103b9bcf14863c85f2d70874b18cb363d49e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b72d6022e803dc785c101c1326cfa3031ec47510737e0e6f551ee9f416daa296
MD5 ae78c9b0a8dd5fd15b93a1fd4699f65c
BLAKE2b-256 79142ed7a37cbafb29e7372297a0d21a69f9cf59dae00d2be785182e0858b53e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 46c97070c996142066e5677e4f8a898d526432c2860be31a338b09605b41f426
MD5 55dedf0efc4d15318a985e46f1928187
BLAKE2b-256 5072d166862c1cfdb3b2b53945b16d1da3bca60656534434d5f06a9d694de7c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.34-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.34-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7415e0866bce009fd33d5e702c28740e56aa8c2d66c997eab3bb53b10b25c51
MD5 9a71954bf9fe90f40811579ccfc2118a
BLAKE2b-256 8cfc901532b5dba2992c28d9b56f52979f08928fc4c092424b03da5c6c451b10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.34-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc1dd2f61c09584b3e59fdb11f71ef25006ad6f4e4d1a8c3a37f5d089a6beabe
MD5 7baf14dc831a8a247686747dbdf66656
BLAKE2b-256 08e4b6fa7c6fef0adc6ec7b3768548140860095061690bd902c2cf470759f286

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5069edd6eae760ba3a4f10a88b803a21e78f0879dc23ab52e80cb34f293bbd18
MD5 566ea35d4406a7857e325180f0edcc40
BLAKE2b-256 50f4a289473334a107c56efe0ea35caee1ade444c80058e5b2a083d775a49ac0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4b1c0d2c4a7f977f95ff9142f7688a355aeac52c93c41f41c3d8858150c9c73d
MD5 0969e8dd26d49e160f9c9ed1295d6860
BLAKE2b-256 ddba65a15b2a2adf7c2d761bdc67290189f1174a564f83262ad7263249095855

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.34-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.34-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bab0d14cdd4220b95bd3a59a221b621eef447c62569c18c7cb48f1a68ddfce8
MD5 2119ab86df631336ee876c7961acf6c3
BLAKE2b-256 7b6b5dab12e7615cf63dbd6d0698a7a3d6f23c8db1df5370ab54cb846a051f35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.34-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fba6d5877629325170086d93ca4851980610d37d39a1461889ae365b2b5e75a
MD5 5b9cc94c3f11420f24d9eec92c89683a
BLAKE2b-256 0396b85a6bbbde6ca4411a9bbdfd96328498b9b3fe3bf29f928d955a9cdd699e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2aae637b0b0efe5dedc9ef81e2da932d75ef493c3b0ca41bbff35df5ddf6e861
MD5 c3a9f7ed7be41d31f0ddbd38a268c145
BLAKE2b-256 ddd89548f295a899c4fd815b9500fc9c9c03e476e11ded378a0dbad5de5c9415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.34-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.34-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 33f3d7ff43f72cdeeab56320617b5e8704a101428931378c3bda0f320475db7d
MD5 b946422504d1c64679f065c2acd07062
BLAKE2b-256 c3e829afed9911958082ced3ec93aaeb683a50b1722bcee71304e201d497b7f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.34-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.34-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90269c4e0e3e892fc40ae3c5110fb94f0cb91d9ae3e307830811bca4be385c73
MD5 c252d912f698f48b59e986fd0bfe28c8
BLAKE2b-256 54884fd18a52ae64df01f110a1cc86156d56585045e2a6297e19231e88986fa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.34-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7ba555832dc384c8f219af973eb71556630e17f16aebee3a63c97065708e779
MD5 3287d08433a2e4f0ffe032bde64c4562
BLAKE2b-256 6aaddf32b94b816f3d5ee2d809a4ea7755d1c9507351aa53ea96847bc577205e

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