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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.373-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.373-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.373-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 21fc91c6db8fc1aec3c991ce78d7b3b759caa9b2cf48f649f77b03e931d2fdc3
MD5 f888826098ab86bc489ef70c73f43376
BLAKE2b-256 509bdec7b30b472bab3c4d3289668374ee06c5a7645db3d51686b35f9ad6c481

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 36a541021651636bc42c783a675e9f2f2de4b52fbcbc96f221a31152332bae8b
MD5 6142b477efcd39c97a30cbdd67337122
BLAKE2b-256 e5d052f7e1b2e223ce29b9fd5196de167fb00d700ea198c832d1dad3d1f753ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.373-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.373-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43acaf7ad6178aa434df09746d3bd24a224b1ee51c7b0f7d7ba9fc374c619a21
MD5 f6f9438a8846b5f639c4eac774cffc06
BLAKE2b-256 6b07f11226e37539f265cd89cfec8d44f6c79e98313a10db4456f73489f4fb37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ad1a0b1c5b4706b97a311680b4254d1a7554a8b082bd4e669b692e08c303aaa
MD5 3f0f1995400edaf92ee1851cba956aa9
BLAKE2b-256 16861482592b795aff536b9cfd24c1739f4c45751b5c3befdc4de131c3bceef3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f4a9018a01d25ca8624ba15eb40d21dae4465db1f7a777924b6ce7a567c62b95
MD5 5798df1721b79d1584666d9c34372730
BLAKE2b-256 706b23138041bf70ca5e08d1bd9132e46f71e8e2aa4449cf283d581ec57b84e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 30ebdefedcfc84d9b796723e6b57d705ef74f365fc033263a98f73f88ce5201c
MD5 e178d531b5f5e79a1bae460f98eb2caa
BLAKE2b-256 6b53b8f4eb8cca3add577900014df3cc3b371de4163c671bdd058fed6fc9e8bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.373-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.373-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a252aa5ace6f8c6b1f5e3977a7520596ec88f567e37cf48a8a8783b3d3ec3dcd
MD5 87158b5c4f659c31b83bad3b1abeb677
BLAKE2b-256 07548e86c61c66f0e2ca919f157ac180619281c1af52a41a22d8b0b1dd599c21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bdea09e98f437dd9ac3252b83c7067cbbcd4863499ec88d7d917e5bda0c935a
MD5 2ba898ae36b50f14400324b3f662a9c9
BLAKE2b-256 33fd715d21cd84e26dd84999312aff40c169b8ec7eab9982f119c7d76442481c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d3b6a9ade751bb4538723cd33f0a45438150eba7a511db986ba8e79070746996
MD5 4ec43addc10da1c6ec5cbd7180f1579b
BLAKE2b-256 de6249dac221f17239542525258faf6592fa7a188653b141f046414126578e85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7895fdaada136702fa1ffc57d6d9b9911c25f6d89cbd42ebe92337dbb2b9e4e3
MD5 e057ba92f7e0a166017f8959c730d59c
BLAKE2b-256 28bb21ba67865147490e2936b2e58ba78168831d7e1160ea78dbdf8a78d673eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.373-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.373-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e658d13b61c1dfda5e64dad320b2891540ad0c476f3431be63e79aeb2b603632
MD5 b67e43f19001cca1816bbf4aab813e41
BLAKE2b-256 aab8c0b09a2105e0a792c9977b020ad8c80ea708aacf3397fb87eb639d02a823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7aeff63cee1041b276c18ab90ef4f0317d13386b7d74a589c3dd927bb161625
MD5 d48347bf783208e68e47d88e9e4fbb06
BLAKE2b-256 93c29f5b5964761d78d074c0f76f7c04a5cc8ccf2d54b110c1acc37db02738d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ff367eb9d9ec3cd60f5ad2fe1a038e75c1c4dde249e06efc473d60638e7965d4
MD5 ecf804c5a3038903d528eb0e98877059
BLAKE2b-256 ddd3625dad65dce718481c161afb0bded07b982ce852f4fb33b9837a9b108cf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c96ce614088557858e3df0ae1bd95f07fe41d39148b046195c3d4fdcd9c684f0
MD5 b6908a58fefca918300e9763dfff68d5
BLAKE2b-256 fa038e037253a13147bbea008fd9fd880e6fa0a8d7828d4e9fa050dbdab0fee9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.373-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.373-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ba8ff29fb4a958bca58d697ac595eddc85fe6acd1b11d655b4dae88ae7ac07e
MD5 4c37b8615e2ef5cc03cfebea2a54ed08
BLAKE2b-256 1c0be6d2c15dc8c7df9dd16e7d5e9269fdef7d1451ff550ec57ae9d7b1df94af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8042f67c2329e78ffc710cdc1d459ad4dc97ad125f58ac86c7c5018707e4e4ea
MD5 00a568e629950e22d02362a6aab72e3c
BLAKE2b-256 0eb8c3d24d2e1079d5c22d84d4b715497da26c2f767160bcae84e017dee9b23e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8b95decacc483fe36eb0665b5254a0a57cd0dce50a796087cb87123ff6604d0a
MD5 395f03c6833da90933494984592bfd90
BLAKE2b-256 399c752590b5fcb7d239b6ec758e1aad75b2038fbc23ded12c5623a9345be6b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.373-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.373-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 56f2ad634f97ddf0c22221e65c6b94df16aabafa5cb25847f67bfc46836d6fab
MD5 d5221f7c8e0c09c37d140c60e5a93295
BLAKE2b-256 3694a8d7609d6c5cedd3d685131d8ff2ddc458cebe55106cf457251f137b0d60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.373-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.373-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb338355c0a69766761a814566d0dd0192649e425b3e3c05db3798f790a2d3ca
MD5 a7028a1b9c4ce21fb5c09f9d50e5d639
BLAKE2b-256 dc6a0581c17af6a63254b47a0c9d4c48df89902692170793b04691ceeb4b269b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.373-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c47508dbb7c1afe8c75e2e36542c2c1d1f82eb0163dbf7412795ae62ab6d0ef
MD5 d1ecd9b6cd13f8ada88a2c8bb3a7edd1
BLAKE2b-256 6c391eba47c321fc86ccdd416696884452ef0aed62c7486f603b1ec5bdb01a1d

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