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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.243-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.243-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.243-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 90e6f8a152684037096f91370a69bfebca5d4f1addf1d2a2afb3a1e261b911b0
MD5 2e699572f3c608c4e7259b85ba757dd7
BLAKE2b-256 7ddf2d847ba5fddee5da7ebfa113dd4d9618e1ff07673bfd22e9de2eef6e6250

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c20eeb56e98010f01f694f6b0f13617a7ce496f2fc9d1cad89029b61dc9db443
MD5 66be69052479592359f03028f96c656c
BLAKE2b-256 a02ec59c47b64572e0896bde2432c9fea50c36823ba89cc2284b8cb249d9b3d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.243-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.243-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76484fa312af99f3bf942b1c1b1a469bcb8f0a19460945947d809e214a798056
MD5 e9a5470cc2d5ae200ef80dc1acf401bc
BLAKE2b-256 07e3af53fa30c82d7351930fc3894d573797db8b1909f64620dfb0fd3fc5515f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4343ce91a940fce718b8847cc01d0843d3c0fee52fe100c742db756222b7b599
MD5 242a18534411806d5dd876890e3a0a7d
BLAKE2b-256 253b37fcc069f882f42964cb872de85a2e04889327f7dea6d8350b9432b8ca3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 495c39941791d3f6cd10be881180e5641091c4ecc8bafe0e6d5a2a360db55629
MD5 d214c6badaa6adeba7e49c6ff9591c2e
BLAKE2b-256 6d3c72150d3cbace7f0679cad7683e8fad3eb1f1190ff755ab97da6488501da1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3c3a815d95d0fe97b94fda2e6338fe262ee2c6f33606f62a1dac6129dec757da
MD5 f60d91eef5c87ca56cbd64baee79d135
BLAKE2b-256 2e30fc447c4470a80f9fd761e4a8b396dea69a5984ac8e51a2e6d1a9cabff3df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.243-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.243-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39fd96903037bd985366d2d569ea914744b9bb8e6f20141682e8e46d858f3499
MD5 22736c9e8f8f46a4480b246c19a5d1ae
BLAKE2b-256 9029c2056c69359efd9fe38047235d1f80fd20a52d2e3a8054be533b2f9b0914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52975c36d07440c84b4fd6e68c419e450c887efe7e6d8796f071de0e7c36d278
MD5 f36c1aa3d0e2d18cb47eefddf2605574
BLAKE2b-256 5d84c6f402c25f7acb50233cee42deef282e348f633e8d74a082ee3a814d55e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d32ecfb224144678a07600152fd2c23ff1d037f5facf09b1e0cc9a7e61a3e061
MD5 0fac954ca3ad866e096f52081ba5520d
BLAKE2b-256 e0485c2b4198b1dd412f83eb223bb0c0a1e9e5a025a4b94c1c578f288a24689b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5f744ee86624e6c3d081ff06ca71e7dcbcffaa1b864a993c024d7d1a37baab27
MD5 6e5e9da314c252e602cc19d6b3965039
BLAKE2b-256 04500fd83106fc576145e8c2b25d0d627baa36d888b2d67bdfd4a0741ea4c409

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.243-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.243-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14c54fa71adb7291ab049b35d811530263b42f17fef5bfe67bedbf8377553520
MD5 1fe84ad4107435921cf306d68e3e9e7a
BLAKE2b-256 ac6310690f2c6932b4d7e4c2669475cdedafa2aa1aca705ffc23968bec9c0a83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c6feb56e1ac342afa0208b63132fbcc28bffa9ac16b719dc9554cbb8cddf904
MD5 38d5ef4d21e7edf1c41326e101676842
BLAKE2b-256 162a6ee031c8c48df3d0a47939f3d57d0bf4451f05ad8d90a308ba0250caea04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4b5301e5e5dd2fdf8fce30eb09a9686b7e6fdca5c76d46602f51a7a0a2b8a925
MD5 6baeb71230c03363757a9555b7ace120
BLAKE2b-256 6697a50d91f866bd66ef133495ce82682910cfa243253a70b1d516f4afd89cf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f45dd1bdd6fd97c65661fe5b3d56d1f457668ba6650919a6b3840867fe0797cb
MD5 f743d07f7a3e02c43ca36f506bb7d782
BLAKE2b-256 ea2ce5bd10573159d1f498790a1e83d48d327189db1a0a2165e15eac46d91622

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.243-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.243-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee4bbf66fea6c3fd11d7becbb995e0230708f2cac2cdb0ae6f0e010d09ca5301
MD5 04409f9cf2971a2203ddb3e84b15d1c6
BLAKE2b-256 7ed6af20e26b4356f93ed0a2882f656054f07a1b9bb1c9511e0392114c644903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b88147e5ca7cc3edec7844f101aba2fb3a6efba2f1876a60f554e4f8ef8359b5
MD5 b98677e4666fc478d6a4b1577ebac0c7
BLAKE2b-256 0be03e7a822b3c43264e19a31e2ec47ce5f5bb9fc17f065e79218af646567e1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d407a2bdadaab44c666d3e9b071303067d2f2ba15df90c6665e5bb3308f1a981
MD5 6a1c1e25140d1c0553689769d73124ea
BLAKE2b-256 bde8d1d32ddb6236c068a682f335d2ffe0850092c3fa8a3d24e3ef04c4c18c77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.243-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.243-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ed0a3ca8b6bdb715910b0ea57905b64cf5cbe082b9b9446347aebdf0f7d50f53
MD5 028b74675598959c234d2ab80c83dd30
BLAKE2b-256 bbb75ebc194313a228a825d996c806c4c54a07b59e0c79f3c7ef25042849794c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.243-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.243-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d5ff1148637c0405447a7a816bd529412c1d9ad2986aca62d9fe02240222af7
MD5 45f01563ba85938b7d928eb9c8c0e371
BLAKE2b-256 4f1089097c81714ed5eb3e9e2a2c403c5529404c15f8ec2b24f5223e722d4429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.243-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f8340cd25f0c02e9a1711c60873d8ae2f0e58a937be2c1b905970059b43ce84
MD5 8ca38f799e237f0bb45b75bcb55eb268
BLAKE2b-256 6f2685f4d70fe6963b68bb55842898dad37d991e04d2e989b66f04cb24fc3e50

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