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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.415-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.415-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.415-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95d8c12312cfbab901c1dd928bd9cb71b41ddaba745edd5204819f2666226a8c
MD5 ad71f9d7a35410c688803fcb16e91bd0
BLAKE2b-256 4086d750a339ce51b3aebbd45ed36c9eb7960f5ceff7edf92dda5278a71fd972

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5382ed4f83f6c35463f4769e8941e023ff3465d1d043afb21d100f8aba5bb66a
MD5 f7cfe569896d30efbdd223b2160400d1
BLAKE2b-256 f1fe051085c44280891a64a4f56c87c5891b6036ab60566c3e6122a81ac1499b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.415-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.415-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 08513e8f4cb56c36f6b9a6e8427d0aa48f4eade4999a1b5e9b7c357de3280812
MD5 fe2867f53aec031eca486edc7f9a8f76
BLAKE2b-256 271399776b737e3d79adb58950b68bea716e5b8d30aa3d3777b8e065d05e6dd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 966aedd180f21925a86c282abb10ea1f670cc810d6a79ec2cac244841fc38905
MD5 139b21150ab1c8fb44998697c7d6479e
BLAKE2b-256 2f7b9cb07e314bd78d1cb9aa92046d859e5f8329d5ff1afbc44bbb30e0d658a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d0d3f8a295c38bb2d3c89c845f57e7a9305878b1e499191ed823f1a5e269cf51
MD5 1e58e943409426a04a32971c3ee1af44
BLAKE2b-256 1bcf1700563697b572d8d9fa2ed32a03069bdcf615232db4df13430489837668

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3b5e48b583f9aa08d23ee3e5d8ddc8256a1f41830e9d3b6201cabeb8528d02a7
MD5 0d6746864916ad690e756d012721545a
BLAKE2b-256 d3dc8b48d347a0688bcd7323f27ed85bfe429a59c7f1687568b5a9dd8f73ba10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.415-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.415-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2409eea939d5be6e0d51bdcd94908cd706bec316bec7366b8bc0901d3477ab79
MD5 dc204346c0f4d5588c9301dfd08a9f4a
BLAKE2b-256 e042b8efd37a8ae40fea73a22d26794b25fdef6048cf575986ae995847d8b735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 166096cac7f99735ce957c26135df25d8cf73ed403374ab21fef975a1313d455
MD5 d2a406892c14a2f69d46cf2283d19e2c
BLAKE2b-256 fc56a54428d0f200b651a0175d4896f8bf82b14ed30dfa93f150ec318fc6e333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 893a2787f429e63e164b2b7d51be08c66c283f04e6f2e7e469ba43579a353b60
MD5 6424b79e1ba0bcc3ee537853097cbdb3
BLAKE2b-256 034547fcc05977a69ec26b5dc0aa354c1e0d398d39e802717f83865b968693ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9fe6a9bbab1adddf225d71f61a320797032588ce10fb355291572c5e0a46da8c
MD5 39290fd9efcd6bf21a4ad384466778c0
BLAKE2b-256 dfb375a9757b5700325b58c012c855097c6bbd1406bac18e94aea6c9345a4232

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.415-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.415-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f99b83368c588be451f54b7c33cd654abb3c0c6667d0999f91a971e1df2187d3
MD5 adc6568da36c7d14f6993e17c3322cf1
BLAKE2b-256 9b47bd80632e0bbc0f3b088f9def228c2ab48ba5b796d200d2dd670e260ca60a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c98c968f9d5b0108bdb601f4a8c2bae47827ff18179df0a38996c10ae6db1b9
MD5 2453479a40f5333f72a1d6e7a37ba7f9
BLAKE2b-256 61389c58e320984c2fcf86fbdb506d73f0e1e226a7e389aca5537f6baebcc90e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 51dca5016cc4e6c1788a13821a6dc050535a844f4bfddbc3b690d7383a14fe77
MD5 6b2e4250b1c3b68b1d459a01e8dad1ee
BLAKE2b-256 cf1ec6d570df04dd4258234dd88fb29e02c1d5013b9cc536c980ffa472f87cad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2b23cf2f06e20fb047a2ad76ca921dbd56bdcdbade8e06a8dc84842822f7d3b3
MD5 c3a292774d61bd78146a49fde8a0954a
BLAKE2b-256 963ee61f3f91e2ca2cc14b87d6e5ef240a3b4155576b5ebba90acea0835ca1f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.415-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.415-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85b3489870fc1ab59f6a36aad1553fb3bdc2fd051a4e2d9a8cae76a615244cdc
MD5 01bb9d7c6d29f961407396b633118703
BLAKE2b-256 44da1fd23626e5d59719cbb1bd73add920f089f7095da7750f58edf0ce99c0ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39afa404b6a7134b1d577135b9f7785d1195b8fac20fa6495af10087a7fb7ad3
MD5 e2eef425d84305ca08b74f6620c12572
BLAKE2b-256 483deb1ac8c052beaaceaf91b191e4c38b8400d0d478b76736ea408179322ca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 34672e88273a463c4e8c115b5aa92be3dd16a290325dda7fe0c35b25c988085e
MD5 67ea7a04367d2efeb6b2fef5d3ccfc60
BLAKE2b-256 8cb243450457811e2dbcda9d2a8491d340667eebd94010a6be4d1b79ee4bcb66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.415-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.415-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d935e0feccebe18d96d3fd1be4701012456d8650a4e7fe82a6ef2b9aeb2991ee
MD5 a5e36d7ea8b486b80c5a42a0076c5f5e
BLAKE2b-256 fcae19f468ad3795891c21590eac7b852ec5f97ab8545b404e86a219cc2898aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.415-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.415-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21ed4f0576ed623a0ace1699239bac1cf1694151ec11b345398010ffd01c3748
MD5 634893c16b56a15e5e0a5e743e34e89d
BLAKE2b-256 f8700865d6457fcf030b4854274c52022dd8d26d28adfe0d44b172572b11b6a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.415-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e06bb0e03c8efe6346305d6827cb5d085376941bdd8a7422bfb13a7a4e070626
MD5 36f153a49261a2bbbe5cb240eca2c0cc
BLAKE2b-256 bd4cf5660608315286dbc33471689036d4f348ac71f9b2c10de4f072aeaa7e50

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