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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.911-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.911-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.911-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c2706132ab5c3fe85b9bd838aee4eadb824bbc94529faf850db406e3a96a5db
MD5 cf3d62c88ae279af98dedb9e12f54bc0
BLAKE2b-256 d60c6deef82f6332306f4fac412972a2d53ecf8c4879e0c329997d56d4b706f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 43e24353deeed36dbd8b6b7c96ddec6fc3dcbb95cc9fa160f05580220050c35d
MD5 559399ab97851555b721b5f103895a41
BLAKE2b-256 2032af964e507cd26e6d0d0b741fd7f865ac3b5a2733c9b8d12b76d485b4e190

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.911-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.911-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6b5ee2a476d2c61babe3f99c9f66d3bd23ee95da3e8062c07f47beaf8ce5d45
MD5 54fc1c049d534ae4ade1367876c6f68a
BLAKE2b-256 4c1d671fc8bc82580c988a6b5062486c05c322c64e4fac3f5cde305254fa922a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 023627a9c61a3de1028f570f8c88e61d15c2384fc9335683c96f2be6a1223973
MD5 6092a5e0ab63f0d2cd893d13547f6b76
BLAKE2b-256 102759889aa784d22a00f3d7c896bb8a2820d562e25d101f627a59b5cbba6fea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1e0278911ebe89f7d90d01923c5478af36261013dd885b06effaaad1a0c04ed7
MD5 fcc9fa2e10785672493db8ca0c5a6de1
BLAKE2b-256 fa0cdd844b39c65d256c30d08fd588881e2b1424f77e56f34b2757e348a743e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 63504b22f12fdc30dbcbdc2396d08dabd05c8abf3abee1fd746deb8cff9b078f
MD5 393ca1eabf226e8a18d8ffac950fc6f5
BLAKE2b-256 7dc7938202c87f0fca7c082abcfcb146abfc6aa21dfd723f899c41b2a56b5b4d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.911-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.911-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe378efe57aa9318bae1fe756584a0e174c154a6590b1edb987b6997beccf368
MD5 ae756a6325267162d2f11bb8b8671ab5
BLAKE2b-256 cf80a684ab158d03548807f64119041a8f630f239dc506a63cb9a518d34c4ba2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29dade7ed5b8cb15b1b00e6973c832033c9a9d7e8825af437a019c5ac6ee12fd
MD5 97b69c98f1a4f424a3a3a2732da5a0d7
BLAKE2b-256 70bf9bc6f60fbf88b9510c4d9d07cfc2eb4e085323728fe9a36057b3cf60f4b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 93c40997be11fccade912d66a0a4e60d158097749d0dfe7fc355283a78435d6e
MD5 525c1a7d6a8c5779b626d89b1c2f60cd
BLAKE2b-256 4c038d44000f4193f9cbaef6bd97874a2cbe00501bda5645eaf4dd94e054831b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ea81f473426943936810f903595a99640bb00b16182ac570cac591547ffa0fc2
MD5 63e003e20ec6427e3c1a332d1c816867
BLAKE2b-256 a2dcef7e7ad5449810a163a8d71700333a9096d897856baf80b14477fa3ee406

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.911-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.911-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91b7bf94a49d6626e4edf96f2f859867f3ea8fd45b0df0eaa2e5c40bd7396ee9
MD5 9c661a87968a57c32f1c6c4e6e6645c4
BLAKE2b-256 f2092baf7fdf0c685485714254bb2c2c439f468161ccb0b7e9a6e31941c0a52f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14d91aef2573951ecc7c94466a2b0b03dd49734914ec57a2120b0f888ff4481e
MD5 b04d5489504242fef071bb8d4be9d52c
BLAKE2b-256 b3f7538fd7cb0b6acfd31b257d4963c229a8c935c77eabea03d44e996fb8c41f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2242e6332b8f3de2ca8aa4f7391f738d301dab6c59b23a758ca4e9c27a89a02d
MD5 333f499e8e5865bbc4505e4ead04815a
BLAKE2b-256 97da0916a54df87f2cd3d418f77e76eed62c71d320de6644d7cb8bc3c17bec8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 66a9bb576a6533565a3556ec85604ee49dbf100383c42f726ce2a56e78172dd7
MD5 8fc7a6f6f4a756e03a433d98de63eab9
BLAKE2b-256 d655b72c7b794901902d8985b52a3bdd13a6a7ccaf7d02967e5bcfb3fa444ed4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.911-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.911-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7555b77ab3f7a70c87599a6a7285da2dc27056003bb8830d323424150a887991
MD5 24627dbf3621631a577992a52830f465
BLAKE2b-256 cb985434d42a3f87740cd2977336d39f56df0b69ad30c111247f759bc0e7c21f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4499ee73e2394aa0362eb4e2fc9e91aa66da1838cec82846b2a75c543e98e50
MD5 f421c4c64c1253ffe69b75f15a8e4b32
BLAKE2b-256 b79952d5fe537bd8ccfedefbb1438eeb147306c5f510cb620a75b315b5115463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 be370bbba5a7e2f79ecfdb8748177a69c1df31e21430c3b5b767b55531905b24
MD5 44f38ab71af79024894e6b47e5102632
BLAKE2b-256 801295e5201ba1039846b5740aa454d5a5a0044924c4f263b4af2758ee53e4c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.911-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.911-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6fb2182c6eade42d27afdda4ad576bfd3cb942f06def08eb9d5eb8f7e7e0e45d
MD5 fe45e6ab06a2e5a5c0256642475af6e1
BLAKE2b-256 26385ca75cf13f083c5e7b77ea3bf02b31209a5190c1c19cb3ec2e8b1583e27b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.911-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.911-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2405d7a2035a2b022cc37c317e28f2079bbe66eac422dc6bd8bdd961052f8360
MD5 a8cd24b69edffc6b095deb1638d36c08
BLAKE2b-256 755f67d3d35b7a4bac1de94cf8cf7e4b0a7a3ce9242e0b4c7ed391bf280d38b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.911-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4d5db771a904b3580691ecb9c346bb7ba580b0119d0381178892840e3ecb45c
MD5 952a52c83c8b2ec36d8a6cbf32fdbfbe
BLAKE2b-256 dce2f5804cc72bf509a9720ddab831c829d4e3ecd4c26721693902c900798793

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