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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.955-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.955-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.955-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.955-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0e35bbca5eb6f27ec9f2e0aa1a2258bef13b18d9cd646a85c8eed34a6015ff2
MD5 fcb9a435377fbd135c17e171a3611db1
BLAKE2b-256 65b09da6a00b24a8e7e55241654302dd1900d587d2e348a67a288a744968fe25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-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.955-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2ee1abc0870aa4b86982ab6fe55ab7897135aaf21fe9e75bdcb88ea2bd05db55
MD5 e4d85a1c735a12951aca5fe737ef158d
BLAKE2b-256 b427368a71455f3ea25c8770826549cbc63dafb52bde5e4da4fa3b7b802a6329

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.955-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.955-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 797cc4f1a943f5e128577a6392d89b1af4b119d1d5e72f853db393f22d9e7b29
MD5 36c9a3ed86ba9443df3abdfbdd7481e5
BLAKE2b-256 a1de1348e7405d1d4174744664ab0f23189c8fc3ced7a7391ff5260d5c4a803d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fba080c336bb3f7a43deefa9e5038270bb5ec025b0a01d1893220a348ae7237e
MD5 b144b02eee90986b796bfb6b52d19d2d
BLAKE2b-256 e811f2b25e586c7e7bcd29fd40b5c1698b0e54a7c92c3f6079788302795fbba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e77f042adca98bc792406a1c8d71d0f4cc35c3dbe06379e0f73758232fc61723
MD5 2b16d5c0cbf14df7bd1a79cfee11ef8d
BLAKE2b-256 7dff5ee486595a013b96ccf328ebcd74dac8376828ff752b2a44d72655b53237

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-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.955-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9d429e102141fce11a76cdead547b18902c247fa66d059adcf00807509ceb19b
MD5 82b84259f88d240fabd18cc64809d826
BLAKE2b-256 0b64e451a8476eace62a5db813a29e456de2b8adf0a2fc0804ff00b1bef4cf97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.955-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.955-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 edc05e8a1fbd898548256a0ee6dd34988577166ce5abae793bef6545e983df38
MD5 f956bc1af7ad70dde300eeb04bd8c15d
BLAKE2b-256 a24fa1aa433a615e1fbc2820a7db7598ed71bb472af7c630b5bec1c7ef5d5206

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8de24400c96703777c47731224979bfbe9a696e1af53f33ba3b9c1a748dd1f9d
MD5 940eda24e2b413d652ad269cba8e74fd
BLAKE2b-256 22095ccb8092baed3b6b5476cd26032efcad469f48d71e8e2327bf1a72eb4bb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1caf606cd5a9213661792a2ff99ee6434c88b8f733cb62be3056aa33debeee49
MD5 0d9bb672ab14ccf01016bd760901b44e
BLAKE2b-256 0f1cba545f9ac7944bc2b38a74426794c49652e51cdc01b60c4d348a58670497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.955-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ffab033dc83f1b54ad0e870ecd5367813eb310fa212e6b267685f2fe9ddc8b48
MD5 8d18322d05cb00389d17abc6d439475f
BLAKE2b-256 a2a4b0e7713f6797a6069248a3ef02359044a5a7e51dbdee50b53e32733bf59f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.955-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.955-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1cc6758ceb5e817a10b89ce8da46efb97fa104bb0e08c9e50f2105357700c7db
MD5 0cfb1840af8aad7a63239d53a0a38e90
BLAKE2b-256 64d7c847f2e46680d26a7aec637e71f3e3ff225e94ef8ea67913320c38ce51bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75318a1c16a6cb7a7a23939ca8dc59218e5508a9e7a6cb9de8c1bb45c0a0fec5
MD5 1dbbcea5caf640af4dbef146a1eb7c62
BLAKE2b-256 26edfc8f9a182756013b6b763367819d352e7ade1b1e9350937ce7d0c9d68d68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-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.955-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 49de5867e7d833f0ebd8df3839fd5443d4b7984cec00d608e0bec7c36b202e57
MD5 05dcd8dd15412391abbbdd7864839e22
BLAKE2b-256 d4bddcdfeb3bbf424a8bf59ed102389f2671d54fc492db110909426653f414f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-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.955-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 439188b6ddfd285a694da8d33d43a693fa0a273d1188478e8c06adb6b0aee4cd
MD5 f8fea86936b344bb6c6e393d5dd3e6cd
BLAKE2b-256 78239707490bf1dc2db494232966f8c2d9369ab4707b639f23abb20aa43dc50b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.955-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.955-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f4e6720bde7e5a35672cf1be7fb40499835d9109abaa28797a19c341056e1a4b
MD5 319011960c118eb82036ed47636f6095
BLAKE2b-256 7ad603807ddcb9fe84eb00a1d6a62e93784fb1c2c725581301df2d50275802bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a727b63648b1f92735f36b9da33c696a2a9a5bed6a9b306d379c19bc91817e61
MD5 952c335024270fc2922e125afc51e734
BLAKE2b-256 7d5790d79625b80598c0d6d1fcca6b34ac04ba8127ba3fd32fbe5ce810812c7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-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.955-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 195db3bae4918060b0951d12ac74c8bd5c54325f3782676f404e4d36f7f7998b
MD5 0d55d09f0d0f86c3e3179a9bbcbbabd7
BLAKE2b-256 4c2e844bff6d984fe1432cecc3e76a8ee14e858ec58acb5d50c6cab884f7e5c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.955-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.955-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 36f14b32b70bae0f4952e28d1319a4ce582d171999ef6b4d2c2f875937b8ff2c
MD5 60dfdd4e0b45285eb219bd94ecad74de
BLAKE2b-256 a677752c3e4d24b1f136a24820c412b15681430390b36d623c86e1b6b1ac65f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.955-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.955-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8764c248684282fa426147f15f9e5c6a23e2478eca2417f2c53c783e9abaa91
MD5 cdd05c793cb02922c10dd8f767a38b71
BLAKE2b-256 1d0f908d5445ab561090535321a91cbc734ef0921d97c15aa6679dc34107d9c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.955-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 083cecbb49f273e3d60f24f41e7047e6530c62d0efb5b008cc93642e93457696
MD5 794f19ba83e14fc993389d3b610c8d09
BLAKE2b-256 02d73781332d311e8627f6d8b1ec120be28eda78ca89631dbe77a94f60ce5a72

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