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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.791-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.791-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.791-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.791-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c7951fc6baca060741136bcaafdf3e3dc1b960f995603efe2489e9f9c0e2330
MD5 346d78d7b11a1a4bf5a6b79ba44af5d6
BLAKE2b-256 52897252673d383787d88d6a5bb1b1ce48db9883bbc0b350fc256245af9a179d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-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.791-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 54df5d46abad789053c3be311148f35c69e863c9544cd13e0ed17dbcc3efa72b
MD5 8bf081f58b911d292a4ae1f2bb1b9f02
BLAKE2b-256 5cc4c79357af10dfaf48689be4ea599479dd3b3aae1d70a15453b5abfbba071e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.791-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.791-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f3580df7678cb62b1cbf203ec4974e38f33e55ca158655ddcd46d01a7475948
MD5 b27138527c0882ad6b1748fbf6050eb5
BLAKE2b-256 461c60a024888e8a304279932b0b788ed51bcafe8d063b9f9063b93f35dd6edf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 554bff01df36745e54ab52fa87a54e0c24c97c742f8238fbe36ad93a4a99ef1e
MD5 7571280b5c05976baf4f98680e7eafdb
BLAKE2b-256 88e6481c13d3e8003ab6c59bd5f6dab74e01e2bb4947864116a08c1cb21f7dd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bdc138aa31d0e7ee6c657b1a91a2d7707869ddadc7b4abae42f6fb059a53ab9d
MD5 45a943f5dd5adf670ac39888441f5409
BLAKE2b-256 3f54d6684f0414a4f3302a0983606df82ae141933d6e5923611c34aa1919e49d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-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.791-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cc46afbe3e47205e0adac972334e3d73ebe7bc8f0a54601ed6a1bfa45e48c5ca
MD5 f3f0b75ba72d3c00594d4a26506a3a8e
BLAKE2b-256 4a04f5b81fa9379d7382a22b577281ef6f95dccc2f84c9fc25cc0bafe54d4629

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.791-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.791-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcca27d34dd751aa3e2c9071e44741a464dd4fc8cebea6e1c3ac5217fe1a8446
MD5 3503e04b20694d8ebddc49628081b6f8
BLAKE2b-256 7ff7e82a02752fdcca53ad0f5ba3c0f1a6c79a056513ef2778bab98eced5b7bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f73c1bb1302a4ddf2b91734fa607d727e6866877e56078178338766ce2780b19
MD5 de45ddff4cec985d37450714b663b82f
BLAKE2b-256 ad46ab8bec03a68e3abb59fa2ae3604dbc686e33cd75b4f2ec9c0d93c3bdbef4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 144e0e040812c9dafbb8b6add1de72480384708ec025c9b229d71f1d8c070e81
MD5 678848d7c4f9df551ef5cf8693cb0af6
BLAKE2b-256 4ff1afb2da8f9be0a1002b58446f96d9414d90075f490c622dc46f882611d8bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.791-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 167f6c25aaee7b9231ff8477889530368c9f2914cbf75581ea1a436f8ebb5b9f
MD5 60de90c2894edf28b455f9380597e820
BLAKE2b-256 aec9ba5f07336b6be07ef6590355acd22d0a47abba54667b895b1e7d8cab405a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.791-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.791-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ddb96de040e370860814d8bbd68e50d687dc0f875a71284d34ab3c7e5353641
MD5 30660aa23f5bf2c5f274f7bd4710497d
BLAKE2b-256 b49c40ae5ebf8912a1c253c833e845fe904cedf19c5b6fc50e30df32723f5d73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84917618bef992ebc046e6918309322d82816c3ce18a52fcbdd84de9627f2876
MD5 71a2fb6c6969a12695f292d02e909920
BLAKE2b-256 bb96366b4dea8a749451f3bf24fc54ef3b0a3110f02bbd5cf11f5c89d05133f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-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.791-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 21b83a1bced2d8bdb8664e6bbae0b7b8d181067eef28799cf3783e7ffa70462b
MD5 083b82c8c074072517a03927d3bc50e3
BLAKE2b-256 e9ba56ec4f3b68c2ca10377ecded3afc6997795ddb5b1ec827f4ec0c4582ea56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-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.791-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 874a1ebae2b75fff23ea48d7ab73aabc585dba9f9d3490d87834d5634d59c630
MD5 1dbc125e58400c94559778af5088e0b9
BLAKE2b-256 1298fb3dad8db7e667c5237c73002c819bda245a695a1af59cecb2b990756433

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.791-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.791-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97b2a891f17bd64d3f0cf09aa997ee3ce73e8749e24bb54dffed719947f6f201
MD5 4bcbcaa094278194e4bc34e73c02d8c5
BLAKE2b-256 4d5d7d5a4e0f9bc59f27db1fd51a2b4c54b050a78adf3c57771f7b47e3715e6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0470898ad5826e4f0101ddb09e825e79a4a12090b11c09612019b404be7b9404
MD5 38b4d49c2c960b09091e2796c8c931e0
BLAKE2b-256 efcb9468229c338666fd050783fe95d1efa5f34dba2191029cedf13cb2cf0f32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-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.791-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 16038a6b379156fe5cd566f027352efaf89aff59908637679ac4bebe0a53eb7d
MD5 cd16a816ce2461a2ae7df4754b468712
BLAKE2b-256 61e97078b18aa85dec97d54a3498e51b3a1eae71ed4e84b825f058d77ee2350b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.791-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.791-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 860717ec613350a82025eea79ddcd4779e43d3675440591289e1ada8bc9f17b9
MD5 bbb2aedab9742f5af17f7e5539cf1d0f
BLAKE2b-256 224ba992221975b44c2f90422d77cd493f86446bc40d7a3a5d449157a33cabf7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.791-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.791-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9de97610c279901a044253cf5cfe16a85fc59b1197b1b68513928d34532a42c9
MD5 baf684eb3a5c7f77bfcdf639c45f159d
BLAKE2b-256 da43f0683ce9f445f401d8938412005a82eb86a2544014e90de56b8eab9255bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.791-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 621ee7a8146b2597b3e5c3ec22b8ff864f4e1b9b1158cda57d949ce454983f6a
MD5 b7ce1aa1fa4eaa30ffbc47e1f223eb42
BLAKE2b-256 505a5067272555a24dd8a7005bd7fb8fb954f868ce09046c41673fe0ea7c6135

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