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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.48-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.48-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.48-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.48-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.48-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.48-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.48-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.48-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.48-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.48-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.48-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.48-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.48-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.48-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.48-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.48-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.48-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.48-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.48-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.48-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.48-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.12, 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.2.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fff8c2dd42522d3e33f617e520e83b5f84dafe5fbc131fa571bffe3833c70a80
MD5 7aad901f4e7bafc6fa3321a809a402a7
BLAKE2b-256 2776c4c75b816656724a82371616063c21029b52e7e51986a04bd47956175738

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.48-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3bf036972528372d3d5278f8233ad548955c3f18c7ed4fb26bb5e91603f0e881
MD5 ce88eadf5c786bd72520d45f73fb6656
BLAKE2b-256 d1e40bd54dc7144398b82ecf47e6e2c20905e4b4720644401a78f8e79154a471

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.48-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.2.48-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a954ee443c820aa6fa5f72f0c78021f44fb8accb397810b1e1c55d6f1d583965
MD5 5279c285e7bf49c443519e5923da8639
BLAKE2b-256 7af578b43ee7fb6dc147b04eb1f5e050b1f4bcd66b6351a74908d8a76de06475

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.48-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d87c24f2dab317b5098101edda2430d8cc40b2a816b8df67d7b91c5e0c221351
MD5 b991a10f63664b0626591fd6c5334cd2
BLAKE2b-256 f695c20988dce490421e2699af1f36ece29b12252039af499f8517a83991b281

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.11, 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.2.48-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d85594697e46e66176850200a339ff1212fe93766dbb6931496d78d7b91fa1ad
MD5 8f040334dcf4ccd1df511c00690b7cfb
BLAKE2b-256 90aac993b1e388cb1b1384261b149fc76a7d600f3abe5972a3be272190699fb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.48-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8bc9bfeb38375e68a2653dcd7a36ef596482a9ea2051848c13dd9ef5fa542f1e
MD5 48e0ff611d3f72116ce6512988170bf2
BLAKE2b-256 a9125f12bce0965ae5a5d10f1df173259fe682daf1ebcd8ec31473ed93426d22

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.48-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.2.48-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c43aa9fb408700002595198ecb82c87379211110818188f281694db0f27cdd70
MD5 4c44e350a26159ac16d6b730d3054b10
BLAKE2b-256 1a0c819c05ef4b2c759cbab6574634699cf4972ea55965e4e42537fb8e2cd8a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.48-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40914a22b8ca43d14180511bea72353affa161bcbb0f2645a965ba9a5ef51eec
MD5 8fdc843cbcac7aa61ade535cffab91ff
BLAKE2b-256 3042ef46e0dd25acca8a042e4bee81cc42081252e3b02725e1e72ba9e1d8c282

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.10, 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.2.48-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c8d1a2080e331a7ab612ea2222ffcc604fe8388546b2a6af54ab781d8cb27fac
MD5 49a4b3baa8d14c6832fe3c1fa69021bf
BLAKE2b-256 4acc4c83cdd6bd85784c37f6d9388aad0e8e305a7110758739e2b27e9265bec5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.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.2.48-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 86a0b3906f1224a280e563914250bf06d59015b26ec565274cb3be1eb81a2fd2
MD5 9c64583d51529d3ec2d9bf51cc99de85
BLAKE2b-256 4e0bdb2ff52120fd2a9b69a4052c9e8f0d742f98e65b36921e97a4cb86cc1173

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.48-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.2.48-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14cccbc91d50692ced5acdfefe7b4f73b1d4a6f524def40449c9416c861749af
MD5 1c7a6b4ca9ffe2014a82a0831c0ffe0d
BLAKE2b-256 44c4c637f582b3ad353a97222fda65f2ba0b89d7ebf66964582c0891a378290f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.48-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7aa80ddbe375f7a6141ce034533cca9de0bc2a697e00e79fa01587ed46f10ce3
MD5 6270d96f6201c0fb969f9a62d9876dab
BLAKE2b-256 fd275f02118f49aae7b1e6fd3d0e02da1d50d8f0909de1142ff954930f5851b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.48-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0f3578ab2180ee444d284bb5592abffd246a5598f4ccd836a04a4aadad3b0571
MD5 d8d4e15fc17ecec9253870d2db901967
BLAKE2b-256 39470df4797a22070cf18225d051f820776adaa46fdd134c1346c7d8dbd25639

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.48-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 594f4d0ab0dcd890ac4c224d66fe243f6b902cd64df26376fb590a1520fd2117
MD5 be01293bb00bd415a273d1b20380e438
BLAKE2b-256 34fc9b2789480dc15ce7ba985746f9381ac04272e3b83c337cafac28ffb8851f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.48-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.2.48-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b0e2f9ec5062f9d57f991b87861630945b96b8a84bb1e69d747449c0028ab7cf
MD5 d1c78a665d60a1a08cc35484b7e69f70
BLAKE2b-256 786836782511671afe2a444e11fde464a5ed17aaf8e71fc5e649a4eeb9947e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.48-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3c2b7f597b17581e5fa21fb21ca1ab5c0d6104f22d97b412143b35d880e4403
MD5 047b308f8a20525cd34ea3f61de7f3ba
BLAKE2b-256 5317a635e67d2ac247b53c7e71e8cd4c5fbbcd36029d211ecc86af2ab0a08bcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.48-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fd247e9ce9b295b5abc81b453a378d8570bafd5dd145795d5971ff1433a222a3
MD5 0d0a56c4708b12849a6da65e4e633a1f
BLAKE2b-256 19ebd0dab934e3d803b246e41757e1109a2c26ade9a3ef1c3ad65f7ce4ab8e94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.48-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.48-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bae2299f17c884e665cbbb01c5593ac1ceaa4e20664ccf8d04b9fd89860064d5
MD5 02ec187abf61fcde23eb28bcac2727d5
BLAKE2b-256 e4e57b79dd658324f4b420d927142eb71aba22813711eefb2f27f6138190b253

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.48-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.2.48-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb2c2cbd801818e97547e1a3e57080f0d7ce10cd8ebc8156ea9c83fc9ad212d8
MD5 a36eb454db76dd05cfdc204c68835867
BLAKE2b-256 221bbdf8c707d603674bd413cd20a3a085927b36edfa6f0b76d825d93c0aab3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.48-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9878c09db89f6fd4999f50c98207d4fe3fd4b2920e20125c8c8d807de1533eb3
MD5 ad097aff513aa832c3db7dcedcf78bd9
BLAKE2b-256 cc99ae94607896bc4620ada11f202d05b407a8e8e165ec3efabfe2bc373c7a24

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