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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.860-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.860-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.860-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9b9d57db16f0993afe53b3624259dd130f79259658bdb9d76bd5c52eb535f8d9
MD5 0591d8bfaf0672846987c70c7d0a36ec
BLAKE2b-256 5adc5349fe272dffab589eead0f24d58b2697bb7ac0e69eed33ac8a1ae1dd09c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 732de1778426f9e05624615f7c56f7da4b8d918cbd5143b45b8c3cad8f6d4e33
MD5 d3d98874dcabd3a6e9772d8dc54b111f
BLAKE2b-256 887ff4630de95a4343a71aeb53f9d8259f0693431b19865b699c7c2ffd5adf3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.860-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.860-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e439f28201474a5abf9bc876053271584dd2978f2c9bc01c9b9d5170f2b5243c
MD5 88a7dda24ab3ba6ec15bc0a12ea6f133
BLAKE2b-256 87786aec40d76dc22c2050b5dd1ec3ab622cd463086c9adc246c867bd37e2be9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fded56d1f7f1c50df2f60d3770e7515afe9d97a2a47a13ad01fc45542763e470
MD5 aff130fb73d7e59f58b01f7bdb5d7778
BLAKE2b-256 6735dd8ed370c70210b4ba5b399a911100cb211c5d8a9a9e4a6e86456f1f7229

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce0747fd5d1001c28c1bda4a8660e8e8e9a29f4f765d9b4a698d013a64ff71a8
MD5 c22996395777aa1717a101621a20e701
BLAKE2b-256 25c0d6cd1c9df639adc92862c5cce9dbabb8c19686adacb876b2c2ec6dc032c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c1c47d1fc53dfb2a0afa97a3e7cb1a9c8c12f116eef9e90e0c44367a66e4ec25
MD5 764fd132ee55a9b2213bb8b98094b578
BLAKE2b-256 0134c1081ec53a2afc59a1760d35f932e3b2262926cd2d8bedf6512544f79fe3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.860-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.860-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef6bf774f926746a275ae7732fcdcfa726c02d169eb9ce05affa7338918a8ffc
MD5 27e5e84f81a83166940c18c779f07893
BLAKE2b-256 588db52785ba3c855e9f4d0cf03762a189ab7a648b79fcda7da6856d64859366

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1027bf08dce2849c577c7e11fd1289254c56962e23fe44a897982b3d02741003
MD5 4e9b0c8c9b3a11a51cae67f67a4407fe
BLAKE2b-256 bac5e8c0bda42dc9233751c82905972dd493048d4228d7ed23d0d9f0e561b201

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aba670ad48f8e6b76d179ae305633d3b93ff70aee09b34c303dc331b463f21d1
MD5 d4dacdc1150e8da674821d96e6574ecf
BLAKE2b-256 819c88afac0633655992eac0b3892c5b9ba847e0e4c64d8ee38708bff0f54ec2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e49b5d6e1e581b2964ab786fbc492d0ba6756dd61b42cf13b7b6dca55d34d857
MD5 40d55f1dc1ad99bf6c11442882b34f88
BLAKE2b-256 ddca13a834b92db9fbd5125e1ca9677253d8e925aff86a61a672e828f6733d68

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.860-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.860-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b024f5bac3257b45583300d2b86be2468f6456897b827e6755eaf5ca1488bc47
MD5 a051fb428af82942f15f0e7d7f4d238e
BLAKE2b-256 11b97197979849b49d40dfc0f7ebbc4f71295acab0fbfed448b2e5b34d0a8545

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d12dc6e2ecf391a11c7ec7f85293b80acf379913a03b3fd4e109f9eac37cfbb
MD5 1262aefa6f3245b8acaa54c96ba31e36
BLAKE2b-256 d90980f5c35e7a1c5fc14bc537db4e449e9b18c2616f8d77034f89ee5abfbc15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 48d566b89402380017bef82136ccf47cc1e799affab78aec86ba4f3a8a4aa6eb
MD5 d9768f8fdd35b32959106cba8bdfb3f6
BLAKE2b-256 8a67644c4cffb7c433a28a20edd9b417a3a6eb21b9f5093aec1ee82ab2d42569

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 85825214bdfeb668d64d8842e51eeaf5364ffc105723fcee0742d756ca9abea6
MD5 e74540ad59408b7cd3f1e52c87b304ff
BLAKE2b-256 96e3645a779eec6d357699549a42be5afb1557e8eb1f926f147091e6c7f4c13a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.860-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.860-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43cd18c1bb700b97ebde15986406d5152e38683872bdb3750a43f408b3e43d86
MD5 47a8953ed15aff50231856e35e092cc9
BLAKE2b-256 abf5d55965d107f1c096a5da02d47336388b3fa541ec62dbeb92f76d9a91ee11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67fbe282bd7f70d92ffe2b99e66ad63600bd050bdd11c10934c96e0d86987aeb
MD5 246915261c28ab82f30698912317a15f
BLAKE2b-256 264506090a5e5e67d196164773237294e4a4216cdf45321501ce88e1da0ac851

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 07bbded08e04ca9c44dca287746d1eed94173d4c61eefa9129481c5d4e34c815
MD5 42a185f57eeea7efa76200d514c07574
BLAKE2b-256 5e5fdd8e66f4740e8aa56053903bb0ea54f3b243955581f22039c871ec448819

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.860-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.860-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 07200e3c7727e4d009b4a73f884c4e0413469fd1c86c7465aeae04c649f66408
MD5 0afc0b50429e21c959834b630ece264a
BLAKE2b-256 98926b9f74f5df38f1c0c79f4d3e48d6f63a80027b9d19a6122d0bce2fc96034

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.860-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.860-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e5915fb19a3d18bcd77f76ad06b4b8c7e1653a2794173e8eae8feb1f4af34c6
MD5 547ab1d1e3e73e6aaf01ea6fd0a8b12f
BLAKE2b-256 24dc62b8e115b8de0f148dc64459a0594bb09c8ef47190c9f9f9ad0cb30441de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.860-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0353648ecdac57326a85250120d1345c610ca83f66edc494f295a7ed66c7c364
MD5 c4f9b51d4d77f4ebee1469f8eea88b4c
BLAKE2b-256 904046d688e5cacf6347efec423b77425c68ef6c06b24bbbda2fe08f1084a12d

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