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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.712-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.712-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.712-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4204b6f99e450cd9000f6391c09988de8a0f766fd61cd7dd9316708c58d5c70e
MD5 7a4dcae8b3362a082567e6d0e6dd496d
BLAKE2b-256 341c37f7922a48f170f727294cd8b26e457a0be2e3ffb629dff62b88a0ba8ed6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9c40b2bc00de8583769536b49966981ed6af23710e1c6964be131dd78f7c475d
MD5 4fd70fa5c2e04de13e72997e5a8a4b13
BLAKE2b-256 65edd0026953ade32e138717b6d5a0733bcc1433687d27aad95103499c27108b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.712-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.712-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bf4877950f375b7a268a803e620f5a5483927ebb891c25568f1244f0471b67a
MD5 5e2640b4c542e05ed9fab24ef7b0ca03
BLAKE2b-256 7b54dd7ecba56188982cd1024022aead7a6687816d2b3425740a6aea78213f2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 197f65df0f4f1c319514d9ef61d2a2ec7b762064da7340557216170ccd8ff9f3
MD5 a5e16dbf44672b663e36c00eab2a02d0
BLAKE2b-256 da7457ca5f7f1ccc9a4551574ad92d23b2675795311103fbde0c2339b9d9fb77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7dc84d756aa8c0416ff102f07a0c7250d33d42155d0dc1d7694c2d25767c24cf
MD5 0b68420a993c36011b819ee76c0bfbd6
BLAKE2b-256 7e2bfc46325aadbc689bab0634eb82248bbefc4a865d2296b9b162f12b42e5b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a2b08bda7b117fd6bdf010c31c7f71f4bfdcbb11fddcee1dd90f41557be51c1c
MD5 1509fbccbaef02f858b436d7ee392242
BLAKE2b-256 f16ecbf46c357336f2e335d6fa0b7a98a90aedee76507faff69c2eb2f7d522e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.712-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.712-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6b9a38a364dae94fd311f333e8700a704580e769ce8518746362ccc589148e0
MD5 4fa74a6bd9444594b1e89f0f10c7e3c0
BLAKE2b-256 bdbaa93baefe5fa704f204d004ae222870ac0b155006c8f1b2c8576e5cc1a9ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd355410cd82e8e62bd816b7468d5e3590b2219510565bea5ce7e771f471bb4f
MD5 ee637eda2fcf330fb6e5ea763c341903
BLAKE2b-256 bc0ded614e910a948f984699c66840425828726eec9c4eb606b72d2efd950052

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e0134647a30c622f06c5128d2d7de516423886875bc5a57eec9944c896539c33
MD5 258a48ac50475e3179d0ff34252b2eca
BLAKE2b-256 0f8b21cd3048147899461563e63fc7eb8e559229a8787678826ad386d6924910

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bd1908cdb8d6314257bf317064dbd112f032b100fe5a84e887faf05da6d1258f
MD5 e35c2b84531c9d72cbcca5840be9f16c
BLAKE2b-256 20c7787d1440b49be27ca65ca32f0246f6eae7a333d7bf7a824e74dfca315f72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.712-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.712-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 202dbe888db8262a4f59742932be9c7878536726a729d51789313201a6a47f6b
MD5 4f7e3691cc4e177f5fdae3e57ca2c383
BLAKE2b-256 ad0ac9e82201a6662afb77345deeb7c7383402a0567095c6971891636dc42f80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99fd74c77b6b36b2487fa83b534259005b0bd246e5c689e9e53d2a1fc2b030d3
MD5 c641cf31a2d2c626ff0551fbc95d8c49
BLAKE2b-256 adf48f897011e859693c91d8eaff8231ca83cc7f642151f30eb2e797dd01e76f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 47d8ca57273a19b7ecfcda80311666d093d249663a097ea3a8c4ceb98f899f3e
MD5 20750ad776fa265fc6cbc38800028fc5
BLAKE2b-256 7947abdf0dc9ff52ba1b5f380b58e5af2ab43b920d5deeaca7dd05b8cfdfc888

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b5926a4081de1ede61dbc9a2097522005ef71101c07fd8c5fb44adce5e602b16
MD5 69b1db72fa01324be4df298888aa7eee
BLAKE2b-256 2c92ea73bc35f217df013d7cdd687f179705502424f188b5913b38bb31808357

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.712-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.712-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6242b2602b989559fc75aee66e20bbd637594e39466bb32a5c427432514e3aa5
MD5 4c4a35b00dc474d595e80d804d0863cc
BLAKE2b-256 c9a868c12ad893e72bc06a87263a0c2690216af85b0761d84b18587a4243c9a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3df2853d70dc55a8012a2d098c0ad0995610aa2e81c11b45c3490203eab16f21
MD5 1e7267293ba1dd6d1c865facf6ae75c4
BLAKE2b-256 7cc98f31c08b7c23cb1ae2f3f3ee633c575d89020526404f6fd3e13168663a16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0701525aab0d33282d7f61948ee0dc116e5c60bd307b5b209fb975c9d9b858f1
MD5 f2df3bfce257bda599e2072311e02c7c
BLAKE2b-256 dc5825a8afc4f30588eee2b476e097c82f13187d222ef865f539c5b05aa9f681

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.712-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.712-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d0011f10a571eadd6edeb8b80ad93c31ffe134b6d413abcd7ac187daaffbf903
MD5 5625360035cb26b0500af527f1bd066e
BLAKE2b-256 aeab2b38ed602ac6f5817c08b8a58fe4e21564c6f25e1c1c8b702580fbe558a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.712-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.712-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 428ed602e52c7db762c3896508133cc9b24b15128e545176891dd410bf6be05f
MD5 434a186413805522578492c5a6e1d0bd
BLAKE2b-256 0148b81a2b7c8b97a8453ea75b9000c5003c7bd7a401eff3c8d834f046e3130c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.712-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6514d7925b1af800ca85212ef0b0e006c9ca23326e70940653f904010113256
MD5 142624974dda89dff709434735686598
BLAKE2b-256 694f553183fa531115b403c61a983c5fe97bf3fbc4363a54518a919f920be62f

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