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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.196-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.196-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.196-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b5500f81a27b8303d92cd2ddbfe1dce0376774cbdd87aeaed350670e30a13c33
MD5 96ae2f65bc00aec3c63086db28b83ecf
BLAKE2b-256 10d615bfb27209d85e696554693ddb8151ba8fa8e934eb1d1d0b0b738f65647c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dabbf02cd2bdd983da79f209d8d631e21de6c1b11ee654da9cfe6fe495afcf76
MD5 c64491b956d7bbb43f1e82794edfa838
BLAKE2b-256 d96a896cd2320afd82a16633af236281bb4ce9203650587ea649e7d38aa246ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.196-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.196-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2364e2c6821e53817851fcf05e2a73258cf8b41266bc80199f971b623ecb8d0b
MD5 d17b152d6899d9ac4fe588049f3adb31
BLAKE2b-256 4341270a948cc7bb8feb1f0cb9d1ca3c021a12fd1a9e96f4f21938990c51e29e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a60ef7771e2f45aa999c0f526922ad95594c800fb633dff1d3f8fa8fbe40924e
MD5 c9bddadb12f92f024e134ae1590d2541
BLAKE2b-256 35205187aefaedcb19a4dd870f1c5e6004a4cde5436da3af515f52823b99bc6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 678ef66675795232cefa35083c5bfbb045f152f29d13fdfd3995ef1099648685
MD5 a11c188f850be4133a2ae8455f7f8cfb
BLAKE2b-256 2c27abda33ec60ffd723f09e9434d4539907e20fc41accac2e31c377be47495e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 87f884564e1a48ac087a0e0404300f689e5e75abcf066bf6abcbe3f09021310a
MD5 69604d54ea8eb6ae23aee6dd55272db1
BLAKE2b-256 ecbefd7484835d98242eb0b1a048da4814d80c3f4921f63aa5f676af5cf73e30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.196-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.196-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa6c6b37007e3a4b69cd6fd1baa7798ef87e1dec49254bfeb6caae9ffd3ff8ec
MD5 2ed4e24b99c0dcfb5dddf7a3dde551d5
BLAKE2b-256 eece1964a984285c3f9f5b6bb7e4d3a8c9b1a7ce0ac4f8d3015c14d524bfa7a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38d8caa97a7a03f60588d74297354fd3c2b5a05c00bf474af4f5bf89ecde72a7
MD5 fabf408b37d2b108409834a221c33a9e
BLAKE2b-256 d535e4e5a8282dde0922f8be6f27f10e2e60795c314d676ecc670921fa0ad08b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 636a120873f19efcdfaf7a6fb70cc01409854f1f91648c360091925b93fdc088
MD5 7394532915dfcc35bd7f237bb7ff6829
BLAKE2b-256 6ee72a6379f527013302b29f2a5520798390c8e8cfe8286f67957c5243135d47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ad5378b370823e7b857310db2624ce17eb3af964d929c01f77743c537c269461
MD5 def74ebef93918e7a988efadfe6f0bf5
BLAKE2b-256 46b75d7de6b46df1ad22c1047a404f54b7da42c587792592dbd099abb7076f16

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.196-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.196-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07afd22ec9dcf1b1e3ddda44d77c692c7ac67f0bc5cb557799f716c5270996ff
MD5 5481246f7c57034d68be1653fe58973a
BLAKE2b-256 46dc1dd148ba8f03d050bf0ee59f2ade58fe5bb322b31e2404b45aab81016eb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab0df345b4fbd5fe192874ec91a1e6443e482aeb290ff81a1a021ab85d44eca0
MD5 879b1bd2ace37cc09491c1865760dcaf
BLAKE2b-256 cc5f42d7e40e37c2b84d4a65b1bc000ed3fd7c785d97864eb8e21caad770c571

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ce5ddd09afd9e15133ef4476066225737f57009cc7ff7eeef4ae70d445a44556
MD5 17d9dd4ac409ad7f39881c49fc4fa02a
BLAKE2b-256 f6d992b137ad8e3cb73dd594d76fcece8e1e29b2f1def404147cb2354578553b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5bf4699d9c85ed69923964265090bdc28cd98a2681033e66a1c2ad4fb246bf18
MD5 81cdaa61ab46544cce7c49ec04cee640
BLAKE2b-256 47a91392ee2ea104053e24cd9f7d3b00a4d7bfec1e77b53fe1e686084383ad87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.196-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.196-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ccc5bcdc5a759b603060a465cbfeb29b593096b777c8238061e2b7f2b4388be0
MD5 a76b9ad6e73f1b8c357ff6a6e816251a
BLAKE2b-256 2baed3dfb5b9fdcaa992e8cf9b1d68bc6d1b6ce15279326a5933b2d5ef72833c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e68db16efaf9c47a9c5097d3dc8d13bbfc71bc0a67eb0694e79d9179a96da446
MD5 93f4afa78ec68978ac5999f9bcb3a55c
BLAKE2b-256 4c6e2a423451fcb4314b08ae308c40acf3946ac5fd07ff6df6ecb6557d07b5b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b94fa10d3f91d9560fce6748dd6742b250506e5b4d21eae0169ce2791ef35e13
MD5 63f3f92ad3ebd1ee239c18000f44a17c
BLAKE2b-256 63362101c35467e6b28ff76b648b0d65c45b7317c2ba99d15336964a68a8f01e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.196-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.196-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d47c747db2ee4be37d8f25e6b5cfc9bad262797e3278490d3724b6f2e7d00941
MD5 993d0a30e11c7d1190976f28d4707920
BLAKE2b-256 79bd6fec1a2f96b8cf02676999936a348cdb28c0b6e80b09469fc17255818467

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.196-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.196-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 37d91f4f4199a8c768c57e713a99c528d0f5a736eaf4f7624eb899a0276a7453
MD5 9a8883d6a82f594fd2c12563f5174613
BLAKE2b-256 1966d00e9f86ad1c037d50cbec3f42bdee1188ced3fe37a8a0ef9c1a1159ced2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.196-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29fe6a6d1e91a93d2109e290b6fa19bf3cc71f7f5963598a16665a971e05c77d
MD5 8300611f85d464de89f84c313c0338c6
BLAKE2b-256 e06da5b31dadc18dbbed3f45cb791e217afaae79b374e5563786c295d5876014

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