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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.778-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.778-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.778-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 399740c5f67143f101c92a612d857e119c553964b61dc17df249cc2c8a15be11
MD5 28562f25833541c83dba7c2619dd4a02
BLAKE2b-256 362f5be430db84d0b19943b730eb08712cd3eb4c953fc4f1cf35d508fd831af6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1ff28dda27758b74f0e8b617b63b181e99886a03c448ae1545f586c1f4140eb5
MD5 4d3da6e68e655ddc30303e1bc0da8407
BLAKE2b-256 9bb1eec110e77c0c8d9d964fefcbc9c414863a76f9224cfe71b65ae47cb679a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.778-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.778-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78d0787dab03053557b72dd097fc41595db3ce93194dace52eeddc6b773737d2
MD5 34820f17425bf24ff5777fad25b84af7
BLAKE2b-256 1fc5542bef67d1ba5084b05b646ab1ca7a0dc77a5a0f854fe2972293b12071ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9952108774a264baf1a8185dfaf28877a23a70582536b57bd0673da2336e33fc
MD5 426e0143e01159f8ad47518475939597
BLAKE2b-256 f1f438e84e90b5ee66edd19282e989b354ff95899fe1118c3e110052404d0bd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c402ac180d8c2147d6ef257a8d616dd1f399cba670e9d0b1cdb015a748607b44
MD5 280b8ede12814730ba6f87c10b225bea
BLAKE2b-256 bbdf76f34159064f9ca082621a31243044b5aab9893b3b47962e2108e97ad6f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 78d195528de017bad2538ee178031f90e75a34975c47f290cbed8c15d2d73c13
MD5 1c2ef46ff3f1a6af02ae89e6548239f5
BLAKE2b-256 dde27f18c44bcbfad1d3ba46ff7998e8ea970dc4f6846ebdf27d711e61ed8bff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.778-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.778-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7847c53808a17a3a30e3b38259fa1b8ad0be06f28e9907fa150ee091192d512
MD5 d0ee811ee01cd38eaf336839fb6bf8c1
BLAKE2b-256 a0becffc133e9211554a285860d509c90716e7ad61cf86b41cd404d796371137

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8d590d126c3c5c88d7e0680b7a01d49ff16df5450fcd54fd0847c22efcce6bf
MD5 70560361d63010c9b16ba6b5f3158b6b
BLAKE2b-256 5763b43a2a8fb6944da24189cb650dbb3ab7bf526b6a74dfa88bfab2d1dbbe85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc725e61e7474f98a0c4f615c365a7002cfc7938ddaa6fad40ba928142e98fc3
MD5 f4d0835004c3a72485b9b63bc372e754
BLAKE2b-256 88b62cc75a1573c1480121908f9fe1fb59e2b8bbb827fdadfc0f1718730e821a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 739a02219c392e6a6f4e5ab0eae18796bb0f8e7b399a5cbd496912463808abee
MD5 608d7b0946db91366d826364cbd40dd9
BLAKE2b-256 e7e8807355dc999f0f90c44d9690809bf948badeda4f79b94b7d4727adb6f2b0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.778-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.778-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 336d14776975f097ed7c6e5c796e7923e0cbb79a4f6fe3b438cae6dfe20d36c9
MD5 e48f68a06cc653df5503f160d3b610f4
BLAKE2b-256 6fa06192c47c9a8b8d3f85fb95c658dca07712f90ee67e95bcf9a1e6aca96f62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fba5796f54b01c96513839fd86a082da6fdad7cc5eefad4e8b3c665801f9c66
MD5 46e4359cd6e8dbb16e7e7fa658e87e6c
BLAKE2b-256 86026271329f4874d71ebaeffee210a7238446efd6e94fcc4f5bdefc8b987fd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1abcc9cf6afa0deda942d4fbde2dcd64458fbf286cf7e3a6ed719b408bf9c262
MD5 ea15612e2910bdd61eefafef53e441a1
BLAKE2b-256 3aed5731bc0dd4ca251b4c37e17320d9417f0f5a1d937076d316f6737e03bbdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 24b406ba08f5a5e0a77ac437a9beef7f03f754d2a9dd2e153479f0a21824116c
MD5 e2de6a132bfccaa8aa440867f43a9137
BLAKE2b-256 191da9415bf2d281fa510264fa8253406935ef4df5c0b44389aa5c92ff3566d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.778-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.778-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42e9f5ba044569f42afa4857ce558d59a0c4e7d278e5f161bf57b5d561695b90
MD5 d16b65b67b3b06d1f4b914de8c74b15d
BLAKE2b-256 da2fddfa961105c06158875857ea49325a086fc3cf2ed529c3de7a7fe40c8464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fcdbf3b846751435aa5a4ef58e78d277f75bccab011649524cc42a04bd77395
MD5 5a9a82110434454cb4367bc4f18f76b4
BLAKE2b-256 ec5078f3720736752d6e0972fd8ead153ac1e16703344f30255b8a8dc38c721a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a7c956e5b34fa7ace66f4bad2a3d87f4a60da405f49b30cc71de630e7674657f
MD5 f848c87b23ace52a1329122796fd5c9f
BLAKE2b-256 d11b3170e1096ed522604d6b40ba38fac86eaecd06d8ee9578f5a3a92c8a615c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.778-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.778-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 28babecc012e2999470e3e29f4c47acad2f8a64f917724b1743b7b4a57bfd006
MD5 1c8ef96e74db612d950117c8c6208888
BLAKE2b-256 51c67b4180ba748c2f8eec19663c033a633fe7a7a0d3a81cb81e0c4e5d8f89a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.778-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.778-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff8cf995f2658452bef9fbc007ad7eaf9343fd07c4bb719f5323d768fc846c36
MD5 6770a6465e4c90df0391190a50f2a81e
BLAKE2b-256 db7605eef5fa3cd6a43e86e78c8515aba84e159640e071a509817a650aa9c372

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.778-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c67923431d2b9856e61bd01c7af48d9b307890042982c4759bf8b77897d7aae2
MD5 7c2a285f56d88eef638410f3f347b8a0
BLAKE2b-256 078599c2ff331246cde8687e3bf0373a70d418bf04c4f27e93267fca62916b29

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