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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.962-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.962-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.962-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2fa490ede40ce4ef937be62e829b2926a381e314699a38c19b8f22c3e4832488
MD5 787060db3ffa51833faf2204c96138e6
BLAKE2b-256 c0d66fce15c205a9634fa85d1d49f06cc4ba451bb599a872583811fc47046228

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 224ae2b7dba6254cf0ce01fc0d9b56cd7901a6df55b6a91e8dde3b20e54fe575
MD5 3c1a8186d82f41962b4413822fc7a39c
BLAKE2b-256 16d25b785e645ede30062e6280e263cd4c67caffe2d354f9594bd1f34234327f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.962-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.962-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20dab2f86d32c277df1222b220cb465aab16af11c9e686b47d56db34bd72c8e3
MD5 49bfdec4e8a62e961d011a7852680909
BLAKE2b-256 377226be44a071b884471b2339382e27335cc6c8935d736ed0f311d0fdbdfbc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f21dfc1e4adc4f4b61ebf6d17a47827d634af05c561de1daa468d14db447340
MD5 007f388ec44bbd38c8559d9dd5b5b005
BLAKE2b-256 44a2d683d7e52352ddb360d2b4c88f9afae2e4a0bb21f8f7a36893b398ebcc39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ddfe63cce0ba562eec094cbef7df5bfad18cf4bd9a49b2f06aaad5ec7b1e04fe
MD5 718879a7230f2aa38881002f839a3f8e
BLAKE2b-256 4698a33fc77e45d000f8aa43a7fe9907f50bc9905dcc6ec12a4436b4ca8c233f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bb58be195a690c5b65cbf1e06c886445d4a8901651677401b083870424942848
MD5 49cbd97365a8809a44849e2bf006191b
BLAKE2b-256 2d9f1d7af648fafa3d8c52d03429d0c7aa5199837f65b901b87236654d99acc1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.962-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.962-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93650540b645778d199123ce1cd3e7bcbe4709a3686612255750c3bc2958d906
MD5 16de712a065f68e0764fdff38259ef9b
BLAKE2b-256 0e9a7a3f8fdb251a9618287748862d4c12842b1f6c5e09f70070c730d95abf38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ea5cf0fca1170c206320658b2f247761a90bf53f0556810f1845a300f5a475e
MD5 e29f52604e5fd60b432eaad6458775ad
BLAKE2b-256 6147525c3384a5d36e88f34e2b9556887dbd28a20d6aef3b37899a6c760f70cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 358461231b02b7c46367ec2a94649868fe2d4738d536d7e7891ed3ec0832e65a
MD5 d55bc1a46b70ff8d06f157e9d490c5cc
BLAKE2b-256 ca21a725c2ee8868d98a9a2d23bb48821819b69398ed622763d4e58f83c9f808

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 55c7996fc7dd4257755a5fcdc1a0bfbe7f45be987c0546094dba40823a99260f
MD5 6713e8761240f83b57d9f881e88ab070
BLAKE2b-256 c0a326bee733462bf757d78f322df817426e373dfe1f1625c2facaad3cf6653c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.962-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.962-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbadc30b63a40e8bbf64c2768292c162b2f1deeaeca50bce7984b063bf9f846f
MD5 859a4101546fc05680076b9d576fe1e6
BLAKE2b-256 15e607d4660bbd86b43ddfc9829af54741abacbdbe6ad50ba160787a09bbc6d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e5a13d3d57f587367400d6ae350667081e087b2a766dc5510a89b41f0f04da3
MD5 eb9025f36881e8deba98cecfba46257c
BLAKE2b-256 8bc519f32ab7e035c4bf76c6f4685a7ad7dd2e570ccd7a81faf959b05f7ad7bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bcf3eeeef2dcf8c836f0ef47f1dd34eb41e40d9e98c431b74fe0e4c98c9beec4
MD5 566cee2b94530affaa6f81ad2182cc22
BLAKE2b-256 f34fde9a36fb81d4a5d05de2097eaaa3725a34f0b342391f475cb518f4ea08b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 821eb826a7485cf1d03de691b25f78177736593de89354f8fa554d8f8f64d251
MD5 f5b38507756c4129fe7df628cf64dafb
BLAKE2b-256 31288ff0ac836b6867260d0898d4f9babfbcfa5a977755d72406fbbf8c61b72d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.962-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.962-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3524fe27400f9a971cb93d93d10d1a281481c368bda0c273ec34a1c4734699f6
MD5 5d6fb3d643e1cf95fc33dc4903554917
BLAKE2b-256 555a65c9e0eb89d6a6a6490da496ea42ce106ea56e3c272c5385b2a1ae97ef72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b5b7b9acfa9c60e65c2249d63191928b99ff5ed6494b549672e0b5c0b40d9c0
MD5 ad3cba5f1d8be13a5c205ab98c442fb8
BLAKE2b-256 dd53e0345d2bcfb687e22d0b8aac1633feea48d5c20b66c599797f1b2023252a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7703965748f2afebc82a084f3838a01a03953ebac05a65fb022e1cd5b9a4e28d
MD5 2acb21e012019b9980c2d7d943abf21c
BLAKE2b-256 22a6ea95c34b0e3a5f282027b15c55f0b34f7bca654a2a56b044f325dcdcaccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.962-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.962-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9cdf8a89db1d3d41351f37d6f32dc8dc879bd407257f6ba0100af68c12dbca53
MD5 c9af18d8a2ca854a39183de282599dc4
BLAKE2b-256 268f96b70a583f3e6f9d81cc1d4bc8691ec07796c74592c0a8caa61c476b64dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.962-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.962-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5dd92d09ea7cc12d11f6c9d9f0fe532e8d2b8c9a55a75ab71e0802b9d50b4d0b
MD5 f263639ec261650de11c78ba544f5133
BLAKE2b-256 7f3b402559966216c547e063ce620095d4650b376f1d463208265364563ad4a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.962-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49c463c14a51e1e271dd3b52cb63432580ecc2deca492e4c13a9e9b57bda097d
MD5 2c136292722fc53de881364f09e9e5c6
BLAKE2b-256 34ae6ce14da871203b013c5fe411580ea46fa3756831f2776c477c274ba426bf

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