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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.266-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.266-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.266-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 87b5f5e714caafbdb81d4362bf3bfef6fd664823f92ae097a871cc943fed15e2
MD5 66475eb56a8eeebf6e31895461c541ce
BLAKE2b-256 b8859a0f6dcf5fa887efe0975d591724ed92b8e9043f081bda5cbba50aadc7ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1b650cd0552db359fde822c332271263f6f26affbef6c212cf7d32d1c1a6ea43
MD5 6886a4c15aa664351dd19f3d2e77b0b4
BLAKE2b-256 910d0b9d9f1683965b1fb02150513a7e6fdc213b2f7c96fb73a93d1d939afc97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.266-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.266-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b7c2eb562cb2cfe41ebbdc32dc06a4f7802d121295fb544c4c780f30112a8db
MD5 b94f0806367134b8fcc0a91afb30c4da
BLAKE2b-256 3a197a4cd696bfa47b971c489af2620f6f67a4136d0a7e6c0e958701a1a765db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ec1c63c634d5ed37ac992192ab05c3ebddf873cb1e7f70b913a372e4494e969
MD5 b20b958f92badd8fb2030c10c3ed73b8
BLAKE2b-256 a8f2a72809da36be4246f3cd74bed4718bf6b767d9d7342e7697259d32b37970

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f10d43c71134ba0bba9f60e16710617edcdc6b438f8f520b226ec9eaeee572c1
MD5 d108fd7ddcaa4b07e222929023bfc62b
BLAKE2b-256 18edda02813a1d230e7bf25ca3d83613a66a40250ab7c3d1c0d3919e813db3ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cb62b4a06d97a04803d878b9b34f4c66dd3ccefac83080d709013329f72b0227
MD5 762a13dcd693daaef37e38c83647489c
BLAKE2b-256 9685363b850b4e781fe337c5b718cb5a7f53d687b706d61473c3163b927635c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.266-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.266-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79d6320b831b67933839d681084332924d420cf935a5cc09287a02dddf02643c
MD5 6b8133a07ef9501040640e6f0f05e97a
BLAKE2b-256 c9233ff4677a81df5cbed49ba89195e423fbb6009853c3a4051638fe74af7049

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 568deb2d6bef7fb32d6cc85639986d94a1fd1a137497d4f68279ce5a357a0f8c
MD5 b34078a45dec73babfaa2c60a3dbeaa0
BLAKE2b-256 fd83d90b83ba3ad8f9ee17da39c34ec56e42a3ba3bfbe96d7749083bb0a03cca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b541b18182887cada23aea1141a27febb70135eacdd57742a71289a5acda2091
MD5 42cc9ad5ba2c48272d84c34b25524d8b
BLAKE2b-256 e84f819900b4ec47bab1de5dfa6c5233035cbba9cbca4783527ac9d9472f19be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 484d77ce65bc6804f583e3cf39d5d13f079abd52e279ad1e1c6e49979ba8c0bd
MD5 1d8203a5216ff119c7f4063e7da4afc3
BLAKE2b-256 f3a21e18c5872113020b51177b961fc5a376ca58c36b71ed6bd69fd30803b6df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.266-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.266-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6883e8e2b74a16d3137400e23083427ce6876d33a6d3c258f5ba57ab8d76e5ee
MD5 7e233bde393847cef57915a9203e6920
BLAKE2b-256 2085e18258fa962e5e09eb1bdf438d64109a4dc21936f8625afd3131266359db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 568a50976272fd32fe2c0f0d06c0204f77152a9e4b4d0af06124b5f09b1d969c
MD5 418e67f12ec9799952a1b7dd897fd88d
BLAKE2b-256 a949780737a41b8cc70110ec6cdd0ba95f6f18e8b842c34c4e7862cd7e258be4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0e41253407e01406c32480c452fb6bc4719402c40425fee4ec374e222f63e1d
MD5 e7d32244a92a45744ab01f93e57c87ab
BLAKE2b-256 1e0dd5d0336c00adfb4d75d6fcfb8a271b6aed114bae35a39d377f676ddaaafa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea2539da0d56385f362ba4cfa286fda1232adada03d5444791484a6b41824203
MD5 4d2919d086f0db0a7c7f62839bba78ab
BLAKE2b-256 a63478d512198a92924cbed97a024d48a1df8815eb90edc2d5f9dafea7e5186e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.266-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.266-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35abcc2edd96c3f30b00b997ba57f9dc44fb0d99be44a906ee724a3efb0b3c83
MD5 9ea89e39d566ed899bc468a2a76ece4c
BLAKE2b-256 e564f73a8307b952ecbfb10291f50b37209154b3294a42387d95196d2111e80e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7be5d03078e18434efbab8a8c9bbebba81d6ff5e66b6c21cab8fd50d8cfed6ae
MD5 0bc7fdb0adda2c9e3e113b8441fb0087
BLAKE2b-256 78a500b5a44e3aad5bc53ae7dd793368d713a7659675d4b80eeedde092ae4b56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d65c493382a572c6b5b0dd84c19399ebb738583832488ae6ecb1cc9551c9efe6
MD5 0d4273604483cf60fd8fdbfcb5527d1a
BLAKE2b-256 9bdfc30a73fe4d1ec4771d0eda282a8df7ce2a8efb4c2c3f1d4fdae3f15daa8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.266-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.266-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f30c0b2bb9381e5ebe67180058d39f96c674b2d5015baafcda59a5244d9c7ccf
MD5 043bd21d0b830b54853a01475704c347
BLAKE2b-256 fecc30902b1c9265089bb61c76bdd4506c029cbe98ce8078e495c66532fbb0b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.266-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.266-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6af615eb0869c5ae9da6c88fb90e13a7ae462c7f8215130dc4e2eabf3ccf2eea
MD5 9ccbad585e0c4e42e34d5af2e341e34b
BLAKE2b-256 69b58b1f00ffbac9cf3c8baf7b2d9c3e41ad2ad1892352e94f540a9a3f0305fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.266-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1dbf1393b86b10158730f80efd8724d6c51c337cab593445949bdb2eca818ca
MD5 f5d401e0d11385ffc4afc855259d4c3a
BLAKE2b-256 8e7fd47434ae1f2f8c8c894ee4fc270de6e6b3c11de6fd920a8fa52c715c4899

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