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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.475-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.475-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.475-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.475-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fdb5b3b932fa7ea999da6607f2d1be9fc0d173e37d2bdd6472ca46805e852c24
MD5 f9ed2df5589097776eeea6069671c86b
BLAKE2b-256 a1d015efc6564cc988292cd8d603e4d5c85bee3f7daa0fe8ce54031954d05b6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-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.475-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4551511ac31d9638aeb05a6e48e6596ea2718634d2b4a9f47c3c8592fc1c9740
MD5 5fe5ac8e6938754220de4752166cac34
BLAKE2b-256 c08f713a985ba9128856b492b470978f4b5bcafb54518b3c4893b7d06bbcfbc7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.475-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.475-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 602e0abb2af6bbef3957570603edba71414fa509919a95a39fc0ba8760182932
MD5 ad03013a8eff8cbaccdf80777547659f
BLAKE2b-256 1eda457e32e95966734b6f2c45ce567dd463d655b1cc5db9b54bd16fad039942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd98701dcfbdd1a8c0a981daf04e09d40ffcc4e6e96a36a7735756582ffbd521
MD5 c52fc61e251a513ed1f253f4cd861138
BLAKE2b-256 e62217d875da44fdcb71ee218c93e2aa005130757f968f582d80207b6f5c543f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f018919604cb6bc875355a4fe82be51b3a1c98b390a4c990193615981dfa98ab
MD5 c19837b4c9c1f43cb3649c68dea5cc89
BLAKE2b-256 1ba7815e37ce3a0a0f14cc832f0ab9a9b7d2108cc75073176ebc0a1aa36eeca0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-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.475-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a52514fc3e5b4c6c4a593fdf578b251dc732469235a2b398c5bf87412d472ea
MD5 4d2aff17d6867960e86b41f563be4210
BLAKE2b-256 df8adcc114c19db20673fdd0113c173e09d2274c2f7e33af21e04fc90091d828

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.475-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.475-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23843baa52261166f7d5525b5b95b6151ae8ebb9707b24d0d71b578f2f27144d
MD5 947cbc2f5040882d77acf14a5c43c83c
BLAKE2b-256 216b220653ca3ebcc91b5d8685b7632da38e2e7169bc2e95eef4f4d17e29cc96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10d0c710baf290ab9852e6773ddf247669eb2c5836029ca7f663f59a0565c9f1
MD5 4f4ca7dd3780a165968f5b733369fdfe
BLAKE2b-256 e22dcd2797c2805c6846c304cebc197d755c874eccd1f61e60ec71d4b7cce7b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6b22e0f9c888fd9b6a15413c19ab8ac6d733cc4e162234de7ce3209a8b16add1
MD5 d2e38e3681a32ab22bd93aa4c3c0201b
BLAKE2b-256 e1bd20d6884c4b2145fe51a898b1ce0f5012571b05cd17f14c641213b8a08d41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-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.475-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bc6a094196054df052f52d13749e7c4f1ebb47886dcf314fba193169ec44b27a
MD5 8f413a68a0392b07e238bd7034a7de83
BLAKE2b-256 57e47aa9f664f4a4db3e7b8871d24ae9e360af90de3e9729acc07efaae1f0a2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.475-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.475-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ecaa8d1452401d524d85e9af376c20019fcdbf0d348440ed181da9e8e222cac
MD5 f17e6d3d9aa18e138633fade90e213dd
BLAKE2b-256 04af2d99ad7aa278173d35fea6d4115ed4b16128497a177985bc1363e79517e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 191d758c80e8f1acdd2ffa5d26495eb530ef20fc835b6418bac0810af8896658
MD5 344238a37416a1fc3b9e63a7a12402c8
BLAKE2b-256 b2005eb0456048ddcf47d65d4369a53130e097c3a2646c9ab6d0f1034d2e92f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-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.475-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6ad3904c457695d69c8b0be5e47d02041dd89141fdf2d38c6ebf616b1ad0c8f4
MD5 99a306882111127f3442360a2e2f58ec
BLAKE2b-256 d04fe6f63d4342d4c71fd823c8511400f414e70c377716cf89724fc5247e402f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.475-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 66e288c97d31f93a5054f72bcd876e3a4ab0f0f3b8dfb8de3e0418c380f651be
MD5 1f29ee60a8b0923c4b08da36374c8d3b
BLAKE2b-256 4b89c591e57ad6b43db8fe0b0438a0b4915ed59b00d254a5f0382abd2c904af1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.475-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.475-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10087e3b9c27cd860eb46d8787335d86d31700ebb5a9ff747e66d0a47dd92400
MD5 248f19d45fcdbeb6dc54083abb6a9bbe
BLAKE2b-256 eedb221b1eeef9313c231a03031abcf5c7e9aaeebd8b5468f099bbc3a5c3b507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c9ae16cd8ac90ec1b477b02182b3bfaa15ef751281813de40f77468afc2d26f
MD5 a92940402713664daa43a594dd3cc60f
BLAKE2b-256 fde867c241ed60a312b1ed32d872f2878739599962872e376b294293b3b290d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-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.475-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 512b529d1c285020549e7a7c951c88e8d6dcbe0ba972a733964284a9ebe64534
MD5 2d2b241b79fbaa19ccdcf78cc16fab81
BLAKE2b-256 adb4188e7ecb1249a7cb72f658ab3027839ce2ed4e99e793d6f731e4ca0c31cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.475-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.475-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e1e6342d15e0bfbfe6eb176b1b25ffe396c9ff13d5a68a15150fdf640bd01577
MD5 0134f64e342d5bbb6ff7c9ff83ecd359
BLAKE2b-256 e04cbe7ccd80f184db5a5ba5740db0c99b85708cea72d751f84caab65bbe9f7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.475-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.475-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 417fcf7b0217c00004a9025c4568529ce09e282ab036304830d20f672e00a0f5
MD5 948316bcb2ec92855b3ed76ccb38290b
BLAKE2b-256 6e7529313750c1395c65279d8e3a320ef79e9826471195245225b744bfaa2361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.475-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9e98ce808629fd034a944a430f08afaf318e15c00234b19102ba7165edc4cb8
MD5 a7d3a505734e12ef3d0ef78eabe7e190
BLAKE2b-256 9635104c17d43ed1a0945cf965807dc0f1cc41f6c62c9c92bf68d20d42724b1c

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