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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.207-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.207-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.207-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9c6a30d953e9598e73631d071350475195ff8f6de6e1ffb7c32656de85f861ab
MD5 47e1fb4196c1313ae65092d874ef86df
BLAKE2b-256 969ea9058409efaafc780f5fbfcdbf0780803636934de304a302d65452b635c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1c5d0ca20f32d0342209d8dd75c8dde197f6e7e33fd24b9376a8f34f5329293e
MD5 68e6315d13e76340f704a7ee69a863c1
BLAKE2b-256 e7446d5031ef2ce4203a43b0795189a823bb6214ceafb2f0e1321654a6654058

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.207-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.207-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05d01c9bee0ea15f258142a210e8633f165ab35d520810432c47ba9755026a7d
MD5 fca461e3f1091a3882bb79a232d9a206
BLAKE2b-256 f63dcb95d9a6b2738ab0dd6e1d246b757f4e210ad2ebb62bef79f7eedb51febc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ed31b466e198f0440230c2ae3687d1278d82a3bf89660880e47390249ee96fd
MD5 131a70710e494ac95d9e088df9d4c779
BLAKE2b-256 de966a11dc215ffb8177330c11139fae0e701f0e548c108e0f1b83a479d69678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c6a1ea7b88ac8b6e5f8c5da74ca7ad964b322995191d5a0a86af6f245fe212c8
MD5 25b9f2261cbd48ea2972460e59c29cdd
BLAKE2b-256 5cadb9ae96ebfd97a71e3f139996bed9f62955812f761fb8d3c15b69ae5c81c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 22fdc7efd683255f83e63ddfcef9d7af8bbb8f168c4fc4ff752e047c79d22dc8
MD5 d39f1fcae747a8383c96d7ef34e45dec
BLAKE2b-256 11274474003760b1884a2311c26f519eb75ad17e7789a8d956edfa0780eea898

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.207-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.207-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a56164f48455515037db0c9688d6190bdbee01c939be850c5db681862bd9bbf4
MD5 d037d70ae7b8b29d5791f81777e2add5
BLAKE2b-256 293460000ff126faaf4ec68356c1b8c3643ca5b32d49956f9769573003dfa84d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 365a4608840c3c18cabe395d83765427c0b9c29815a1244070660ca6770ab54f
MD5 bbe2bcb435ce0592065130d2bac21699
BLAKE2b-256 4936c6103e9f72204d35d7affda453d9c86c6119928e1a6bce6424582b697112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 de44e4e3c58105c7a7e5b5631137370e78883688fb2804c915b89a1670aa5d21
MD5 14691d9f13da1e473bbba6f7177d1610
BLAKE2b-256 522b956e82250d2d9b465149c61974072631b9b84e032197f207636029ef4204

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7f534856045919e1ba7f9243b2b3db8906ab32c7a12d113a82465099bd581102
MD5 c92a6314b9526b137cbb366ebe49a3da
BLAKE2b-256 5a3bc13ec57871a5493f6d26357fafb3b1e131af76f4ef01893e64c4468abe6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.207-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.207-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1555693e7fd9159b757dbcea1d88ba5648448ec9f61e11137f41322ffcc44df9
MD5 a3ce2a82c10b9844aa9b7b66edcadd89
BLAKE2b-256 e0565318938453dae3a8ef5bb8113e4bdb09085455ff3c83b7a47eb26a728b43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05e69de6c070fce6ac67b1c481cd386e61a26daa229276fbc00147559c98aa8a
MD5 afc65ec005d4a386e8c7282bd719899a
BLAKE2b-256 263aebbaa93794575635e0654e8084782f68b82d622e741a4b22568a5e823b19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 39cff1fbf4cd1d3be8b7b0cd637cb941b40dc5a1c960d1583157e4776e4dd196
MD5 0887a517208aa1a22ebf723be703648c
BLAKE2b-256 71b93667481501cfe1182363b663a754b31d4815c23680a04470a44d83f54ac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 15fd1a4d56a247e75419811d59a691971165f1260821863c2df7173f59236935
MD5 3a8b1a8e90f0dead361068945cb67e13
BLAKE2b-256 7776e4abb064e4b255bf5b0339e08690e07bc06a5f53444f0ea9ada2256ba626

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.207-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.207-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 607bd976fe08c85bc790008a9269af73cd7a12d9edefc35b84fb958aa70df9f5
MD5 7685802930bd2045dfa69d9ecda6d231
BLAKE2b-256 2b61b8329165a2f62b358bb9d23c015a90e944517cd177115ba59335af69dedc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 438b35c9028d9a644fd8021419aafe0bf56c005ecb5c7f65ffbdbbee727da54d
MD5 29b0ae53d69771d4cb3212f9ab83c5d7
BLAKE2b-256 c091ba4a99daa62e07ffbf876096f3e76651e6b7f6ce6f02eea5524542d837c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 26097cdc37efe9723238589d751de0c8050000a72c1d431dd32e8c7eb5526d70
MD5 ef5a1585f3d2f332a6f112da2c908072
BLAKE2b-256 5c83ad54e1aacb5446166abf4f484a044eccb73990b968a4a1e878da0c55706a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.207-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.207-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ee87ed61309b0490ac26a75065d4961c8592355e2980d9239d9fcabe04a62048
MD5 06683f084830d5774dc44ad519010c1f
BLAKE2b-256 b4e455e48d51445b18dd7b3a7c9baed13120c9e1422cc1a804941280c5aba116

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.207-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.207-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5c8ae1486e3a008a8f701483578cc7bc10e1e9b510a40ca6e934dbca0c0a01f
MD5 c3487f2e9d75a907d9dcb0b86b42ee23
BLAKE2b-256 4da447181f2c66004367efa5ca7974d14d68bec2eff36aba25ef20c5cb7e2745

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.207-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f10153ff86b1bcf9657cff332b509d2387c791a4de2756138e3b85736ed5b18
MD5 dac4f7eea33f647dda514ba67763df72
BLAKE2b-256 33b9a83e82e211c18216763bc26be06cbc62ab8566a7e875296889c8523510c9

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