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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.356-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.356-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.356-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f7f831659e3999c8539210abd564f2356a763b24eb056029b2a21bab1e6b4c91
MD5 5fccb51ec60c82848156557e734631d8
BLAKE2b-256 8fe8f831e69f54bbc9cf23e0afe9b66651c3a38678199574ed9dab29d0096393

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 885cfe5db5dae3dce7873b223f54c676215f9f239fff063d7d72294c707edd34
MD5 a0cd062a1dec55a5d19e1f0b47d54f5a
BLAKE2b-256 a7e2561b34042f7ebba616c7e1414f11e8e741240378e936057fb25f56d45673

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.356-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.356-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1ae2bdd14e45b0a628842cb74edd5ca608356d776bfa9e067ebddda551de24f
MD5 69518ba5bc750dfe6f8ef69b8a203a99
BLAKE2b-256 c302a4351c1b6dde1e1f8157105a0828f603a1e596a7e4f63d64dc50e1eda6a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e67ca968fb302d3ccd63e562e90eae3e5d07fd768e55e57d8da67c9105952e2
MD5 d57c3f2e1455e2b146c61a6572f5cede
BLAKE2b-256 cc4e51f8a8593e3a5deaa7a794d12f623a9f7d75cabb2c6d8d33dc5e9eb4dba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ff76f56df17d49bcbafc7f09ae8eca57c5ced0a33112b210331b652207176a01
MD5 f8f218629c07d4df8a99da7441ed96bd
BLAKE2b-256 cead185aa80713ae69a9c629cde282c7ca06d59fe66df885bd8e5cb37202b381

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 58713fbcac160a5f45a03f5b6e49f4e26236e6af6c86848b58724d48d74b7c33
MD5 7e2332aee4c0c3d06faa09ee4040e365
BLAKE2b-256 72ef28b4746d221a12f89d4a7e25e96fccaa42761bef6420c5db3fe9bcb1baa6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.356-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.356-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 416de16e3c34d6343c57e5ee742ce058f55c47634e4a9c7fe7ed620848c1a666
MD5 923597d8409a7dfd10f06d9887391fd5
BLAKE2b-256 687e9aa683e371c2a873e3b7da8dd9f111cbfdcf32bccd7c10423b5a370354c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 319244a45e978361aee92b668ec711c49bd2953d25ba2ba696899c962608c51b
MD5 cd198e10a008eea25c62bb4771861234
BLAKE2b-256 d490801950cc88c2b302fe77339aa4d2a3f7a660116924e60f436661a220586c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 46e2a613096fd344533344a1b0441a32ec2007c40afb120d19cfab12bea900a4
MD5 dc3917d7b8da20ccf3024b63b6979809
BLAKE2b-256 399f977f0dec923b53ca161018c97b6247a594cfac70448e0f6ac1d1ad7c8b41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3caa67ab3426fbdcb97df9d687a0d13908205aaee3f3f77a4ce6c9a453a0a4ac
MD5 adbd096775768b206f29f94808df97cb
BLAKE2b-256 5089fdcaf974ed8fd377f6cf67b9eb69b3a72098268d47369719c116b06e9b66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.356-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.356-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f3339a5e1cc632ed33c10de2c29d8eb236f5b7a3be9f87854fd1d4bf1ba2ea8
MD5 15c2a21f54a0e5b1dadd5a497e39eb8b
BLAKE2b-256 e4e340e9a893a8d4c0aab650a9938660ee1ca8b98dabe9990cce2049397183c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b29559660436d091b106edce5d58d36966ce715487f0fe74b9a3dbfb3e6548e9
MD5 8427be36882a9bef32ec8110c42b563d
BLAKE2b-256 120434f5be1d969caffc864ee4a5c5c780cf984e385dfa27fd84d26f864813bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0dd6bf6d0bfde28f04f665dbe64d1b6522c779de8c155f8b4d0e52da1ed44b1c
MD5 64c08df8df617c0e332039ef1f313b0d
BLAKE2b-256 dcd6acc1547ea7c70ad3b34fbc3274db2bdd990beeb5d498ce47245ae12eff1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1eeddf364637af7546d46d4f64d83f043671aff8a8cc206134b23166690ea37f
MD5 dacff7ba62194f132d33dda03cb905a7
BLAKE2b-256 cfcaba93a0ba688212ec803082ae8a85920cf3b6680f00a7cb19b47a5f71e817

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.356-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.356-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 955f350443156893a86bb81423f7cb0bb61a1d7eadc22233f09d05fd61044471
MD5 b7709dc732a15b3a5794b8a93e749d67
BLAKE2b-256 efb7d1afe89fd6683176fc4e7d71263242bb3495141676a0622f41b0510d3342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d814e1ab0da222bb122659e21be3457c22d200be87160459fe13445a274cd30
MD5 af4419a3dacc6ad873a8adf461bc45cf
BLAKE2b-256 fd4d07df6b707c5fa587f703244bdd9d380dc6e27b39be1e1a5a060f13ac336d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4ec706c747d756c85226254462d2eec792aa569ce2d1c7b87178e588767ac570
MD5 a1edc4dfe25916a5f1acd38929711760
BLAKE2b-256 aaaf874be9642075e07b93f0988abe676444124b4b915e2abb749d900d5996bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.356-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.356-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f544090594c958f930e1594c15341d529f64ad9ad7adb7a28536b5a6be827543
MD5 ea38e5ff0a1e5dcd9f7d947eeb3f0fb0
BLAKE2b-256 4c66861ae7dd4b9d71ffb7b0145b3b79e97d71d998a59f6054742ec870467e06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.356-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.356-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1597fdd4a07e0cd521698c88fa2e1bc4936e2e6d016c6e782ba524028da7b0a
MD5 e5a9c1c404ab5c56a12113112f4b9832
BLAKE2b-256 c8b2e519f6fa0e075c835bfbb295eb4bede70a4828bbab939e61a92e835dafb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.356-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ccad831b42dd2ceb6ee8662a4418fca1023eeadda20f44f6a0a0128fca3fe63
MD5 777fbe67d4d51fa9c4626a79f66b2e34
BLAKE2b-256 2fe48b2638f37a4791074e93e5d0309cb3cb5ad7b8518d655a9f2601e3bbe980

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