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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.357-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.357-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.357-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.357-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 593fbd79cb05e6d14d6dd2179984ede8aa86d57ecc220f9acf99d8aa059e1511
MD5 4c74a5500af6da4b9ee9f5992dae6d2f
BLAKE2b-256 f4b00e586f00b59e3574730213af50b8ad5200b467fe0524fa44b5f090a4c5a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-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.357-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 085e877f24d2fbbeafd961ae89f17ac4edb7dc79e66d3aff0e2e346adfbdeb34
MD5 6280a1c6d22b921e249b1e26a6aebf5e
BLAKE2b-256 58aab59b3b5b2793af75ea2ec4988c59f5f31084fe67e0b05bfaf064016f210b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.357-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.357-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d251146970a7b6ae4899c7452686452aaacc6e403082b53fb7b048304de5fff
MD5 c2dfd483724ed5465d1c1df9343c334e
BLAKE2b-256 6b07c00a9c891175e03169254f47fdfbb6155649c98e4645997dfa9ca3f35fa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f477d4efd3d10811e7229fc1bb873404eb9a8b2dd510e3b8bf4daf2593d94b89
MD5 252d2279e73cfa7d829c06ed56d5cf6f
BLAKE2b-256 c96d32a057b2c9506dfb069307a2508f3603203020fcd4d239fecac53bae0e69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6a8e2d74b5371487a928907530c7f2ab31046524ced9248b2b96cebe0968460c
MD5 0ef02442108cf1cb1b5c4e3272ec7cfc
BLAKE2b-256 9f872f5ff4d70d4fa75b3fb13f0ec8c01771b997f5a5e573096a474a7fd889b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-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.357-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f801f2b6713fd6021abb159ceea924ccded7a0e64d4ec3e6edf4e76fb651c995
MD5 a0ec51cd2032acfa69d4401752c9e0c8
BLAKE2b-256 57cd2fe755c830432726ee82fa49dd2a6493822824ad073da3743a57af1bbada

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.357-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.357-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a22e3d90efca6f1b818127a00c97b46e4ed6281c09d79728ea0e432b0879b467
MD5 32ecc7fae7bd6f7a1556afe0aac60833
BLAKE2b-256 936f3b1a769962ab559a573ac5e7456e443ad01dd538fb210776daabcf4c4e43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45140cbcef1811d224e76c43853f0adc75cfff769c7fe53d426930fcbd65bf59
MD5 445b5c2758d0425f82b7a24611267a96
BLAKE2b-256 c9268a641c4018e261d27b65240d86d0b8493a57f1ba3036d98d42eab14a59f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f9cd0bb8f71913284f0d87c7e99481906d2cf52455ac04f12ce3c699f16721ed
MD5 7a390693b53a21b504eb080e00027bc9
BLAKE2b-256 ea9b8e475e9284dbceb1997d25f34db2375cb4ee6cf85aedb41c687e20c707c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-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.357-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1abea2e99c6c8879d91a475a7c0d5bd8f554e12ab0e325d105884e2fe1005502
MD5 6db492251a4136293f4072dff711fe08
BLAKE2b-256 d5a0e6f4543feec22441e4d73efd726394bd834d8ec221ec14b02d12b881694b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.357-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.357-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff85dd34ad9f7854980167851d451c6f0a8bc5a1dd0a35d877c4326f6e7eb877
MD5 ef9066a52db6ae2a7d0bbb2289d68229
BLAKE2b-256 ca66cf9d28a331863c3c709d104ae7befaab24070751e22f8707804524aed899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5edc22004cd2ac9029a858f165767571ead5051954098fb52ad2f1f682109bb7
MD5 68b49a5ed5449ae9e61bb0676898ce95
BLAKE2b-256 139879e5ca24aca0e5104fe5ef4b8414492eca39ebbacbba5a404d632e4db328

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-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.357-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 071339c03ddf832f11df577ce056c4ba790c0a2235e53aa4073ef86162850f85
MD5 9894062de2ade778449f9907b7fd5dc1
BLAKE2b-256 4e32c0f7626f9df8ebdb9c984b6a3c86c062d27ac9fb96d6e3a1f127c2ec1c5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.357-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f06e7459a8bd3b216e93be4253e4f7f78a924f046e1731e5341b7ebac1b5f577
MD5 939234b0af52f40862278a21733843c0
BLAKE2b-256 dd0027544626ed069dd22db168a8a945641f761abe14f4fd32f6061cca4e6a26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.357-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.357-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 186873807c260b9870e5f35efbbb76177afde454ed549ae908a74e8aeb151267
MD5 c0524c4fb239d8475b3cd340c1fa92de
BLAKE2b-256 7ec1f9f5b3257d9ca3e7c69e345019abd433426c47db569a6fd599211fdde43a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3e802ebb367be3adb239507b4e530776564432a17b1afba73471472a6311b5b
MD5 c602cf41b91df89cdde913f469bc4811
BLAKE2b-256 7f0506db5c01cb8a525200f60e56b0de9ebd567edfaee2825a844d8a9d35c598

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-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.357-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c9353b7a109bcffa52038a6e54ccaa42514210ab65ba84e9e30343c5810da60e
MD5 d9461f2b4e9bc75be70b13d8854a3670
BLAKE2b-256 f1726b060ad3eac454fcb8a943c0d4e740dd45301168c941bb76513401b4d9f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.357-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.357-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cc30a8be7459e410a8b26cedf9495924ec56842385c0abffb769b3e6a41b6947
MD5 4ad52530eed02f3171acc363b234982d
BLAKE2b-256 bf40f469ac8b29a43709c0db42e64ce7de87eb569c8ffec8e3b5ae57b28cc2f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.357-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.357-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3416456ea606b9acd6212b7e249498fb70e78cdf04355ecb5ab801857ca7024f
MD5 bf68ed075b7a71f5322680c7a4ae38dd
BLAKE2b-256 889ab2536d5c2d60b04b091941cf464377132a9882957509362288aa5213b1e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.357-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d1b8165cd1f32a812bb3dc7733d91bbbad8456f2138137e82a75bd173f88218
MD5 d0dcc330b83f0ef0dcd851973274c688
BLAKE2b-256 da7bbbd3751a2cf7a6d91cd8111c90f74d5dc39d3ff413cf9656c03a9c3e3b3d

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