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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.391-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.391-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.391-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.391-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.391-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8a2023135323b57a28b3288a9716adf069a7c6908cef5a810496754a9c4bb7f
MD5 674d957b94f35d694b58a27360f6ba29
BLAKE2b-256 559b0afbbe3cf578addd033cd64f5ecbdca198012acf1b0556bdf4985d5be976

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1ba27afdae0022aa2069f447dc63922b703e9794fb642bf372ca0965855aa76b
MD5 1392f442059ba0ba4f64771fdf64e62d
BLAKE2b-256 03ff7070ca4fbc198053da146b50a58efff45e50d6142ed7052c7db15933ea62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.391-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.391-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8438656fb4e8688d8e06183359eccc6fc988feb96721cde5732484b8f7d8dd44
MD5 82b7e99ed353a4a05d2bda473f542bf1
BLAKE2b-256 f8b83450277352b6af340e456261c4aee5aec14a2584c67998901e5fd08ae5ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6201c657b9ed26523e4963e3b95ded1fa1091b1ee98bb457c4862312f9d0d0f4
MD5 fa09845220901aded26113668e0d6fd1
BLAKE2b-256 0352e916acfca7c2f5e5e208c6f445dc25fa4f14bafee9e8349dc0a1dcc74188

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5d3a585701669755adab20a574565350a89aa0074bfd620579491e8e15790e24
MD5 d310c2191fa672306bdc52b2f8e5f26e
BLAKE2b-256 93241af5e9644a815808851bf62f715e1dd4e4323c98a98924b204d2e3a2586c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 694ac2b773251b53cfd01ec0fb2d23a8302f0464d5a1d205d009a3a4a8281246
MD5 1d28d10809167d40df54209d193d2d18
BLAKE2b-256 9fc60bfee4215fa33383a069b2a226efa69ab8f43655cd69a86294adab827312

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.391-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.391-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32b27ee2b3b0b4f0cc64aa53100a1d890f30d1cb33b56b60d8ff9c01ad698d2b
MD5 2940eaaf29b6d4b278f1a2bc69dd0cb7
BLAKE2b-256 0c8f0954f17ba606c6a0db740d8390b461ed60f1685f21492a9a687eb207c5b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bc19d0351efc539c5c077e623902485cae441d625c0034236d2bf17c93d1838
MD5 188efe45c3be2b124bc8d4c309c3a8b8
BLAKE2b-256 e236490c30d8823a4a48d0b895e6545c7f0bc9ee0237eae34c889797e0c34b45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2931bf60e20f3bdb135bb674b692db4c5e1ca6c339b19d92271e0d6c224b7f51
MD5 19c34537aa286e68bb74e24d448a43e5
BLAKE2b-256 2aa80da41d612a27619a3e2d1a4b84f81662e5420ec8b28cb6a257beecbf9549

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3f851c038f10d0bba19ef54ceaf5cb30dc55c86e7f9628e808cdce4169f7611c
MD5 afc356661c6f5e44deffc0f982185a7b
BLAKE2b-256 d424df0fb3b90be38335c87152de9b18ebbd2275661a96f86b678d9d30dd08b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.391-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.391-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f2fe15f87f077bd459a4dc9414dec29166cfcedb0250081b78803313cc8c1ca
MD5 36d543bdb732c6f6b675cad1b7d85e8e
BLAKE2b-256 39a5efa15b75a62bdb9307099165045a7654d691e09b59333b993646b5ff73fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 612a67dd983d07d38fc5e36ffabb1f5715120f307f4104cd0ec0eae9c1c54272
MD5 f566766c43d7a0fdea67b9e652ab5ebe
BLAKE2b-256 991b4d5aa158fd177f27a6a2272852429ab2d0252545bab3c2e53f1204470333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7ad73fb94d791ea5eb57836725c41f14308b67c8b582d3b78d20b0ea3d7cad48
MD5 35e1889aed1ebcc649a643c7696a6b55
BLAKE2b-256 ae238d9111ceafc36cdcbc1ea7d8e286606a4c8307cd034e3617effe4cd59bac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e05ff852de0ac5dfcd605840c24462fa7890bc9cf1b509137a81e55febb07dd8
MD5 e7d5f39cd47ba8eb40e49c3ca4e3aec8
BLAKE2b-256 24d40bed22283659b2a554c0ff38cfaccead2df1536a105a0a58e6bc2c8e3520

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.391-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.391-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5178b6b1fa2414eca70bd7392e50b8c867a31a4f941e48194e83fda2cd78a7f5
MD5 40c707ffd4d6b2f2942d80e8de0654b4
BLAKE2b-256 c0ccdb96fed9867142a38a67709099494ff47573147c11d7262348a72e45c0b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c99b52b73b3fc051f660146ddafdbd85d3e6fc9354cd250fa98f580698150b3
MD5 ab2ffd00ce39a60fdfc895635a110d82
BLAKE2b-256 a2cace3df25dfaee7c2fd1f56d269e5b1cad3a81df512c51f05d3891b080bdd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c456a3c85d35b17f88e7d5266b9832000953f3aeee419702a878c05fde5ee6eb
MD5 7ce6df156a3634cafc7ff346fab9c33e
BLAKE2b-256 0ec8ad82a6e5cf51431cdd7cd767cbae3da67cb70f836f6056c223cfa9e7c962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.391-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.391-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6e188726f19fc4994d5397370c6a38f1884fbf15521b3956d2379fce97362cc5
MD5 e374693fd24e68e9c176fd4dd1bb3e0e
BLAKE2b-256 c60caddf9d1386bd90ad075b898040c089ea56c115b1c059e710def7342be7ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.391-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.391-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9fbbfe8dc378800d1cbafe8fd272352f07b714d789655f43751583e786f22b97
MD5 4bb642e9b57398e926176057e29a4555
BLAKE2b-256 beda94d61abaeead9d01b3a99772d9ade9d960e1a63c2516440d7338aec8f49e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.391-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62dc095c36c6cf81273caa5718d53ec1210ea9cba74e5d97b4b0b4bc6beb3c78
MD5 9c2f36aaef094d62350fcd6371850c4b
BLAKE2b-256 a86fa672b2baff18f19649f9d49084acf5c32d1811067dabb5005d7b636456fa

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