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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.599-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.599-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.599-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2bf83e2b8b5b5ec1ff63e54256bf60c36af79b6d2aeaaf40ac2b4128890fd53c
MD5 1831f7ead43c616e1495777337931fee
BLAKE2b-256 11f6dee77c45a758a833547fa9bdc375d488d563159655a5fed748a941f03463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b2806c4185afcb6e74dc51fc975d2f712a172daec1ce3a440dd18b60e65a0050
MD5 59b2cea6945d6119dccb86470bf44870
BLAKE2b-256 0a7daf860e3a3ede5c33044b12fb8843f9221b8bc5b2e5a0e5938334720530ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.599-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.599-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b443e80e0d073d0aeb142dd1e2d2489225c9337696c69f7abe4651a327dd5308
MD5 a4136c1d99cf6daeb02a720d69060117
BLAKE2b-256 461e5c571db180b4f49aecd402fa2ee9cd5caeb12250daef4ca404b5d8d2edb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9c0d65e816c74d4de8db4444f919b3c3bb365b4b4a5c5fba27a37f3a7237fd4
MD5 cfe65a229f91af5c01c5566d1269de3d
BLAKE2b-256 450fddff758667ea226c4435f85ec5c0f95ff62f763aef3ab65dafaccce0d53f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a020efce88ff99edc051ab61db7eea667fa9ba512aaf570d53a131fd223f9de0
MD5 d88a877ce2db156340cbedf3cf4e1402
BLAKE2b-256 d767421c09e4d9e21f5150e3be7b49c656382ff17d09b3f07e6d3f01f1eb1506

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 40b8c538a9110108cb9aa5cba120a187ff2a41ea6317ed3c9cba93f1ef43a547
MD5 8f5db15da77f4da9acca1d50abc829f6
BLAKE2b-256 6878960f5f3eacecffd974174b0926129390f8d2d5c66415927d204ed1c22001

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.599-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.599-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0549dbe4c4f42eedc2b968a196d52f7773aeeba8dcf8891c533b3948af6f831
MD5 67ed0d2888ea5f64e2a7d890ccb68823
BLAKE2b-256 4eb6528bb59fd86698dc985f594b8bf3617942f2c9bc4b29679bf27cf4220371

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5e5dbb8a14de372eb4ca91616f7e080a84b4b8354aa704b89e1cb83ef665dbd
MD5 fc2805419b14595c6b5a9fcbe3cfb7b2
BLAKE2b-256 e36cab85326aa2665cda5652d603ba100968c8cc89fe2c3602e153aecb207096

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b28216e2cf3191c3b10938cf8e37cc9b6b634f1a3647d95176540f763e7e4ca7
MD5 2775bb4277f35fb0a964f5454e00c761
BLAKE2b-256 e4b1b24d612540644505430c25d32314da54c6a4e8d893ebccf7d12bf0815040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7dd69966a9fe7127414ec3fd5972500ee6d24af5e163420068813d89403ae0d3
MD5 ee55f4d7a25bef7794cc5f0bbb27cfd0
BLAKE2b-256 8ca068a38b6a26513425bad354035774e2eefd128b7a477b87cf81c5bdf4e901

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.599-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.599-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 733c6ec7ab8971e9f06409e592b48a9df9f27ec86c694c76b94082a78f82801a
MD5 d454ebbaf0d60553ca18180511460447
BLAKE2b-256 9733a7efb67dd8d576aba8c5bc7158bc8b22e16520a766cf3ddda111958a7a79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62ab4f09d020cee382ace81b1d7eb3608eeb85bc530322e2334ee6de14422428
MD5 5e2fa7696225a410d756cf7534e1328a
BLAKE2b-256 bfcec34cee2cf0a5f5c7e729c6aa9118c32fc61a26072f161c3b45029b399aba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8bb33a0710c4350a390d37eafefca3f47755117fba5361d392b6d0807f8f23a6
MD5 caa407d09a4428be0c46fa39ad2466d2
BLAKE2b-256 008aae64d288d1a9112419f0191783504aa380551437ddaab2344defd2ea46e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1ab4d9b3b7d2443730ea622a9b859e88169cf970e582ca418d78b9ebc4745cd1
MD5 e8def81884a2eafebec70828eb67b1f3
BLAKE2b-256 02f24aa243cd6d795b369453fde6670bd6b268962c25bb1a9314c641b204b927

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.599-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.599-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d7a6e1eade159aa1d2525b7cefc3b97697f7d62d937c4c7f54efd55f12a357a
MD5 88bf3a0a5c43138d1e52abec231ee129
BLAKE2b-256 9e4db9107374db1a5c5bf265604e5b85552f6a1ab1808624aba8f6f1f7ba69a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54cfb2552fc8de08f1312310917cc01d13dd424be96551e999ab9c078c9ef7ce
MD5 66bffeba75019bff8613d3913f9ee706
BLAKE2b-256 aa01c908ec3f9be5b7af9880f62af87d6b27423c60da73c637b879c762ee4430

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 689f4da8d284190c870c8624b34d63b3cfd9aa4fdb82e8a2667219d030136639
MD5 91e0d1a25e59841a4c09192f088adbb6
BLAKE2b-256 e1b1b6ae56ffc45380dad08711f7b7e5127ff12aff753fc6ef7e34872a0dc776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.599-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.599-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0507e2c9ab673c2f8944afba115b2a41c283598fbd927589329f0eb82fb7989b
MD5 82ab0a80ebf74575cc59fb0bdb1f3c9c
BLAKE2b-256 48021bb9f444e260c3f4a631b84d6773d48ee3e83e6ae956d8cd71bcfa1fce55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.599-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.599-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7653e55b259aa4ea5be86e156ed9c4ca4d1f76f7dbc7fe5c3767b5e9a07d483f
MD5 d7e4447f5d682e41ef5e684df76a548c
BLAKE2b-256 f62bcf66b16626384f3db7be4f15ba60158c289fcc0a8e5c3b1ff64a96ce0d19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.599-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efd6809b7cc3d344b561a66cdfa53d71b9e546fcefb2f8cba4de1e5521c27eb2
MD5 5dfa5949a09e7de7a5969dfc1f96be87
BLAKE2b-256 e87ddd6c843b3be482aef2ed55e5153dda07cce240a5d84044f83e90878025b4

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