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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.862-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.862-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.862-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7c92e866e3cc2508488c1f095e70b77ed63086c190021c88eb62dff792e6486f
MD5 0a0b7cd30832aef9e9686cb1cb6ab3e3
BLAKE2b-256 809e1ef879f5e435fd30355fa6208689973d2b5b412237262c136fcc4ae1db9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f9b97216e2a25800865e5d270c646efd0daf8177bec415c721cd96e318e98cfa
MD5 7ff5a77e0347b193da13a63d5b39601b
BLAKE2b-256 50fb3e21716f4b1e4300f10fff781652d75e3a178133c96bb195c1c5fec666d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.862-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.862-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d01cc8a796396824f5c9e16ae2c3d5758f02c7d26485d6cbdaff673cb1607041
MD5 c6c1bf0d83d543fdf149827fc520598a
BLAKE2b-256 9ee8fa72bfdd1fdcb82b7cc180c0102575cf100a589ff3622da48e3303f571fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bd3ab1dc13051f3033965281e31820ef6ab499cc39c0c24642d3f220fdbf3cf
MD5 9049da49fb59ec87a812baa5ff5c36d2
BLAKE2b-256 a642772e55fbe3f7191329049e913d18d108583f52ec26550678c99fa247f4b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02b7979d9c21f4109e126dc34ea09ddf92b0f42b0e8fcdf18c81e21e911c9da0
MD5 771b1809f055581e21f208e0ba72383e
BLAKE2b-256 11164117459ced6736e1eaadcc01b9a179ebfe10cf85fa7f92d4c9ab4d9e3dcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 524be7b58a82f89d8f057bf3ca37d8c41bf5cd9f7c0f1db20c0f2ae52d5e9af7
MD5 0c9d8a116f229e946000e492e4285499
BLAKE2b-256 799fc6eb40968cc0577c7c0353d5d1512be78cc9e3de61b3b80f56587cae5206

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.862-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.862-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22830b9d48d7633dc9234326b85c8f290288f0e60ea7718c15605cb884fe18e8
MD5 790a3186f34928e53f2ed1f9c8e7b50a
BLAKE2b-256 0e82a2d56db0f232828c0ab32f0e4e440c69e42fb40d5c80245556432500f22e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d55c534733aeea503fb7b5b986c745d51a5a51d6981a4e01aa35da939e49f5fd
MD5 67b562aaac5bc1538f7f728f36f38113
BLAKE2b-256 e34ecd25e6c10c81e4b1a473db3d75a49f0e95258ae2b3e184ac6e6e91d400c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 76a6733b88ac64afdc8d478750f97cceba49b91d3b21a89ae3824dd09a3e9d79
MD5 c720e9752eeaf0d0ae5751018650e2e9
BLAKE2b-256 9b7d451cf6d030ccbcfba9fcadc6801676b839b22358e9f0a4df391a3454b546

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 defbb219fd02cf391d8e6b10d000bda249e783f89bb9c3557230b32e66d0c9fd
MD5 a4e569c1f6ae5ee7b627978936f6b64d
BLAKE2b-256 66152b72d3e00376c143cbc03cadaab43284f57c9dec41bf3ec1ea587503d93b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.862-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.862-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a94eee32722c6bfdb75a40a078394e5bb17226947f385226f1053df0d32c940e
MD5 6ac71bb8f9f992af7d420d0a0e495cd5
BLAKE2b-256 144a5365ac01b6ef23366aeac7856dc6c860895723f5a253ebd96d9abf67431f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2da158ea428f8d15b630c396f2741b9273d6778120b24a95e196d357035fd01b
MD5 cf1176379bd164dce4f21d423489e19a
BLAKE2b-256 89ec33f9141681e41ca43d9eaf1cda3259316ffc01cf429f7429f302d85cdc0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2c60c8dd26fab2b69f835227ced7e8140946733b4630010cda44a330afbca4ac
MD5 1e322d49c85efed8bbd70630bd41a7f2
BLAKE2b-256 38675bcca7932921f8d1cf1c9b0197010dd540eca3c7834b772e58f40eb0b0ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 73f39df4ae144252a3c025d0d79cd46f1cee3bdd307eb20f127a7021fb2d7804
MD5 ca6200a266e11185074d75af8d57354c
BLAKE2b-256 c0bf7f56f96c83dde7d584cba35dd2dd045f3b51f33cd79d3a5f9da6cedf582b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.862-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.862-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebc28bff8b7495968617d490676f5c7aa2c4157c5ea14b81d91c9d5f4ca2c893
MD5 bad7d2978fa0b921fbca25ae347beb4d
BLAKE2b-256 18bb624c454c06495395c6805b9b82de28cd8eca26687a9a1acf9923306d248f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41098c64865202bffb354154454cbdad967343db8237cc9eb2cd2a01db5b2e67
MD5 2b2e2c63357a3a4acf2f8a557c62d3a0
BLAKE2b-256 9995683717670c8f2d784c850774f6a22f43cb92b84a086173600278e3733765

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3023a9c5542338718a0c31b37425c4e4f3aadbcb1400b5fdbff79482d1373be4
MD5 e36bc8ce9089afd73c06f56e2ef02fdf
BLAKE2b-256 ab56f55643b6b56b5b5e1a5a4497e71fd33ce0b78eed120ac350e893ed84b7d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.862-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.862-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0b8d928e2f39c5d8ec1f353d1d782088599baea260afac74cc9b8e7ddc3d8016
MD5 9771372c0f8085314e7b82bf568f40dd
BLAKE2b-256 7a13aeb1679db7b4c1b2e4bb560e379385bbd08d628d4c54182e45c32811d080

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.862-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.862-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 814c5c34f3be8392e44321a50ef69d2479905629d5aa263f2668bcc70ae567d6
MD5 8146896b83eba3c0b15b48272f4e90d9
BLAKE2b-256 7faba9b24438fdbca8cfd0433497da87febba0edfd1719d3ea470600c7eb856d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.862-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dcb52f804127cd623d09c4aabfdac4420a0df494d609f1dc43c24168db0b2f0
MD5 8942c4fbb0f5d4452b5db338f22e5aad
BLAKE2b-256 b4e9501991e179cda908fe8b5807c005e0b4ed00e2885609327ca09033e55f47

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