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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.457-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.457-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.457-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ab136da47c2cb9b8a16d32aac88445329358d22753e8a922f01900f2b80bfa07
MD5 06a5d3f6df165b6eead11b9664e51fa7
BLAKE2b-256 f1e1c7d3fd50e30c326f499b2753312b366223f0292ec33524edcffe7be01f00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 da36936274240d93a4cf0aa79f0e868c1e34764d2051505ec533a1e8ba2e52ee
MD5 ceb2cc9a5133ace7548d63a01ce8a2ce
BLAKE2b-256 9254ef321cec1f347923e503e18e9b79fbacbd55bfc689952382e154d858bf24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.457-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.457-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea597fba2d2804c98a97a376ddd9180706fb3f9dd4b73b2d0407e7fd3e46da60
MD5 ef12a6d58121d23845988a5918325f7b
BLAKE2b-256 41da02a87d17d8a095e425ff11561517862050542008cbfc125b33daf49d250d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0f1f59a6156d3d3d7856b849fcf263c7ab059e5fe9f9826e1f7f83520da290c
MD5 268b569b14643abd9e3a588a89a11487
BLAKE2b-256 7a51b474bbb6cac58ed4dabe4a327ccaec73964f7e2e3eef61788e9f9ae561be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3ff3ccc57424de29387ee9b1cb38280de9ca9f4c640fe26a98308ced5b89ff0
MD5 c969e39bf308865d08c93c43c327fe6f
BLAKE2b-256 a8194aac53034201366d06bff8c5b44400b2c4b89784ba9f32bd55babe9c5cec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a02aa9744b372dff0bc64d0b8c5f542451f06f6344dd7ed54d2b5fa278784f6c
MD5 925c10490fd0bc744a7044ac4acd87b3
BLAKE2b-256 d345e9169447eab75e02e0cc1925a6bd6531faa5effcdc264265582c0dd0ce47

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.457-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.457-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce3830630e187a8b0d4df401c170b3689cc803e5b45b44e0796e56a1fb87173c
MD5 2eb6bfbce9cbf43f3b193f00dc04b8b7
BLAKE2b-256 1be81dba7cdd6c287b03106d998b62cd54dcc94f594d2b22bd99c6ea34093028

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d7da60a471b61c9b653c34575af2070217f309aea0dbe778ea66ed6cd3ccfef
MD5 efa0ab9e5849fd2a731ee547727572e4
BLAKE2b-256 1ab9b7aa304525017998bbcad4c36e8c144e1f919dd883a0c3d87d7c30c0d4a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 07f161f716453a0400509dd4b68f15ff15f1bd3a6e6ef5528d6910ca1913461a
MD5 0f5e18f9e2f1f72cc1dff9463872cfe9
BLAKE2b-256 716b459792e3d9d5a1299f0d60a85b5b0d3ab43960fd3a54e1057cda1f4139c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0810ce90202f2c3f099fd64ea748288058a23100aae44c66a6bc755afb53a86d
MD5 6f6ed29cede89687afe931cb17173aca
BLAKE2b-256 db8038b235edfd0085c198efd8c745cde8cff7a249070db2641edd769c05fe2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.457-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.457-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed82f2c0f741308a6476375dfd8f8a70bff1c5a6219cbc3b85fd47ba4b3c9f7c
MD5 5216137e5b0815ca6d7d3edf99c8ba8b
BLAKE2b-256 4826c48c57d4d517d9bc45ed51a02f592e8ca609e322f4bfd6920f3c7c272d48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42b17888037984d615b2197f7f69e68c736817ae3a9540462c469430f0d17e1b
MD5 c3c721311d50c2f6d30c01b5292dd1ba
BLAKE2b-256 fb23603c98b10931cbcd23a28b7c89c95d06ecd70f39109bc8d3c414b1c9e8ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 19ce99bc3af88a22d4c80770f7a9107cae0d1a6a97509f6a29ec5c9d8d87c572
MD5 5708446511b4ce0a560238668c303fb3
BLAKE2b-256 a1eb4437f7b0f2dabf50d5bf89393de33d1a1c2baec0197c59b410907bcc67f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a9dc1cb5bddf5a4f9bc00f75ff4b666e570f965334945defe3d925b4d9dcf640
MD5 f83461c654839407443f1a4156a7af5c
BLAKE2b-256 001ff88792ec86b75755b1430f840e899ff398f3cf8ae398849ca80011c2cce5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.457-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.457-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 351c8645b134635a696a278f03878e8f2ca755a8d065becc64a86d4b0f77e97c
MD5 89415535bc8356687223be3f9d13343c
BLAKE2b-256 0550990523108b010acf5a5e5b35072b99a0d0088037c5426e122fc073ff57a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c219cf8140c0e3420fc3731c0dcd558a19bd5c970c5bde1fd8e46092f98f8e95
MD5 7b9ca38b6730e9bead604fe5ba91a033
BLAKE2b-256 344261b2abfe34baf6710b2d15e2b401add170932e897949b7ff25a97a326b58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5cd07fd2edb6730735dc7c7fc9bedff03f69ab5e5585d5e316d842495fd999c2
MD5 aca68b99e9d1a950cc6f12a8daa3dbfb
BLAKE2b-256 f2f7e42aeae413206cf361f17fc8079559bb7d0532e10176bb7903a003daadca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.457-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.457-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7aaba480755d9d863e5255c091630f6c3e281c59cc7cb6c6f147b7c81860c2fa
MD5 0c34cc2bf3af2192a2fd9ad11d2733a7
BLAKE2b-256 e7753e1d836db265f2afda0b393c28fc9bf3480648653f04ec6c6ba3d1271967

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.457-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.457-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 906aa6dd6b85277855c84a81954a82d4fc0845755fde279037aecc2f9090ab6e
MD5 34eab0a273bbb0373f93d68794ba2613
BLAKE2b-256 335f5fab9f04e2cd81f935ab3f361c495e141343318e9e7bf068490e1169a4e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.457-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 134d2e1567fe8f3ec22ba26ead01a7afba9128aefd26fa1d2571d43e9405f130
MD5 d68b41e272046218ed1294a5b319d980
BLAKE2b-256 1a99e166d4f8af95286089ec8b03b158d9d4400a8d35194e54418bbb3788efb0

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