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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.147-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.147-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.147-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 998a8b069308159fa2cd9340de8d211d77c00fbc9c5f84b02ec7ef934f0fa8aa
MD5 c0eab11dd728b47cfcbac42811240d82
BLAKE2b-256 feb62208f0039173cd8ee8184363be538b50110f6408d7aa4fc09848fcaf28f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b931f4c16d5c146736c221f673cd10e325117cd34961b407611287c5d67eb88b
MD5 0350214ead742052fa812f6e9217074d
BLAKE2b-256 96b3bf12999b184d870163f59066f7222f9f4117d405ec5b051184f1fdd8ccf3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.147-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.147-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab2a362a671b27e54b7e5d182543f3c75a7212134d298ac6c7e9b15ae480d225
MD5 27155c4a1e131a178c757b5fa8b1c0d1
BLAKE2b-256 bd83cd81fc4246137d11912f0d25b4098c8d41e7c7eaaddb7c5ab4d694017f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33208a6c3fc73209fc4144c7fad42e2a06e6c7020e64141f65e01a2c80f2bddb
MD5 2ca9526e817b99aac0f8ff3d76303191
BLAKE2b-256 69f7e4224979c93c3f9c9351f741dfc67ee5b36f0c4c6f10a9c07ae37ba0373e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d81442adbbc378a7e14f0fad961358ab053480b41522ccd82977e1c125b58b8a
MD5 6700fabe0ee68084364483370cc410fe
BLAKE2b-256 480b21fe1d4a93118e8650c76b7435f8bf8e3f2e7360cffb11a1933e012e4efb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 528bc129a1d3ccb2db00699d02efab0c123fc9ba262e7ffe5ad4d1c46654bada
MD5 846a1eb1e6415ab115f256b513ea6b03
BLAKE2b-256 b753943fe57103ceefbab27a0afe7d76dbeb1b8d71e230c3c440dd228f302915

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.147-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.147-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3e1185c84fe2ed8d1a0d7cda0c4c44f8626600d512b7f13cf3282f416d256e0
MD5 12bf4a2da86307fcd7c898a2bd079f56
BLAKE2b-256 c8a893548f25f17c8ea22ab2df92c196d5eac426f1f7e9a1e775bbcc4cb610e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb1a12bf3133c5e74d3117a0f5da70e0d9cb69b071c87efb9cfc3c65197ce1af
MD5 090bab859fe530b1f986c2f73ba3cb4c
BLAKE2b-256 5f59d83a69f21d226f9f0167b1b91094162d0119762856d28f31c96e94f3cbd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c068d9a58ab44ceda0570e2ad030387b52cab79ede9fba7349e91f3c03fba28f
MD5 8022adfc9a9cdd1c04c8b4df352c05b1
BLAKE2b-256 97432b32419574336e4de7165f61cb11b06563c3d7a2fd2167f961431fc32db7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cd3183232c371641248f8aa0a9dd0c0aab9749be87b570853c41adc49dfc52ae
MD5 302b36dc613fa252b919189d5544a1a3
BLAKE2b-256 1f168c0ba625e7afbd936898cfbafe1fec7d00ed399d634539fe0fd0b6cef76b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.147-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.147-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6266744f96f764b4d87d592047704a0dabf799d1db55f9a692be3754d2f663ca
MD5 75256d283fcb31aa08e4706dcf2a653b
BLAKE2b-256 73cd987d035220e746fb3a8c9075c3e001dbf8f9604372e5efbd8035d4d763d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f946d2c5c29cde539087f9c5bbca7a3045359fc6d2ea91a6c86180e6a6fbb88
MD5 4e6cb771630c5fc53073c3a91b83a0f2
BLAKE2b-256 b0034c3a91af135d7c819d4d1beddac2f0086c8c4d19ec77adf1dc22b1c8b4fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 792e2d2c8d2515a88c0f0dcf5fc22e4c724352dcc967d11a0c0f7a53b713a7f7
MD5 f1e5ac7745f3c337f0cb4ec35b4ca8db
BLAKE2b-256 6e402346c55042eaacd7f9e2db079e12678276e32bc22451cd4ae161e91e79df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cf0ea30c2ba3566f5be48eecfc66a18c9be07142a41d06d8f6aff418c91413d8
MD5 25386dea9614d7d573462db04a0fe512
BLAKE2b-256 c05e2ef0986912b002eb573806de599b6dd05e00bbb94ef684e2ccddcf1bdc30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.147-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.147-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4d83c37de2f90ee6b1f65aa856885c688f4bc5ec1a736fd06646a14403ebe50
MD5 c083602c64311985a7524ba251bc4246
BLAKE2b-256 ee51416c7552ae3788e0f0bffc5fe46ca240f6b4c420c5521384ba14518820e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23bd5789a67e357784dcbbd8f5749d6261bb6592a9f2bfdb22a9c72affc8f480
MD5 7c24f31294c94e48bc976797c3c59ffe
BLAKE2b-256 378bfb2eb9b4e4cd5699df5673190357bd15c18f2387337710865e744077d7b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0f83669f0da816dda1a1233647a3893245237aee36857865fbdbb9d0336a1de0
MD5 d557d375f19d72552bea88ba30e0b39f
BLAKE2b-256 bddcf51d8a4a700e732ab510ed9d4761e3b937c97628b9f9cca2cff09d757b5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.147-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.147-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77e62e62ec6d73da1c78cd51755206d13d979cb0eca28c489c447ac0188f4059
MD5 53befb2cc2ec3a8d91f0741242e41726
BLAKE2b-256 9f7d7d17c39bfc22a66c6766c26014e254637d23f567098e595d48cb9a2c808c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.147-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.147-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83e597590c6a7aec39df47d8c4b0bc8e81b7b5beaee01fb8e94caa302df2873e
MD5 373847e838a0d37e7c5a16dde19ef2d4
BLAKE2b-256 874e639cb5f3e1cf59d8bf8d0949fed3e3ca65e79827adf297a94044ee2c749c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.147-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f2ac8bfab174c58902cde274b2a93f4c0e24596f82ecdda282de8c003652ea9
MD5 cad6b106a59cb4deb85d95c3337e3875
BLAKE2b-256 4102d9deae4ef3da6063b90c406534a4dbf4afd3ee728a8652e2f74c82e13138

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