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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.299-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.299-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.299-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.299-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 671efd0ca21118d8e7197487f7b423ccf5ed77bc07064e0f3a27fcbf2baf294b
MD5 0e51ec5261f5a46d89b31947fb71c757
BLAKE2b-256 add17a5a1dc5b510774e637e890930a2b1d24e8f28bd3af1f17decae00fb1a80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-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.299-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 68c762cfc94c2ac8446664f6702077aa71c8b16b2502e3d7df6ccee6b1f4bdfc
MD5 6a3e6af78786c85b5bb5267783476aa7
BLAKE2b-256 a3c92164104fd744e2d4c5202b69abd4611901a9794d1acec9fbd92391d91269

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.299-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.299-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d5553659a5ee99170ee6ca4614eeaeb45b9d6980843eee2ae7289ae429b6c0e
MD5 b1d197b38f412db7c8eb53aecdc15f5e
BLAKE2b-256 d7674e2747431fabd287c3d318d0fc778ce97801797ae9f99a7e02143db2441f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6f7c47147f0a9731b4d43e715d0467935eddac5fbeca0f8f43f1b1046812069
MD5 e60f7724f49996cdd38fa89f0c57acda
BLAKE2b-256 cc70000d2f25fca8133e04f3079e23fd47d762ee4c7543398d16eeff8c71aee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b019cb536a9b5a86bc7c31fbdd91718eb6ba83ffa017434346aa957bd586079
MD5 ff02197767c9b1761df88390bf523076
BLAKE2b-256 3ca9eb766ff70e1799128288ab3118cb4d56ce97264f625fb00ebc72a7605a29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-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.299-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 165e019124cfc7eaba048df856f09863479e0c67a55349ee065315a616a18a14
MD5 826fa688532311a79a29b9da03325abe
BLAKE2b-256 1ac64f6ff015a404553e6e220d4f06f56bc220c858e0458b8a9ff1eb7abd28b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.299-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.299-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 181813ef66f0b051275037d2e5e61c3c0fe122784be806b700d6161d8b515e00
MD5 5b9d4558fe65fa4064db43c078d3398a
BLAKE2b-256 5be085af6d919cf9c048876452a5b76c9a0a880e386ec60c29b86aaffdc1fa25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a528001dfd4f4ccb4ec2cb2a9770aeb6f6fbdc664312afa05e0f1419cc7997f7
MD5 6133ee4076e558cf79d2d9fa02b97c00
BLAKE2b-256 3aae40af5f374b6c752016e3bfd9cef73cefba92a32d5d39d29136d45b5f7d04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2ab42addd7e8d7f42bbe125cc3c1e48bba6113607f9f487d7d0e5dc91f5105ff
MD5 2e124dd0dc8f2f4da72ae8dd20241f2f
BLAKE2b-256 45c3e2093efac90f84e220634a91b9892c98471a1c8e37f6de9c8f85c343a4a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-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.299-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6cedad38127a797871757777333c480d3ba09f69e04fbc7d76d0f9aa542e61a4
MD5 3262739c714c3c29dc5d5ed0cdd3b59c
BLAKE2b-256 386c51acab9fbc67f0eb989c925e84fc32f4012c4d6394d9317bf768b0c50b5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.299-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.299-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b75eab1f382017ded121580e586d6b01d7b3ee1a57c84388bd6b14f90f219efb
MD5 3841074fe7788c650f4f88355ec39731
BLAKE2b-256 2110ca28f13032ad18b5b0b05f7845487f8268d4407fbfc58d0975f3dc709497

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e6ac2c4d8860c560294701c98eb25426ff0159ea49f0a11604958d16a165ae7
MD5 2ab4ee01c8f88ec5ac5b8e79bd0408d7
BLAKE2b-256 9ff7cb1ed321b5858208a982f1b217577b133e9e438ac072c08c45ef25c146e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-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.299-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a50f66035bb0d0e22f25af0524b4b168a1fcbdc49b5102cf0b17bf38504a05d0
MD5 6ae4fa3b52d5b5451c5b865fa915fc56
BLAKE2b-256 d64578df5e90c90ffbfa0a3d758dc8b65cd798dab5d94cc6e7d764955630be49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.299-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3c8a9042ba40e2f864c0cc3e0c6b620e1e0651dbd9f7e6a8014cee0691fd4e55
MD5 5a8d3a7879509ebcda8ca6dde476f916
BLAKE2b-256 240dac7dd1bb1f29f0ffe144c3b17bd7ddd31b4d061b7d422b1faec168cf84cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.299-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.299-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8a293cc05e5ca16c271222a7f8b96d94d9e3317d218b76ac5af1c5a7e3ae389
MD5 d5251dc8606222862cea091250bc1090
BLAKE2b-256 154f7057c1142072a2aab455205165a9f70ce48d3068a5471b9d83e1374d6e70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b56bd53d300df89d1d6673f6fd3f145a4cc551c8330aff858b4bdebb96026d7
MD5 07d4999b7b3b7d66fd57e87fb42c68cc
BLAKE2b-256 9ea3e8bcf1881d7f66e7d88fb44bbc997d1093d78dac076f692631f92fef4f67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-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.299-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 07a75767f2cfb0116eb94ba0f1d2dbee404ffeeef6a300c887b29aba46f34fdd
MD5 71802d4746f54b052d5131a290e799ca
BLAKE2b-256 cd48de441dd959403d632e75ae7d788b97cf89a49f08ac3b92a84e30d3ff785f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.299-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.299-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 41b88bc859e00855acb98ebd7dfadd0f1802f75f06845f44c3ecf3e7dd9c0592
MD5 0a31d3b8d17a123117e015cbf30f5342
BLAKE2b-256 61f7a9c2f6625e2a899eebbadb8732ef3b5a654a956526600aefe5088bce0014

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.299-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.299-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83e0cabd3acae57b8a86e9f895f9b107180f0b1f926830e37945bedaed9c0740
MD5 ee73201b81992a23f82ac88d8fede10e
BLAKE2b-256 4e6ef0c3bb45cb23c11deb4f8e5521c63bc71969a823249651f7d3bac746d239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.299-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7aaede3b72fddcf02c4a79c4b09426ed14d2fbbba16c1c11bfc7c22c788a712
MD5 478c7b88be677b992bff2f7ccb1c44b7
BLAKE2b-256 ea66d669d783905206cc7642e556afed963717a0f2c43139f45f9a4a13957874

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