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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.828-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.828-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.828-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 920929ff4976cce10c969930bafd7389585d2543ee25d1dcae5ef5a701f404bf
MD5 8f616f601db6f3eddd7519f0932882b8
BLAKE2b-256 defb1e0acdd69f6f5c3fcfd34b92e4f2c1febea045b9ca20c4a1017443e99e73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a38397f180c0d79b5cd3f30dea5573939c8904a1e220f994ef032d6b669f046b
MD5 8ca671ad11d56e11840512bdf4264c24
BLAKE2b-256 a5eeb54f9b1feb5aaff39388eaabcd024cd1574b5cd3176982fd3103221fafdb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.828-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.828-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a24a390dd932d5023385639be361b07290325da64837f63b9bf2cdf8eea54a74
MD5 d2d9331a0db4d433adeaabe68a7e101d
BLAKE2b-256 9c6dbb9a73fa70c9e22cd4b2f2850fa2e7b7fa7b4b3316a34bcb9613d217e9dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8928871cf025fef2eaef5a87a093a404c677f7b0bb2437b2d8642c09df6fbe40
MD5 b9fa41d32e993a7e97c4f6bfe79e3cc6
BLAKE2b-256 da0c01dc7b18e4cad5a805cf53f4aaad2e5a75a7fc28a6b540762697ce648f60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4af07809688a471edf0dc9b4d5bfac8e7dcfca1cafcde0a963301d0a11e2a7d2
MD5 255cfcfb893f8d324fe41f2340057d51
BLAKE2b-256 a1400c860d37544efdd69f4d54f11becc0ff22f2d8d4dbf24eb4f72342415efa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6df5634ab599037abbb615ebabfb2b9c776fea52344144d1880c48f80bdde0ba
MD5 f2317e5cd7bbfaac5f34f4d9a6330cdc
BLAKE2b-256 b8173861c3825b303935c18b3dac15419849bb07ed5cb94bb7796afef7544157

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.828-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.828-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f604b2d229a5e4ab9f98c590641a3c92d1f9d1713516939751e4515361999f1c
MD5 a1f1e3dedd4d84b28182e70427b22c5e
BLAKE2b-256 8f0da6d5a3b9b96398b31c95d8a3fcc0c19fa907e0d55d6133588e0b10e61c2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0878d42d74349e63243f2c895546dbc3bbcf059fe8681287e4bad3997004209b
MD5 5dad85c598dc58674f1b30dba4602c8e
BLAKE2b-256 a4bc8e8e946bfd7824520580811b8e94034082fe1be53d46b9a37b67b3f02f6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d10a87fa6a2326842ee52fb5f2b4ea6b16e212b8dfadb7986381ba4f9b1c696a
MD5 e032d8dc0e21a8a4b1f416d18191a3dd
BLAKE2b-256 cdd39323fe65e84e511d47dd2cd9d9c2c3098424de741d0f352750d86f9a6a82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 db4807f91f35570048abd7838ebdc0cd8d63d01abb9b347b4c6609b671f7f016
MD5 a16c188335e2aafca48f4fc5d384be5a
BLAKE2b-256 dd28c560aa28842d65cb4cdfd7008bcf19a17b58f216794b9703cbbd3e1f9270

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.828-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.828-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71823184aec4505d30d0567754517862249902de145faffdd67954d8f8144aac
MD5 059634a6cca4888da9cf61f1b4cf721d
BLAKE2b-256 ba67f01d43afa74cf446aa66c1aac0c93d85bbcf4fc2e4ca7430fa94a47475af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9105e331f04ee415724f42fe07aaa57b330390e95bc042693d4b0d7913a8f8b2
MD5 d4c512f2d1477065674998c3c27417b0
BLAKE2b-256 72818052a09e4aa5432ee13d85d9e64a023dfdea82e168bd55b7a77929df2255

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 37befec498f45e72a8d83358fcc67bff7e978f5a91f3451ad4b6835bb1059c92
MD5 c5d4a9dfd83a1d039fd2702c103d8ad5
BLAKE2b-256 d75fc4266c462a8fc9c7beba298af9384897facda9df40ac5f9a39af7ec99f75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 71306e12a22e2e7b26a4ac09a6c4ec752c59cc3b5691f9f1f1254d864a9b5343
MD5 1ba0daf6653a03bd0e3cb1d0e39d49c9
BLAKE2b-256 9813f20b31d22215e8b303bdc5e9f95cb2ed8e0950ce06fe270ec5d4bc6f2af8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.828-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.828-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff19543aafac7b24dc3f3ebf2e63408535c24c61229061092eaa61b837f73c16
MD5 9655ac69df0effe1fadd863957e2e2da
BLAKE2b-256 187fe19739e04f9cc947efa2027cc15f69539c9a15267b01e46e757198ed54cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76bbb9f5c0a3f8c30e65ba1f5a44ae374006a6f5ba6a3042c457ee48ae0d7654
MD5 4d311a87730a5024cd1fd14b9999e7b1
BLAKE2b-256 feb5c6a71435a3c4a2dc6b3e84c0092d7ee6fb6c408d18375b1db0014a84747f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cb23887e1f74d6afca6d868796a875c5125bdaa1de93cd39930ec26f31777ada
MD5 7c823eb128721154e6fe6043f3750d8a
BLAKE2b-256 fb663df68712ecff729c577b34712357cd5eea65e318ce3fcd8da2f69faae415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.828-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.828-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 75e1bd41ed94e6a7fbc2c50f3f88a4851a960fef43f986b4ae4b08ce2803a2e1
MD5 b15c79526e749362e23ca8955b94c0a3
BLAKE2b-256 dcb67d0e788a598e18296c9c82716ae4a9c0a7bb0bbfa20f13453e4173c82f78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.828-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.828-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd33fd15f7d0112313b4b086c675f8a2e928c593684bc2fd879ab1cd1f92d7ec
MD5 d36b78c225363d530bbcaa9bf49859d6
BLAKE2b-256 799f42bbece87c6a0143796f8ee12b93502d5d8eea4eafc38540f69b59862476

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.828-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc923940d11a2333209755a39c18224752a718db9023e3d2394bb24173ffdc53
MD5 30c8667555fbfb8c3d538c75ee7d7e19
BLAKE2b-256 d242375b2edb66d1981693b597e522b3e98331af733c344bc8bba7b05d3dda6f

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