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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.687-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.687-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.687-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.687-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51885ad8c257aba9608663e20a878a6e85d46471b857ee2026e65f68e098bf48
MD5 305d75d4dd0dec88220bae3369004fb2
BLAKE2b-256 699382424d3c87298ce453f18abb5ec6324542bad92da1dca91b9e18db640092

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-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.687-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b0acf027d96b1b5c5407f175386a782abb0c9b28e56a7acfb3965340ad68155e
MD5 eaf1c5ecb48ac39fef4f0059969c0953
BLAKE2b-256 11f7568267c723c172b418a44e74da556b740d43e7ecb6f6e39f5ececba6efba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.687-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.687-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8aca4ddbde69aa79daee09854f32841d5fac3ccde8305c6a3d41031b472fbfa
MD5 fd2f353b0b1e0d2ddbc89dc9f7f94796
BLAKE2b-256 6cbceb5a33e2530749e5c3b5f54f58fa0501b7000d817cc362ec4c823ca3eff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1269147d1b6343898ff6995f6869fa56d30e062429a9f50a2054d355a94ee018
MD5 d5125cec68a77555c944239744df5ed1
BLAKE2b-256 89227ceda6bcab97104dbc0af66b03fdcd5a95a3f9ffb5001c7f7829132cffbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3edfc5bcff7cfb32eae6a059d078b325dd544912fe548052df27e9a9660ba8df
MD5 58b55ff1f58b3e8ca15705619ac047c0
BLAKE2b-256 97b862e93e60d62a3a627df472d7976be98beaefedd106fae0db2702945352d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-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.687-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9d7aa371c389464d28551c742c6f45a798b017e01d0331e3f77c32eac206ad99
MD5 497dcfbb45f4825498b0c6f6d88b3062
BLAKE2b-256 6e11b61de24f9f3695cfb1be6c91355cf29f06ba580d4d7bbfab031cc9dcf157

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.687-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.687-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4b22a00e79c8da91951c72ea6618103a98c724e8d2e3c2ecfae81de91fb2171
MD5 a274eb2985258dd68e6afd18a753143b
BLAKE2b-256 ace30929c71822b5055d79c6bc7a2276102c985355231f6208d6ff6c6d25950c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bdda74a78b0842495614a2a6422d859f8ddf1ec67848b35576df3102b7833f8
MD5 c2517d15f4732e90b10ee788f298f8d7
BLAKE2b-256 e1fda4534738eff6d31da9004edf5c14004f858b74245c65d98d7b95cb15e2d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 84bfdfd011d67f4d4200bbfc6b6165fab3c2a071d9cd336b6f80efbfdfb178fa
MD5 8be508227fede7b2a62fb4ab836f0d14
BLAKE2b-256 846ec9092e5801aa17e844b09090f9c8b1f520e4c93848094bf3914d69b7f4b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.687-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 690ad8a10a4e77628350a3783949ebffe206da8f89f1d34a15ccc6394724afd5
MD5 4288edd6fe9f5497c1c93afa8d64986d
BLAKE2b-256 596b284c8b9a38c84a702257687f1c30f4a5c1819ffdb0ac87e0070c821c7d03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.687-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.687-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 511c90b686c396697e70031eb15a1e103186b91f4653c6ec6005b3cb74c171a5
MD5 d9b2b769acba0cf68ce90d641862e8c8
BLAKE2b-256 dbfc1d8a852ae9c4e658951ac4bf28bba26cdae4735977849221ef042d7c2ef4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f54cc0434a9c82e1fd3aa7d23d04140cf5041be2b141acc8ce0fd794a013f903
MD5 56ab2724e7d34ee1f42d6a08ae8a4bac
BLAKE2b-256 8a3bb9a031b756148149e30d0f3fc6ff5b0fe04336a4636668e424adffde3c8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-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.687-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8cf7dd505c37dcb8de0d97647f66b934c407ffc5c29d11061d45137008607030
MD5 a1a9c364a4588e48898aa3a7f00bd5bf
BLAKE2b-256 9dc8fcde236a7be22641b28f74ba3f30605a43984a9294cd091334da5fe88a20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-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.687-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a6adb647dbade585e4ab6ee8d8c6a188d1503a6c56b6112bdf60c59a945f3963
MD5 f27b14f495f6cdeefaf327c60b66aa91
BLAKE2b-256 599199dc6d9cf6dd88e39df15ddc2d933b74254c59862c46cf80145883c7896b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.687-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.687-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ba668f31328a49709b86cbeb2497670abfef92c5e21818f3aa14d8689a14c73
MD5 b7df731cb19203dc4d0dc379366ff7d8
BLAKE2b-256 77f1dfdb0724f68a8a554a3c46b31d3a21a2d34ff6094a1eff5cbba0d4d20916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b45eec6689f725f23ac06d8235f99489266de8f621cb6ea5de1d02cee68c8369
MD5 9e506e9e408ec964693c8dd0bf0176f0
BLAKE2b-256 2359905b5664b32fcb1994c00e2438645110196ac75329f23af31b9723d364b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-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.687-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e2c09cb2fa56c09839b0f4079f4d606a8461176696c422c626044ac76ac52da7
MD5 3c95063ce8fcac4bbfd179fd868ca25f
BLAKE2b-256 082bf8afbcbf76ad1056cb38180f1fcefbfc82a2db3c0a29ac9eee550057c03a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.687-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.687-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 857f935641d9ad5887d80f669f1d42b74637d5ae99b6e784df37ad8e3d2ef6ab
MD5 6a4baf345a65c339ccd01b8a70a37db2
BLAKE2b-256 f23e50f5d97ea17dee96c84eebfcb2083105e9caa1536becd9e84e0bf52bd691

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.687-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.687-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6565bb9c613839d3ff93904b6bc161cdb7b2dbef4608aa87b2df1a0ad1e77561
MD5 179ad57d7b662696848c99f6076b4fb8
BLAKE2b-256 9eb0e402c8a99a3888c4caf4b29d3cab9c9e9bbc8ff0e0daa1e6488c1971b76d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.687-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a41aa3e2bc74a8945ef8f3d9b995fd75a1aa63a46940b7831e080740d8da7425
MD5 b391a1aea5ace2743b169d07df8602d9
BLAKE2b-256 9c920e477e54e303d8b67b28e4bba3c2a292a153966f479e08ebae5c0b2e8df0

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