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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.26-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.26-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

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

simple_equ-1.4.26-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.26-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.26-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.26-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.26-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.26-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.26-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.26-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.26-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.26-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.26-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.26-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.26-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.26-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.26-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.26-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.26-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.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.4.26-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3a7d2f293ccefd47b56b16fc2149c6f25df1e12ef57f1703bfece9e4163bb823
MD5 b2eac4c88f250027a6c2ee5ed451ca8c
BLAKE2b-256 99de7863514eb9fc2914b27bf13f60a4b3db33a384e57f57befc7333a9bffee3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.26-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 75ac588b8840abd805c0a4cad68615a5df67a6ca668740fe96e599e20cd332da
MD5 ef302ca4758467c2d421608a9916a1c7
BLAKE2b-256 2aeb933de867e2eaff12df35b54e0af4de3ab6e741be457ab215c58719acdcc4

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.26-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.4.26-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b622a139507690fe15e9344c9d4cf45601b43da93622c44a1959a12a1f561d47
MD5 50464fbaefe42052739fe5e032b4c0f9
BLAKE2b-256 810613448113ce8f42ad855d814322b33424b640778190edd12ad0bb1914529d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.26-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94409448310fca1ff1916a508cc8a28c84d63b019283c11481b7ae218d354fde
MD5 c95d51ba4d6d8ae657c4e92bb38769c4
BLAKE2b-256 c756e40dcfe99dde4919f23b979bf4e14f1a97a59d5eb183b788df9650c7760a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.26-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 233f54c52417d306bba9cff1d3d1434c0726f5930d83679f131149d326f47f6f
MD5 c3a5f80de9c9ce208e0f0c03f8c238f0
BLAKE2b-256 400652ecc320a90b001853d2c9e125f1408e5660e83bd94a87d20c2afe9726a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.26-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cee7a599e21109c867a73a99c7e11b51195f5c87f730c65118ce5923ad24bd8d
MD5 1cac2fdc2ca6ab4be3fe9049f8b09d0d
BLAKE2b-256 8af5105f16e019e0d0c86c119ac54d90aaa2096962b8b713ab3aa316ddd306fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.26-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.4.26-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 548b5a067be29e163015ed4fd9746e3e393182db7f33c55c839178bce2d20db3
MD5 75e4294e93083b26c312b2b52741554f
BLAKE2b-256 5ff4111e9b4689f0f89776e93def0cf9ccfe52e8d5467883890e59449f373e8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.26-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08b7714251ec83e78cd40158f883d0fd61f8b8305e2b048211b23c740053d8dc
MD5 9f8b10a328551e5e1d7afb9384a139f1
BLAKE2b-256 149e91d8ba1c2f60aef5f62c5714271ae50710678ea5759baa22369034a15609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.26-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8c4340c10b96855e82d2f40a46c50605126fcca6284464197379b8b23f419d3e
MD5 64ec01edc4de62ebe19b7a952710eb7a
BLAKE2b-256 d6fba27f274090d430244e02181852bfd2fd37bf0dd7cf6f9cac7afcab66e719

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.26-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 882701df0f7be6c1cd01998d1ec3db2ee0b57062adc35ce6689bb3dfd710caae
MD5 b68efcb88c1e96eb997fb25fe844023d
BLAKE2b-256 918427e3e9d9624ad3e877829e4922c73e6521365092af493fec5e2eb050823a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.26-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.4.26-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ae2040a36a59e2ef51833997795e7c65d6fe76c5971fa83f4269465b8235841
MD5 6bc4647f9656045e70addfd4d4ed013b
BLAKE2b-256 8f42d89bf2e8369554bc4bf47b1d2209306a81c96ba5d3933e5c35f48f023c7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.26-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c6b71985ed188030d3e1e6eb2af046ce5064d8f0105611ba50b26c763b7916a
MD5 be83b4d415f799368238c3f65d70a6fd
BLAKE2b-256 65b49701d6c39d23fbb4953ae1a74ff9de86f1cea3949d5773721e934f1bf6e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.26-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea0990fdc880e62b4bdf90f5908dcccf5431e5fade502677b1570536eca2d080
MD5 ea9e3ef6c45e1c2bc77949e291b4a9a1
BLAKE2b-256 753edaa3654826d76daf2fff17bbc2977953ea58069be22c4d37e9247e84c316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.26-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5777c98a6be1ac2468bf8bc4221102df705b898efa8422d5841341a9621200e9
MD5 a02b173a649180f68d0424da0ff75083
BLAKE2b-256 858e7673e3a1c9a00eda65680b1ac789c683c98f83bcb0be3333a16905468736

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.26-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.4.26-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9d71371fc8850459e3a915fdb9241f5b7096f6dc3ecd68c610279913689307d
MD5 f8ee69b49a9d3d6da101b7204fa1f33d
BLAKE2b-256 ae8b532188d97fbac6d5ccdbbacd0aba892a67033041340516d340c596d3313b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.26-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3a581e85dcc68d0e68377703ae480e480eea233b419afd4304c6113553d1ddc
MD5 3731c4beb1243d7f3d01bab787f232a0
BLAKE2b-256 7c464f6b3b2ba9bc4a46b4e2df409fa1cec828439863f6a35884fe378dc18554

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.26-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4dbe5d2668b4a2255be80e66c268c54beac74d9cb460769eda9f932e3e1a6c83
MD5 d43dc37f95733e9a01d39eaf0b420222
BLAKE2b-256 7cc10e88cae079a3f543044af5a8043736428181aa1aadb8fe9b4f312c7508a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.26-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.26-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c5062cbe80da7a0fd589fd39ba928f2cf86421ae0e9fbea1d8419ea2a4522bbf
MD5 0264432874488cff669ce6a57485a3db
BLAKE2b-256 1da2399426fb1f6abf736da9871f7b069709919423242ced46de15ce5be4753b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.26-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.4.26-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b68bde20d6f873a48e9300f4ac2830a8b0b75aba508bc79d01cfa7ab21ef280b
MD5 07ddbd04d44b169d450d5edafb829998
BLAKE2b-256 5c6738d0880bde1436e209116f28358926763d54e6fb27e24a08fa70847a6268

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.26-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6dc4413333cbd75179b22a82ddbba0f70f3cf1e235227eaccfa80603a6b6fb33
MD5 8a189b6a25d9c714d95f0011fff0822f
BLAKE2b-256 3ea47a2b4cf43843699aa0809cc91c053b70f78fedecd0e15102b72789b268ff

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