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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.241-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.241-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.241-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 058f432da45c6e8c32b8133974407bff5473b138c7f318cb144bfed198726982
MD5 376cdf115664b61dbd488f1effb42349
BLAKE2b-256 333e23ca41d50dcc95e776905c91e8ecda9b804b2fd2de25fd7ba1b4f6a7adb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 03e86283a4e17f7e405f3e0f9d54e25cb63d82bfec9607e44ffd60c2dad7832b
MD5 e0bbb364e57a17da6e202e36d1711ec9
BLAKE2b-256 d8efc65fc3069027f3844f4f46c08e5bb396e5d71cbf26cda664421bcc63a1f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.241-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.241-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 511ff2599129d848db7659ddf5c37449fd1ec95fdacd318f9680b5f5b98ec204
MD5 02340d916ae3bb28ee39adf8eb501e95
BLAKE2b-256 9f0fc3c8c2d24ecc7209b218aefedf7de610773252debe3924d26516bc612e9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d44e030428961b1f16a7a75b152cb8d27a031c66e175096fce7691a5a007165e
MD5 f688b644dcf70d70c6dce1e21593faeb
BLAKE2b-256 6a7614694d8a76fa628ad0490dd3166fe821a6e5f113fc4af24dc7b0a829ae4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 954d4f21b5d558738fe902de22b602ba0784ef7898e018e4411d203a9b82238e
MD5 ca8f3804c1f137642ffa7cfbf89c815a
BLAKE2b-256 8caf5501694eaecb723d889352975afc9c82f4b65b75da807b0e35d212f3bc5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6f11e910a496a8408c0df69b4aa7798add5aa2cea9a872b7f1985e8c3a5a8810
MD5 3789585c9d0325b75f3fe07e69f572c0
BLAKE2b-256 06ab68760ea0e1f115672d3d9fa801ed4165fde7b3cbd3013b34017689c7456b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.241-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.241-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b78e6372fec236eb04b03458e5eb3a336caaa59730e990a1b03e26f42e4e12c0
MD5 cbd51a34facf4066bc1c799f2287d861
BLAKE2b-256 64d98ac8d887a340d662d4631d458e33b6aa8b7e88cf524194af0673e93a7371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 628210abd76c3647294680c4178dcff8a898af3678558d6e538f80f102565ad1
MD5 22f3381e062f759fd4077bdfe36c771d
BLAKE2b-256 40bb2dafea67100bc186c1b992fa7dc28c8d5447d9ba9f65f2455f4b5ae2fc26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 823490b86ad998d3f6a00af52d719c70ef3a69000369303f1d6bf6ba62c143af
MD5 de9589bf6795951ab684e5ec69d5ad2a
BLAKE2b-256 6ab1f2fa6b165ac85fdc8c309686eee94b0f3c8791e0d4bdcac86da22827897f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1eed8a2129ac46e521a137046f0d05f1941ac345321753c499a2215a71f07ac2
MD5 3e125de1e601f5cca696ef263c774df0
BLAKE2b-256 8b8984eef17e5744c4c89aff9ecf1d89e9b6a680b1d376927363d6543a98dc95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.241-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.241-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3079e9c95478c2bd404d6c504fea27c05e73593735a87f969ccdfc0e656b9d21
MD5 89a7c228017ac6622166036a81f1b213
BLAKE2b-256 ffc18614e6d03aa086569f7877df615eb44e5868db4c7e503130ef074175fb7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c942c237dd7f6b59ede8721ea16e052cf9ab4f2e0588be4c65f2477819df0f3
MD5 a54cc30d99f5dbba8a4ef744ef1be8c3
BLAKE2b-256 1cd787f7ff268349c14d0ed5f5da31d0b47c825806e765c68cf1626c233fc0fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 410dc51e420f714783f8904a3b6a444ed19557da3ad29dda63b194677282021d
MD5 54c04bf8c724a42dfb6de63ba515c089
BLAKE2b-256 bc3b5e163213b36eeaa590b3c495f07f528d246ffed3a4f4615fb5a60879f6ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ba3e35fee5899464bafb8c7240951cb6e10686eaf05de4276c2a0de29223562d
MD5 0597753c8c5ffab7bbbf0a5d5b3f869f
BLAKE2b-256 a0434179a1497c9d5a6e236ec82f464be9eaa1e09e00c680d8b4ccf181a52f51

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.241-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.241-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6fae7765af39c5a6b21f77f7c2c2ca3fb336d2ad786ab9b655942dc88c01dc6f
MD5 b75aeb5079e6035ef72e510652afee07
BLAKE2b-256 9de1e92ddf7d3a2a787bdc83c9aebdf5057561670917f3963215d8f12c5037d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8cef42832bfacf8a22a9d9f8d8fadc9d7a530d62837138c84011444fbad1073e
MD5 ab82c769781cc18c496f681ef9cdbf91
BLAKE2b-256 edad41f0e8c416fd86b89035e0a9572fdb96f5e5414fbf1d72b76fffd381f2cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a098034a699de13a663c61c179c8255a86a6f963d3266ffbbdfea8c03a8be0ba
MD5 c91c7f0623f9ced8669ff7929d48291e
BLAKE2b-256 436899677d018121eb53e84bfeadeb1eb85a26e1ebc23591a592a90c418f622d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.241-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.241-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ab7196617dc0e3aaff42224df0f20231921e1b6222ed5f3935fa8d27b8ba1179
MD5 8a4a10f376703494c010dd3faeb8c118
BLAKE2b-256 c03c87e7fd93e6c7551c8a726ad01227a65c9cc67ff37609af1635cdf0ef158c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.241-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.241-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4a59383924513170d63bcb35cccd9411f2f8584331d3824786321e90b656d9e
MD5 b6ba6c4d29c585c305766c20d915a0a3
BLAKE2b-256 2e735f31e8ff5c62528605f9a97de7e35cea9ec00e71534212fb2e9c1838880c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.241-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53163358fcd3824a6373d2c9b7cf873c3e666d2e93e02c88464d6e8b2fbbf9c5
MD5 450e1010bc67e069241a0a4a55f935b8
BLAKE2b-256 3b0f40a7a52e0442f4d5954dd798b66bd58daf044e49d2de4f9c0155819daecc

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