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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.166-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.166-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.166-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7c43539ac501ed079c9d3d929180d644d57fc3d350d476c76f83ecc57b4f5713
MD5 e35dc5744cb96f94580fb65c0d4e441b
BLAKE2b-256 942f2b7883bfe5327f93d20d1c54aeff45ada7fe3bce87b4826327f1204dda6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cbb97c00b532bb3de3fe621cacbc7d6bcfb1c56ded201c65509a8c1a560acde9
MD5 c9da9f634c7fabf7c2a541454207a5a8
BLAKE2b-256 fa9e981da362de7673993439e92111b55ee424de40f03d13ec75b742a4901cb3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.166-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.166-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb5a6f21be01eab4840e90e27e08e6ac6d1f6a8d37b79de4e090d73db016b9fb
MD5 424793c3bb2b2e1c45046f18af409aab
BLAKE2b-256 3bfa487ac103bd5563d79f287d73bcfbd6289665c71090ce967d6884e41ca20d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b466bbc65e6b2d2c38fbd641d43e94b4503268c8e61da994989fae5af309ca3a
MD5 5a2f0ff83610a8bd837c396dde02f435
BLAKE2b-256 0fcd189c6e40c20b7b3e1d17c8ac57f72c876016e47cb5bb45278df9d60c10a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5a4dd992f2a6f33b9952a7fd17b4a4532a388069f71cc1cc6795cab4b7834df4
MD5 037b602db28c6ca9143092ec467b0814
BLAKE2b-256 b1f75b95d14f6e14c917e2ccd3fadeb4f90124baa7380ef2dc043708815d1090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9154872b3facf41e6024ac1853c06186ea53c96b74ac4211e6e599b105673727
MD5 22a65ebac012d629e1868113b7fce889
BLAKE2b-256 db149a93784f91135ac5f34f38f187f1f4965dfcecfff0f5bc3b84deeb2d847b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.166-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.166-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56d86c5cb617f418c629d3bc04c451aa438c834e0156cfa9c841c6edd0a82210
MD5 6d74001b8e70961112038d0fb6e4032f
BLAKE2b-256 5a54f586808e25dc9b52dc2818c8c281b9dfa2cf8c9238fc90360455008b0ad0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d16cf81766beaa93211024b83568087193c22442480d03f6d47f396a7e7e689
MD5 21b52ce1b9aa965cf974edaa5da1c062
BLAKE2b-256 a5ef3eae733d33aeeaef313e2d474058b9234b9927e435b37e48977731bb44c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8dcdd97683ccfd37e4523d822a47494198679025d82e5e87ac89ea4de32d1f27
MD5 d678f8c1432a44f971b6c76fa1e2bc03
BLAKE2b-256 64821a9786e90491d1c0f9d9ccca4b2afebdf25e52d3e207e5afdef04afad20f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 21c6f12fd1aa8102184b40b95ae0edac0c16af0c962b675069ec593846443dab
MD5 16b384c4cdd8e0717725c57ae706c58e
BLAKE2b-256 8845956887027389086e5b8415b1f1c8393841de0455f7a49a205760e05f01cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.166-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.166-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66cde1dbb06fa2be422c895840d84431e857f78500b19bc45791705debe63e4f
MD5 a77828bbaaf71290b5ca9a7b6053c351
BLAKE2b-256 49df509efaf5bbd90529b5d2be6fc6f97a14d72323366ab409de61f72504a945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96138d58da571cdc80078c55fae99a2cca6fb91dd5e1f71ba214233d3224301d
MD5 c70617347bd4e6bf894a7292be9ec550
BLAKE2b-256 09f5b4a6cc2d99d359e59658d904e0dcbd87060a64c18b3abb5b67ea09e20651

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 16db5240f9be431a4c089629aa9acaedcb1e9d490c71a5a45f242c8a8a588e18
MD5 11ab92ab741c010839b98bc188f4ae43
BLAKE2b-256 9ac811f49c79d9c1e0b0a2a20d6363a19acfec668f8aee57eeef2c129f47aa8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2899dc2689b2f376f2f99fa1b7331bbd8049aac2e369682c91621b904aa44791
MD5 99cdef877874be9fc4c11bfb1e9cf53a
BLAKE2b-256 0c051cb9ebbadabea3e4bfd87bd1e70502056bc9432821a3adf5cab1b2d548aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.166-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.166-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 287466e87d69458fdf97cac9465266ab028c7ad2e80cd82f20a0dfc7700d42d0
MD5 b2ce0bd5c492d22fb5e7993f60229b80
BLAKE2b-256 0c42a60fe4f9bbf6b7bed7f9dabd8a8540900b2d1356381921f6953e51f1214b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ecc2682ef3a59f454df35d5ee5a1ee11e1df548237f3ee93f78d82d93f2c6767
MD5 891892b606af08daffe6c01d3c41bb10
BLAKE2b-256 5e90041ba884ee4849413e4a8cc4861632ff0e1db8f0e86b6e73eec1a60989a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2b5a96614a804bf6a0e15a7911e9b6c7b6d8deec70268070f18b01328a830d92
MD5 35203069aa08666a3d9f31553effb456
BLAKE2b-256 9e3403cbfee81dfc37631ef15b4e1e4e78f18d3ff66ee2f48c94d2bc9e4620ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.166-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.166-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c5d9972876c454424cc3a046547b0acece858aa94d61d73de8d97b91f24965bc
MD5 8fd628daee50aacb2cadc247d9844801
BLAKE2b-256 6238990757e05bb7a6e727e58430d0811417e862c3cde1c3be3f6eefaee318e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.166-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.166-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c01de4b1a9fe777e43a41800bfd294be55c804b661d388550c9f5f79906d804c
MD5 9f3f8be2f9ba40a30fa883412252ab90
BLAKE2b-256 5d199cb65a10a526307bf439ea7fac6839f3f992715c42e1c1058e0cdfe35ae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.166-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 671f1b517f7c5f716526ba7e47d90403543a3fad09220f7d257b538979161b12
MD5 71dae0659389e47919a15f597917f1fe
BLAKE2b-256 90c2bcefd8a21d17b54f157da0f0cad76367b1bc040a0fda423597d8783caf9d

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