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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.538-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.538-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.538-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 161b9a4f091a094694312fefb927429bafeb25e89ed3833323bb4e8ef44a1a83
MD5 6d72287fd157e78aeb27c06c2b21cee6
BLAKE2b-256 213459a8c435240dac0cbcfa0dab9228c5ad9b88a5c5460e8479568a428e5076

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0432215054df3e0b56eaad9aeb458f95f791bbe8b29879c04ca3c52cb3e65696
MD5 097f0bde12c24d504dd6febe40a51928
BLAKE2b-256 042720088b7fcce2ab3c1e0116c23bc7ba7cd8df7489937ff3e8181cea859a69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.538-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.538-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9cee43ca5d3349907b1fef0182939353305391de5be425489fac4ea2e199d69
MD5 e795086601d81b28eeaf02ddb227713c
BLAKE2b-256 0fb479e97633ae5745901931bec1b1aea483b51d4c75a269b17f7d1cf33bdcd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a829f9fc41a905d885ee52a69dedd7ef702a6268889c7b256f01cfeee245a18
MD5 965bf7ffb7860508923777c15a1c9407
BLAKE2b-256 0a1e9d49165f3d65c8d0e9e779d52891a6083ca1965a343e721871fa4aa4d899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03ecfe74d6e2efa8a17983453f6e0c7cc3683093310c8051fb26fe9da19af716
MD5 02456db19dcef410974a654129140c1d
BLAKE2b-256 10dec231ba62e37a8d60b6e7c1ba5af0b43a9e5d0f946c59c9b7c57f2998c705

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cad2bfa9a8a85316673c08768f0014431034eb7ea28d55cdef5b86139878dc4f
MD5 5b512d8fb4c65b46ec7083ec07bb4026
BLAKE2b-256 ba10bd7170a11aedcaa181bb4410bbf8cb9adcc0c86974f2a2dfae89cfc846e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.538-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.538-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9204b3a96d56e01805ac51de7effbbd307bc0d52135eddea2271a6a7884f0c3b
MD5 1ecdf00b7f80d4381f636f68a7a798e3
BLAKE2b-256 934a77cb8829dce2f97f8e017deec581ec9c96151d183bd7ea8ffb1e1396c6a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bee65f94a779642c42b32603e1eeec1694a32470d65e1b91164e101c4a6500ff
MD5 12b5e9ee500414846756de0c2af9d0aa
BLAKE2b-256 97d1cc605e692096f0202f4e4bafe21530befe75531b537562e01064c7774422

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7cfcfd53e932c79e6aca1a379c4404f0ef6e412f2ec61684599eeb6c77340ce3
MD5 1edc530f2290cd571c18b4dd4cc85018
BLAKE2b-256 598495a86983f99353130ac73f43eef2275c394c094897fcd30f59d0244cb78c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bd4c632459938c4aa80a711a2ef43ba3e0a4c66ff159fe12a42f3d7db0cf47c3
MD5 b9b6eba7448956fd11412e17b60c9f8c
BLAKE2b-256 d0d782893ee165e8b615466be00c082247ecd41735aeca9246e5f854d5c2de4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.538-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.538-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eeee7f50548677db0001c29fe30bb0f7b5ac444f00935065eb1ba3fdc9750499
MD5 b403654bd82d97d148f088575a223ab1
BLAKE2b-256 159d1407bd6fd644e9e170e16f8d438dfdf6f92a376731b6c8a8725e44f4f62f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 084f5a1f440fb7c3b49c373c08f9a159bff6f87a711e524968edab4b377ee234
MD5 0001512b35af07c4353237900c96a9b4
BLAKE2b-256 e82eec460b716cc02f22695d409150cce647c9ee143a63b64aa230842bc09f4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f205db24212c32aac5dd7c7b5f530007182bee0d32b4d0aeb2b68f65d827994f
MD5 5a11e0618c49ec90cdc1efb66c59f966
BLAKE2b-256 03abef2cbf0a4730845d12b5178b5245bd937e944cff51dca6c170b6f51e1ba5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f713e92b6d7264d527dd5af77c476e977a51c6e5e1fdfa63c78d3ee77489b2a2
MD5 1622ff953d829e5c00f2ddc4f47ac715
BLAKE2b-256 0f5bf0ee7a8a5d8969f4dee3eb327457687f8151be1475cd51bcda8bf26efb76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.538-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.538-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81ac84f530ff9334885d3be9365d02339b9344378c009339fc864489a39f7183
MD5 b8443ad9514b22450c0264c0a85ee8a0
BLAKE2b-256 bb60ef9f4abdb544eef59c4cb4b0b84ce1ecd8cbf0ed10c87177c0717b8be43b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc868c750c63bf157e5d76bdd36089f5c17cacfccd6e68f6e48b8afe1e181e1c
MD5 9e147d01fba045ed1bb7ef4844c989e1
BLAKE2b-256 8e4865ee22238749100e8e8a22567a3c9b42d01adf083e91cd65cebb5d01411b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3edf988fd9be0c9f78d04866df30dbc83d02ed15057096e7cefbe5a693e109ff
MD5 07ed245565d88284bdbafca9e4a7e056
BLAKE2b-256 2b83b891cbe1e8471dba96a0257a65c0370d1e6653d938569eb9dcec9297e2e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.538-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.538-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d491855b1120041e593feaefcaa929173e2e69ede5162b6a47e7bfd336205e24
MD5 26f34215e8a1230dee28b8815580c37a
BLAKE2b-256 4fc5ff51654621842ad7af4487854324cc3fba32b2a4551b1d448e88b1041633

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.538-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.538-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f156738a68682f130706b9bafe6505738c4e3590a7696123e93a3cdac7bb7fa7
MD5 4efcd8ecac9c78efd7a513ff871f52a3
BLAKE2b-256 1e7613d75b8a6bbb7b890db92fc79f0c209c30c123dc7e57c6f0e0b51810a5a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.538-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8080e8016b431642610be23c6e0848e15fa4021c6e11f5f4ef497c8bae6ffbd5
MD5 b15f184dd8d99fee3ebf2d4db4bf2615
BLAKE2b-256 cd9f06ac623dd7bf8a4e4575b239fb8776144e39a4507742cbc5eaacf1d903aa

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