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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.304-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.304-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.304-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 71ce6d986d27a860c55227ff92229a714c7e1ac7ef23610284d949ba656cd0e1
MD5 f592de53e68fbbd196d5c29e7178e40f
BLAKE2b-256 2af132ea553798e34d19de9b8f543e6d906af6ac45dd213c60b99c1773e428a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 771c54c71f4a74daaaaa6e15bd391bf823ce158275de3740005666dab636c52a
MD5 1d854bdbe6ceec94001009aff0325ec5
BLAKE2b-256 0afec0c5713b366a77ce8ff0150cf3d39f41406bd9768bf3af61ea6683524fee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.304-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.304-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d2bf6c2ba5424dfcb4411e8a794c5b24325d931933a80bfb15fc7a9af67e60f
MD5 e05be8d2a01c4629280f3bc68e53c242
BLAKE2b-256 409b90dfd0c9aa3a6f0776be136d5d97307f64eefcc91b1ce5ae5c8d3e819f6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1ecfee45f802d7990e87ea7118ac0ee321787c02dd05c3a88d6af3aab50dd92
MD5 d302db8ce087dd3e73b29522733019de
BLAKE2b-256 233295e7b402846394393228617a4661f4f4a7e53c09f79b6779d98f9e298355

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 52795f9ed263d8567b3f26069c72f283ceabe242deb24641787c39cb834bafd8
MD5 16d1d696f6a9e1cf7b85476a6c75f64b
BLAKE2b-256 4a42f23b4b4c51ff87202e0a442267160fe201f701de145490b732d4563ed85b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8938cfc831a30f7b35191ea241ad1f3e118618e86c3ea47f9955cae0a855a541
MD5 f82d44c69e1b436ad74c69e320d8c95c
BLAKE2b-256 acf630498744afdc37267ee08305d8b6c039a79659d50be306bf23622b627206

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.304-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.304-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df01943d50edf12d5130250c734e41f6611d268dab57f55e359c44dd72ba1c40
MD5 70a3b150c42a8477799e0398ee987527
BLAKE2b-256 eaf2e119ecf6ef3426fe77eb38b4b7b9f70b39bd993d004bbd91b893c068cce2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae236a35463d4f3307ab17bfe526477e593d3bcdaee15470c4da55294f597a5b
MD5 091a9f78bec6b40d53f61c57378b10ea
BLAKE2b-256 cfc3f8257aad9c2bb09aa4e6d7304c5e351953ac63c84de5c24517225e7de3c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b70888a1ea503eaf7c3bf6256aa96e1494cdf45fa14f59e7e93fbc34686d59e4
MD5 49a3a4ccdfa2fbbeaeeb95e24eab68d1
BLAKE2b-256 9153ae534c0194eac6ca034d104bb09ff3b6ea4579ea00bac7a9f7d452654035

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4d95ad23a65c164ac6f167b957e0972c248d6f83b2eec683c9545f0c180c69d1
MD5 825cf296a5ab958415e8f6469b1edc64
BLAKE2b-256 5760f919064ac57c2301c566e55e88213c19b683b26d1092ead0dd5aaa70dbab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.304-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.304-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4fc65e510fde1e2ac986253edcd8609d3eb669f07967ca5e9789873a3ab2f33
MD5 c1574d5d68ee9614e262a70421a05bbb
BLAKE2b-256 1409e75539e52da4e2114a00c5a83a29c481e5b1ee75710999c06355d7ab0871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cee3206060c99be2229839a9acfc8e1b95ffbda4ec7907bdb0d48e26beea3bfa
MD5 797c477e726e1dfa37d245649b57c41c
BLAKE2b-256 04b27129e1a41d8ee4555eca0181d35c708868d70a2e588e3987139cb848667d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 37cda507be51434326075f9b5d470fe7e8b92411296db168a9cf9734263458e4
MD5 ca3c51d39d348d5c4c5de49e6ae54394
BLAKE2b-256 5bf520baa93a4156b526e4890a911f9286e791dde4f6c739dbf0b52d250db2e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7fb928b464670009db1c85f53618dfd1581a0f05729021004f0c0d713961c1e1
MD5 0ce082b07e88d839ffb018a7bfa09183
BLAKE2b-256 27bfa40390e4c6d4d58efadc09480daf55b02c0ebc19a2106aa553d0a483b195

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.304-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.304-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94ce84a93747dafe1b5bc4161781f4526fa133027bbaf1600902df6330b22223
MD5 34d3f8a73ed015e4c42d8a9073714466
BLAKE2b-256 91403f96f09ff861bfc436342cfb044e539773693a2d86b6a482f0d67ae7b271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7096e936cbf4753acca71dbf39f76f28352ecd5af58a128409048e60d9c9ca06
MD5 82f2464e7892042ee6427eb04cbe9eaa
BLAKE2b-256 ce79c4a25e845429ec8e825cf3a87d2d3187723f1d1fee1cba1a53072d1b6f85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8b0f248ed0a0e8c368c6d137d5e905f703d7e59a10ee64cfe0f8ed20883480d6
MD5 4057dbf30bb2b229a035824843ca7e78
BLAKE2b-256 ed46b6ad24388c770f4db1e667fe623821517a276c6b60feec5748407a3578c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.304-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.304-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dec299470bcf32499d17bf0ddba42012cce44fc76de84c7b6c4e532e03935d35
MD5 c52b95cbb4dc580cad04c8635f4b9ad7
BLAKE2b-256 7d41501309763f6cc5359309faf438b6ef3c4d65c43cfdc456867b771f86f43b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.304-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.304-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f176d3f695b504e89663c2438a4623e943996a56a4efb05287148656dd18c8a6
MD5 eff3874b39c99b1893736b4bdcbd492b
BLAKE2b-256 b22188ec660c16d043b6ea75ab9bf23903812395940873bab0dcd132572c8989

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.304-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9146e4aea8d75563c43b8686cd33cb2851ce3d55b14d2b79d0e406f3b473c895
MD5 d6ade6d7eef4f26ac6db1a269d291a36
BLAKE2b-256 f1503365a1a07fc0118a712fb5bc569ead8ee75541487c8c61633b817e51841e

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