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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.113-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.113-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.113-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f9b642466b1ae8d8399fa32264c2a64b10cd292b74dec35d85c3c338cffb8f9b
MD5 c4512fc3336e0c5cfaff83cbf7160b49
BLAKE2b-256 2096463efbe656c380a2cf4ba0e8477ccae12bbd8ac5fda28c9bd53850b194fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a72d415f3185596ced1489b0e0e681a2f7f8a76db154912e9f08728e31093d79
MD5 7425e1909db7775df546269e41f3a2c3
BLAKE2b-256 919434f78a31906e3941efc8c8f00499fda86ece5ef89a9d620acde3e7fe82f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.113-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.113-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4cdb6ad34c9cb6930f17fd33204d5f11d485fe22c06849bb8f233b6b7034b75a
MD5 fb40cf01b01e3ef26ec88be3031a9f3a
BLAKE2b-256 e19733d703b5c6cc70e23a9dc318d23fb4b9765011d769eb38ded73c9e6d97eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6db327ad4ef71af75184a7e8fa8eb413fc5acbfdfdacec2ca50a708e02ab6ca
MD5 a397aee84a9c7e40ac69a7635737170c
BLAKE2b-256 d7c349ddce49b1555e5cb2ad1b98f34e713488ee6d2664bbfa14c3c6d34d24bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5edfff81c4642b20cab066a3abc3fb71b8e090880043375e057d2a49add1b048
MD5 7cb0577d1baf0c1123d649163478b382
BLAKE2b-256 8a60e7ec07d88174076050ef93275849f4af2e83d2c684e83a9e869e2a170ba4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 83bedcbd4b0fca90e09a573992e68c8bc871ef15e997fc5e1d5a3a7c805d9c8c
MD5 d74de210137ba64d36ed018ba4891dfa
BLAKE2b-256 e4721059c8e458871d2521e20ce727c81e4b148a436fcce6cffac5b775c30fcc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.113-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.113-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55bccfadd1051af68e9a6ea96c84ae1ee7cb65816028edf06cafba38fce808f9
MD5 7925eea199b81e21f72467fa14e6347d
BLAKE2b-256 1f6081a8bc7d6e9522981925bda3d41cbc4f40c76d4f41fc3fc8164c87f4ccdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b4ba5ac46e8f74389d9646cc2c34717753d98328c3247528021f66f84bc288a
MD5 f08155bde8c304652ae25239c7adc1f1
BLAKE2b-256 395e346a3e3ee521adfcf331905cbe28ebac79374a68f97d6bac51a297fe9a07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 76cecb04fd421ec9f8e6ee4a181b32ae9acc527066ff60dc6afbf0727aa3eaa7
MD5 9c3c4679cec31401d34e98a12f023959
BLAKE2b-256 30d0cd75caaad9521e162db007c072cc598c940a2ee873d92cc452e6703cbac3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a81c196d2139e399ec938aaaada2c346b0d377731336b960a7c503027b938102
MD5 e469fb6763d0a17aa2e5e41ca8daa49f
BLAKE2b-256 83713f1dd710c907009f64bcdfb665c49b3c1283e05fda768ef99ec69260ebf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.113-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.113-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 950d5be16c12ea3ad24637acb2ea059b5ad62bdc2d598bb2fbafcfa1159057d6
MD5 d869428583c5a76226a2315de845aa15
BLAKE2b-256 5e6b292177ab1c7852a7e05e8e01f58afef26baa47fc80a590eed2b58d749914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2800b2dcfbfec7ec131a6ce153e80541e586d4cf2051f6e0b40a32ee8ba3d20
MD5 b6a4e9272cff20fa67f7cc968a57d351
BLAKE2b-256 0cd2ec7fa8fb2d2cc6fdc703600d930080c416088c5a7b93b0654ef24d4e070b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0cf0dff36e6dcde0a02592bf7e10c1e7fc3162b5d1d5b6e2b2f295c91a3bb60
MD5 7d3e9fdae7fe205d8db1a5179362ccd9
BLAKE2b-256 93d07aa9bc928c59efb1b537b95903be7ba94c79e629d1aa08cc1ca3b88a6d01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bb50a931b1adaf78d1b947bac20ab19b9d4c0b83999ad47e0105c2488d86ac8f
MD5 3635812ecf7c23e77d01f4da48d1f6e9
BLAKE2b-256 bb94c385f83f1b7e05f13ab624d393e2d5f3ee2e079d0457cfbc91e998ef15c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.113-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.113-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 491b6950e5568e67b6b4079d0427d10a51383ccc7fc7230785152e24cfa3deaf
MD5 1a77a3b1a97fcb4065a608f477bbd6fc
BLAKE2b-256 7ddca6e1d8560f207c155c2ee3860eebbb1590759048ff3d186c88b6ef507f26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc9c51920f736b65c3df2089c63dd4c91af64f253e1215dd3340760fb8b2f804
MD5 465c5077fbed18fdcfa3982c365aef90
BLAKE2b-256 cb376862eaaeb58848ed3f8c2cf71f31220b25a44178435745002eb88c02c702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86811967760cb77d3c4c627d3e11a631d42dfbf08e4152222de57bba4554af21
MD5 6daaeed58c36f2a4ef5d8251ccb9319f
BLAKE2b-256 67d17e0e37d5432e890fec5d4cf2936307afb7e1dd0a510ae90b95130a0895e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.113-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.113-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7717975ee101e7192dd27da64e03b4c8d78960034ad594b6dc21aabe3ba98973
MD5 f91ab5c80e3e29ef16eb45d825e0520e
BLAKE2b-256 ca7d17cead503f875dc181509e029835d7a0eb275433356301f9ae98078c1542

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.113-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.113-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 562626fed7684d73b155690dfeec46af9f70e04fae528409196c10999ea940e6
MD5 bd7c0fd723cb67161056d0398b5c93fc
BLAKE2b-256 99fa5ca75948831044c814ae69eea732f35248b83fcf8fedf01c35ddcf2e5319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.113-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90e0912801397535d2e6acd632a13ecb66e89732fa92c962a7218eba94e63a2d
MD5 ba33bc18b8e51be44c69ae37ef523242
BLAKE2b-256 c832ee29e091e6b7b72bf5942859e63920ddfe2a7687043ac7ad3e1e0530dd42

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