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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.590-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.590-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.590-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e2252a1e4aabe9502e7275fa96cc3bdf684fff827ba9d2128c6e267c95e176af
MD5 10d7cfe63787bc3dcd08a0d6d1329d26
BLAKE2b-256 7aba42f8c619a29ad818a36378fd61408b7d02a3f9008f8dd05f8bd5b4595e20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 af36554c5adecc9bdb78731221c5627d6e9e5482df6efb90cbe6b4941d547720
MD5 e12cbd106efce320c3135a42424015bc
BLAKE2b-256 5ebde531468735fbfb553f65166af5b0b72d92311f48d00b950a27aa067e26bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.590-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.590-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc334e3e1a8fe0ea36a9b78529e6930a587bf9c12e8c57cea719068baacdee5e
MD5 32e17df374e2b203f68cb1d150e69b59
BLAKE2b-256 d06d828c894d2bafd3185b45fef873299e09f5ec98ceb3d742fc48ecb1dfbc63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a851cc177784ebb77aeb2922e5fdb2312d3017886d68893276150c434aa850df
MD5 720b972edbc6186beda41960bbba90a3
BLAKE2b-256 3f4ce35b202cf0a20f5086ca2626c6801b7ec6e1211274524edce1415d5b098a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9058205f1624009ef3081ef07ab44e067f10d3c6d719cd61e48ddc769bba409e
MD5 1bbe20f2fcfc2686c5d075d4473f326d
BLAKE2b-256 36b4ab8dcfb1c999e7f1393cc2a8a5ac3a90e9d96aef5c2af2f2bc9f09fc7ad8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 734ddd972b2f58038151576bc7fdade6109fb97eda6fa5a66062aa1a6f7556d8
MD5 60fe7555e78f38f62e28dbfdadb20ec7
BLAKE2b-256 ba2a99fcfb8cdce66c84f21ca9018a0a816854d838cf257bb83b1b9b726e1c7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.590-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.590-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9a83fb6f399ff8f839f6f6ec36210e214e0ff000f7ce2e3fe525ac5b83ac268
MD5 e5f2a59206e85858df93e51312a469d7
BLAKE2b-256 7c7955d49db93fdf3f9bc4286f111e45bc825c801e05b32932b31bca278907ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 884ea73eac44d9850cf8da1c7c27c2706a1de311d1e78b943b008bfa1fd4e76f
MD5 6c163d5af7259dfafb2534aae22caf26
BLAKE2b-256 141bdd6396a6781d245aafeea3c6ceeb9b77599f6551492b40a0ce2bc3f4a0b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7bf1ef3ac433b50fb222ae199f65fd2b623557a28b8979d7a9bc28e6b9cdf9ad
MD5 7f3e4d193ced46097102ede70502a581
BLAKE2b-256 175b4efeefdf2e7e280847c1ed12a031bbc042948be73d0fde7d6cd4517dc2c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1b75b12379b2cdbe7006d86f67d6ed7e92cca1809af1a63ea61b4b7fde83bf04
MD5 30affecdcb3759f4e344bae997c0f004
BLAKE2b-256 c623672d684da918025b3c7ab6cd2065a65717c3211cecb84d02b6979f926e43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.590-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.590-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17ce6783c3076874318e6e212233d80969f42abc0884e709cd64f437b78a9451
MD5 8769067a731efb9e4be9ef567e088f03
BLAKE2b-256 e61a594e1c6f6684d0b094d6ba6167f82fd3fff6fda0897ee15bf71623911287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82829c3e0a195e4f67f2aa47d315269d7089165bf9da2cb45a14b057338565c8
MD5 1d5773314bce0a3fd85e642b6344f952
BLAKE2b-256 9a7e0543b8c3c9b2b3951d577a81457eaa59d2e0b8915fb4ce3844351acb4285

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5b2842d528cc948b469ac9a7989fbe5691e5a459fb6a145e9ff7c299bf4b825d
MD5 b1dd9cbb02a5fb159ec9275e3b01ca48
BLAKE2b-256 6c19018a146c935b58f8e96ada830f5807957c109e412484f3d72514ca15ef78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 83ef407a444663d07a1a285e388aed5f72ff9d227fa3f6d03c908ab7c3035466
MD5 29e596a188f469833663ec810c220d37
BLAKE2b-256 7b094e15f5cd9c43238bf9dc7551468ea7c459a8b2c85829016fe1f5064f534c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.590-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.590-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 caceccf0e16f03c99f0d1a2a1fb58d0f6afc296ffce88030055cdf128c2ae2e9
MD5 dbae8f38422ead501c52d9c9d1cda09d
BLAKE2b-256 59619b0ffd3c3de072a9d883fbbb5620af6a8c5427c871c9c6bf8da700e05c40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98383c0ca794c0c0fa123f664a51442b3f6118b46b79fc763a62765a71780fc8
MD5 f11479da7cef7df2842df1602e237a58
BLAKE2b-256 3e19308b8f11ea641efaad179d8e3d31e90609c66296d8f97dc871a3250e31d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e4b44740fdabb2096e90a49c389590bcbcfc12b017aeeb2b92abce88857c0d8d
MD5 a69aef17ebaeb6b69dde2d30d75c82dc
BLAKE2b-256 fb9efb1ee75677da47c9b3be65e52d9163cdeb504f4c28770653246c90ad2048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.590-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.590-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fbc745c9c34ba409045fd202eaf9ccdac9166f58a198589d86e142bb3bb576da
MD5 d4bfd4fe0aca7d1ade63415512ae3245
BLAKE2b-256 1e8108fa593a1d4385ef0bd55b31318c1d6379fa2119c47a3654b81e6cbc6024

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.590-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.590-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67b18235aa231be618c06ff5e2f31893c8daa1066be1a564d2891448e13e8223
MD5 89a88fa02034c25f6d1d321d0bc45be8
BLAKE2b-256 9f0c2b3c6eef1242441903266daa85ac22667c8c8094051c796ab7dd47b5ee7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.590-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee21c2dd84f222c1eac65159eb4ef79630a9bada760110a4e0a36900527fbae2
MD5 e5ddc17afa81184a1b60060f4157a972
BLAKE2b-256 85d231ed02e961a172603d4631646e367d3ab4030fb046a25d7dce350c35e4d2

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