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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.805-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.805-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.805-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4859732040999a2c8f7a8d6b4680010c14882ed11ab5a05c978d9985668ea732
MD5 47796a792afb9232cb193d5b3d094662
BLAKE2b-256 4212b10a27cf51e1a457d197b5b3fec1c16ffd11c0edab9c2fb4d55c35fefcc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1d18eaec3ab6ee909a691b4ae87d5444cf311db763f821c1065c43a3262d5210
MD5 b99aeb20d0a52fb362e287f253d58cb2
BLAKE2b-256 999c870a5e1a51a3c2ed504aab1357a65900ecfc23ccfd79335603f071a9fa82

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.805-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.805-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a17e9a875673fbe4f2fea644d2bd98d4edb979175e8b777676ab7239ba646997
MD5 f3054dd3afa73c816031b1d870678f35
BLAKE2b-256 0b2b400bb30e84b2c2efcfcf28e0bdcdd53daa5b47a053e6854d571cb2a0561d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54b074d33e1a7e2293cbbaaab5ebe49ab0bf2b0fe9eeb28e1f4c1b92f8847766
MD5 3d5aa33cfcf9dd4cbfcf4cb2672899a8
BLAKE2b-256 0bab88cd2e573ec03b660a576e3fd8a5aaea6b505d20994877631559a6f129e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b2141287df3df4cacad3c6c0860aa927be84afdcb6ec35d62d5136eb0b34bd31
MD5 554113660a29ce8f363a1d06ed6c1ffd
BLAKE2b-256 20395b1f69e41a0fd0b7b0579b7f5cfe50c17b2e35b450dd0f2cf918c8b9f683

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c27326eb621640976342d812aeafb20fab802dfe743cd95a189ed8b9488b9f08
MD5 bebfbe4104145879b37a70294178b131
BLAKE2b-256 568afb2b2504800335d9284937dee8427ff38b6360bcac968073655b9b1caeb5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.805-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.805-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58b8d089dfdf617cf6dfc87d5b1d731ae4d26da74ab571990c8528c2c4fa9c78
MD5 820d9d7adda6853405993b7c2d4c573b
BLAKE2b-256 3f0ddff4788d8f54113c2745645c838ab9c417e1c7de00ea5e33d15a9193d275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e1663acfecdd9bd4d80abfe074d0bb8674646cf0da0751ada9a28c9cff07629
MD5 a4a441d554547383e64d6aee1ff4fd95
BLAKE2b-256 9e86c43b4a04b323578cefdaacdab54f3f0752b33228c5bcf4f63b3baecb22b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3759d5a6f6b37d212d29c03469afa5043f1a40c3a34a3a5ab0bec8fb61bf8de2
MD5 f73b8005f52408e7ed891570c8dd3c31
BLAKE2b-256 f70931adcf3bbed82e63ed9148088449db787044cff098a4ae0db5730d2586b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4dd5569ff95d2f50cf5d13b07d8640a88c7fc7a2f07d4815e8c048742ac8435f
MD5 9a898d322a47a147cc8cb63851fe59eb
BLAKE2b-256 44d0fc41c14026998b20df8c0d7982b69e0bc5ce5863eb7c90081f624e30b043

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.805-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.805-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04607cf1e69cb0ff25756c5afe8662929bea11037b7e160bd2b333d19c9048ed
MD5 85e5ccdf5b3006c280fee652140345f8
BLAKE2b-256 e45784e1c75cf5a9d426369a83038e03b10fa69d24e43180d2d0702e26746558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0582916c7f3c04bd9d116844ea6753622d23a6eda300093c0cbe062dea81d59
MD5 23cf055501c4ae567a483b97b7713277
BLAKE2b-256 63e1e111faa4ed2bdf708a6eb5b86bf2e17f8d433a20121ff972923f7789be52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 92953121b0a77e14addb8965468ca1b87244d7c0c59a69e6f56371e3172c7ca7
MD5 2724dd66e9df5a8384860784c3a29cce
BLAKE2b-256 a81c1ba587e75b4681050639b403760324bb078fcb9de7c1e7f149b32243731d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bf4106215f65d0ee33b93bf91735919e9831e137091a7987d400e68be6f338c2
MD5 341eaec55a483ffa3505aa0842e9d93e
BLAKE2b-256 31b2daee44844c484563811b6993905a71b325cf841c2bfda3096c254ea7bed5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.805-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.805-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abefb1d2b8bf426b0f4085d18139ec36430a8989bca72183aa8bec6fcf38a653
MD5 0c14f4948f032c885d342f1a3d15c35e
BLAKE2b-256 dc5bbe520089dde5fe6c8009bca5ab30501a7a9fe4abff2d02f27ec829076caf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2126f756c2f13fb5b018dae6c1095e882e0eb51428b5b30d0a4f56f4a7f351f
MD5 30a413d3c27ff7fa68e951937468df23
BLAKE2b-256 a4f5b3d3730a0dada3e4d32fbc446d89a5777564fec0b64f38fdd000029be555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ad01bb678d63113c66e1651886eacad8f316cd7659df62196f11cb6770c51775
MD5 7a6e18fcf13239451cfc0288740f1882
BLAKE2b-256 e67a5f6844deaf71dc7e0335d0d390498fb0ae6b900d21cc04e340b218484eef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.805-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.805-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b7b03d36a14c5178ccd8dc50eddf3a804520f25f25f39518c8609eca2a803ba0
MD5 fec7ea1ecb0dbed1b021c3568b74005e
BLAKE2b-256 ec3b91c166e0ab8772f0b9046e3deefe96288cac7dd99a2536a32716e3c8d2df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.805-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.805-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b386ef1e6aecd6f48412396806eb40e2a61ea8ea9737e707f3074223255bc5aa
MD5 3febe25ea6b03b3bf3345f29f7550967
BLAKE2b-256 29a35595b1c8db54ac0f21b7660771596bca02cfc0bf8c32d0ac7fa3419e7a70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.805-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efb8241f8d77f9ebe71afb34f29778c331fcd6a9b8c1d767be56ac17e6067499
MD5 93773b3fb10706fe07f0dd0d7dba8b3a
BLAKE2b-256 cb75b02325ab4c71c6832bdef147e4a392239dec73eea08fce08254bd2529dc2

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