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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.379-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.379-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.379-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 77e8813c1c2cff790c770da48b88589e4f0b0b2ed9343bc6e5db7d5e76f3397b
MD5 626e9c085f325497f1010ae59baa09cd
BLAKE2b-256 7b08fe8d8150214f1466b07c52063d0767a4fe8f8604c515d4cfea19fcff4485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a530a9dab8b429090a4b3c7af5d928f1233838d2d7869b926aac21f280e593f9
MD5 a64b5085983929bfadc37f379009d5f2
BLAKE2b-256 e8aaeea797130d8ef3096359fc4aef36855ef594155904b89161ba92d3d3e5fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.379-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.379-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80058311db1e923297c3c79c0fd5fc3676afa807c4654322d63c06b685c47295
MD5 1197cb1d508eb479ff210fbc9a9ac81e
BLAKE2b-256 ad39b966b99b90b3d48f7b49552fc59835b5812df3bfb5885a3643a4a44d66da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3744f09ea737e6868397e8f82099cd88d4731cbc008603f8fa4461d9c670c7b9
MD5 926dd326ab0ec91e782256a643ab5b28
BLAKE2b-256 b2cfe338feb9beff1658aa18a417b7e2a2519c7a7058bb49f9d850529e43edf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e5435960e2210ae71ce135eb0b7395e45385cae2f57d2da0f9bf34f62cdaa3cf
MD5 f941f42b50a6a6be7184268a09c7b3bb
BLAKE2b-256 9ae7c90c62c27d5522d288cc8526fd0e853ef2f6622c255d0285f8a3f0a4047e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 629333d3d6b567c92418a8800e2da6e550a696f66a5017b5974c6c8a62777bf5
MD5 db923b6a0895398985f9479c0e29576e
BLAKE2b-256 8acf8fd8c708a471a565bbdaebed1ec36e61f6cefe67cf148e3c483ebe3787ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.379-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.379-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9900c5e8a041c46a0975d34abc45fe6ecc0d7cf9d68adaac4ea6e2beec15335b
MD5 ab82a2b287a33222f39b781c1d2df827
BLAKE2b-256 ded1a81456714ccce244630b4a0fa4a6d24f0139e3fdd28bd1b1c7bffce9e3dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b766774ea2a325480b63693dfb30d49ff0183bc90417e3ba19adb5ea7772d7a
MD5 e03fab9e5f50cfe17c669f8b9db3db94
BLAKE2b-256 53bd5a49768ce387a25105caa0e6ce25d13d22e7a31c1e6ecda947c802beeb26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9f6a6cb5d243ce6b4688a824a26587b18d07dd7514b6d5ae23b0005348d3c015
MD5 784f63e28c2c4f3ee8fd16a87a5c8877
BLAKE2b-256 6bbe9bbd575e0dc6a3bd35b4908f6d22259d32e875b29967190417bda63984aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 37c3c8ea47ae117010260527764647709b911355b901291e13f0f1471e953ef2
MD5 0157e2cd38ddc7a7530978cd81e5b4a8
BLAKE2b-256 ea20a938fb50adc6772be765369b949585097321e86092c54a423a6661508939

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.379-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.379-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f992a7003deeb189c65c36482af4923cc304b0de8aa544b1cda2155b829d07cd
MD5 d4ec1dd5874d31b792f3e6e21c50a7f0
BLAKE2b-256 6531626e4463669f460cf84009167820e35c503314e64a34f0b7ab273f8d4ec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c511879fe0ea02229ffae5eaf786ad925b95aca4b265db411555b75b9f1a7e4
MD5 1c6c3eb1defe64e310a7ea9df2945ee4
BLAKE2b-256 c0a5fd69ce4c4380608c33d830668b56a892e062dff4a00b1fb6a04ee3980169

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e4a692d0852cdd377c8894dfe7631fbba8ae706bc8f4927f5248f7fa0a02c2cd
MD5 3c9b5d0a6f7cb974209ccc95630e64dc
BLAKE2b-256 0f4f86f1477edd997ca76b9b3211dc8ada8bb60fb84eba195ccb762f335183e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f57f094b274b86f1a1f9b826c3642111abcec37167b79e1f548256edcdf2c2a2
MD5 9b88e0281e100cc984eaa033a28e212f
BLAKE2b-256 93314ac5217553eecd218997908ab33f9740fff1e922048f853bf72cc2424a38

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.379-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.379-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f5dd916e4a733d8a02676092959300638d4c25fe841c052305a014d4dca1bf4
MD5 0795221d2b1a80ef12864abe5977a890
BLAKE2b-256 c9b66ea141572ed9bbd63dc0eb346950939f3b2076ab1178fae6b564b1cd59ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d0c39704633daaccba75092e9c7a01b9f84a16f5c9063c71d559d33ebc65adc
MD5 9d973429085ff2b1fde84e3cc538bc5c
BLAKE2b-256 1a1cde627bc24850e685b6d177f5394787c610e3448ea427ea9dc3e095ddf133

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6ab203633f089879a7bf0fc93d278b2c057bee2104c127b1ee67cd300748b0b9
MD5 d8561d202cb95354e98e67cc9ff7c6ea
BLAKE2b-256 3e57e871d2e31cae6413956881aa9eeb44038d96815b9ccc0d13c8e8aadb41ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.379-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.379-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2e6b2bf6498efeac3339ad1e0fa1db7d89d222176518ad0be96adca1afc74f54
MD5 d337e619359f8f6d9f688c25f399ef81
BLAKE2b-256 087f05b259f715810e69e1661174a9eac0fb18703b04741f17ca2d0334779dc2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.379-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.379-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 792c82a7c609f2df6b458147e3e1f3fda6f7c4ffc2603cdc7c314e715aa88917
MD5 06390e06a65d69676bd1d08423c4e358
BLAKE2b-256 5a8bdbc69d2edb10b6420ca25aef402a7f618343a7174cb24f03b4ff63cb1b5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.379-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 962db9b1dc02c73f2b58f4c75d47546a1e98b22bb9a5e5401f1bce7f1f573314
MD5 c0a97c9c4450c74635313ef3eca5c137
BLAKE2b-256 96cf45bddd923634488f13bb13b285c55e7454d6030069812b5950dbba76801f

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