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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.853-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.853-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.853-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec4c94475e5b5f907d02ef04424a6a8e3ca17ade679fd67bd4daae4b0b90ee7d
MD5 c4a55c9598a5780aea4c173336fc05e1
BLAKE2b-256 e6ec78b16e216ea7e039beeb4bd6303787b6b654dcfe1e640962acccee5916d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0e76c029383d76a604e4d8f7eb927e3025b25ffaee648b1f09401a7f8f60d7b0
MD5 8e6adde8cc576f529e438e89267f8d38
BLAKE2b-256 7f016543a7831de6532726b570e48f13eafdceff1598c2916ca0dd1c26b4bfd7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.853-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.853-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20b498ea0b7b8dada16f5e4f122bfdb612863d8dabff5a400d1cb39cb07f4b3c
MD5 78fc65a2370046df58632fb1cbc96259
BLAKE2b-256 615661d38509bab8ce3d1d144d289c48228936a0e200d729befba4d6f2505ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6aa6202286e4e002f6efbb6e5c94223fed8f7012e0dd465ba3352b60fb1070c4
MD5 9bc6cffa12eda1d32d0d640eedc648c1
BLAKE2b-256 b8f10330a0499a86341d69f622bc912eeb5e09bf520e0643c59d9ee40c0686a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1f35754f17b0522d95c4da0715420b86aa85f283d4721a2aa078f0fbb63bdab
MD5 cdcde254070f79cd314f8b22f79b3af8
BLAKE2b-256 a3303c928fe2fa809e97d97e9368684e6467d6ff4a10b9739c0e517766ab0560

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 414d81fc5e5a144ca185692ee20352161bd2ddb3d439656310a4e061bc7db562
MD5 73acd9f5f2332e8dd039f380147274bd
BLAKE2b-256 a27fe2e5d2fd29593318fd7064315175ee8b16dbd3fe053bf666c963ee0a0ffb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.853-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.853-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6215b12d5e29178139a209c14c5af7b0f2122f9fbb2b0d1225dd8323fefa8abd
MD5 f31c8e130fde3fe41622dedec3a6f221
BLAKE2b-256 aaaf993eec26a61f5beaf360c59009e8e22b007aa07640b7058dacbb6d3ebfcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4f2a02b4e14f0991863fc2a02b71bd70794c614dd2711d69566db5fec2edd20
MD5 b95703c7c308a7a5bef55b7a010ca57f
BLAKE2b-256 10cba424081348a52206224025d8f370109c1faf186141ff4afed8d53deea52b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 40381896bf12eabbf81aa0301ff2178c4f04000ee604681b1838e571f7d3ef41
MD5 8ad66920594dc8b43d9ceb8cad8e3d86
BLAKE2b-256 5e0c72a3e122a39eb04df2daa03fdded9947a2eb29ecff171b800381a8d13edb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d543ba75712804b2100e79e5ebb943c670f5d58cdc8b1ba577c6dde0e6f2b9e5
MD5 5e8add001aa7f504d4c8f87cf93bc721
BLAKE2b-256 af2491cc2c06c7e237f347557a709229006d73b9541087e698ae132ee3960325

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.853-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.853-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb53ead4f6a586dcd6a8d8d45f5206681ef422b364b4882303f4c3d76cbbccce
MD5 4cff1e49e0a979213887591357a24c53
BLAKE2b-256 6b2ef273d34952fce2bb5f3b953b768a6328e83d12e3bd87fbed0afc2d76e50a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4d08f14a150578d899a642017f3ab0ef561973377369e40e7723af3a7d57de0
MD5 20a01718b6b509badffc7427afb4c19e
BLAKE2b-256 7a0733483e91b9bb0b2b8838b203925892a7e7f67556f11bd1a991acd77d001f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e5c7b9ff9ccd37163521746b1e5e519d5e75f20f66d19e069379eb8380977953
MD5 cf145cb72a170f54fcff9c6546e0e614
BLAKE2b-256 d21d5be02e11e472b53f9bc33efd60a046eadae56c4a9d04ef20ab71cd25352b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7d53c05fb4ad012d5650b72c37fbd503188b1ff342c8c1c6f9f81349c73d46a1
MD5 cebed7888c90399f88ebbdb54163a1a1
BLAKE2b-256 37c959e182a2de754a13f26ebe5b2298746e02494e2a260c139a4f7db73d488a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.853-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.853-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4a6531b4078a0ee89f3d0876b17f7c0816db6c325fb8fd0423388d19f1cdfe40
MD5 1e3d49cd1e2e127488e8b8f164a5d335
BLAKE2b-256 d2635dbeeaa88fde260b7c0ac62d9fb5ac9aa866169124f9b6c0fa315c04c4ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de3e43acabc062f7bd0b9676d8741417b83f08516caea7b3ea7945e9e9f09c11
MD5 f3f625e0e9e16b0b34acf9d3b48aca7b
BLAKE2b-256 a7d71866c48d0071b97a83a2c4811e04190258a45b30aa19e0ea4a98264bed89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e6e7169f7fffe1f682d7e3b0ec09acef0103a5469f4347a58abcf1d893f80fa0
MD5 e275971486c936dd25b36a7be2655025
BLAKE2b-256 6af7fc4b2dfe871c9b98835f4895b40b7633f32d4d3337f423b83499d3fa9d42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.853-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.853-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8db1c523a283d3a271f9dbc155a06e5bd80049804b657bf8b5d4289e11a1cf11
MD5 8ed160638dad194e13e2d2cdf8cde72e
BLAKE2b-256 9e6e1d34d1a0dabd6c7a19ff304be801d90a1973d1f262f98aa84b41edf3183d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.853-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.853-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c261158a0935bd4a8973ed8e3eb2e8e27571c6a5a9d832528629d19636746a8
MD5 bfd53592fd70188847e07d7ff0901ce9
BLAKE2b-256 9f2399f4ccd0854e8500a763cbfb906b44db927d131ad06865c4838adc1ccdde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.853-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9798a25e646b9087d53ce56e2fb314d1be38a58cbcb06cc11931a4e30f287fc
MD5 1045db6c675be64901f7b7ced911bac4
BLAKE2b-256 48d98103c4c4e42b120e5d2a99827284df81c86cf05c84f5fbf8aa4e836ea48b

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