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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.666-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.666-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.666-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1255ee27abd6e51ce3e97beeab44a16e41219f137c1b7672e6c4e7179d53f85e
MD5 150f71373982c6387aa2a3ef63f1a9f4
BLAKE2b-256 1e8292b8222ef2b3991c90241507056856ba861b65305840d44e31a98a3747b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4f0b5ddef50f7eeab5228b52b7211f16adaf10e4172dc28d5275918445b39107
MD5 ccf183165edb16c714494be4efc97458
BLAKE2b-256 872d455644bdbcbc84ce796e9e97632da0124f4f2105caed126e675d5a2f8a72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.666-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.666-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 949660bb13ebb471909ca8db0faa172b4fb55f304d3aa3a842a9908994c51b23
MD5 c5a5bcee6aa8845a8d1c2136a0d875f0
BLAKE2b-256 c366e2dfc7fa8c01b5f7393cfc8988bc07b96367ac68169a8b6becba1f6b3c4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 420b681ae6ceadf3888fb989255ad29f5174b691e2c9fc669a71cfd83785a444
MD5 e7abd75cdf1b5387beee3ae72268e5ab
BLAKE2b-256 bc80f50af0eff811a5c58704c83c2ce626aa246f36d96949b01a02d3e5c8d9c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ffebbef985d086e0d23d5a8da55b1190e1a26e3ad0042f94ccf446b6ef8e1156
MD5 55fdb1f0e571629565bbb37339e01656
BLAKE2b-256 a63849fbd070a5317733e6780093e70027358f3bf7fb2424c9e2efe0ab75f376

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e5a1657d0ca0485b3328778b2cb4889d2d82a90f42be1ad0149e2caaa729e588
MD5 5d550826a6fae404f975f746c71263b2
BLAKE2b-256 0c642ec491b3b7ba5a9277dc28698e7c228379453e95fdcc6a06d9d2cf37eb7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.666-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.666-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b0c68a7fe361e2ecb1bf0700035132fb16e6738adabe461e5088ccfaf8ff077
MD5 d22e4b8d567340ae92a691ef5a377e86
BLAKE2b-256 871ab43f0d21120a1452500e9595771d01a758cc9bb85dc06a470180cdb630e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5d09bc3b4f8df9b2c99c01b6a73b3f982d67c21f824a1b0270046282cdb2a25
MD5 02cf06ea410e9094ae8836821f7eb370
BLAKE2b-256 7acf779074dd5ac48470a5a38df87c252b87e98c7f5481e2e7c8bb3c8db58bff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c5bea42da59a7b3f5fe416b8cb2b12659b5575f3a5fd3598e5ba914575d40997
MD5 545de9bacfb0c80b6cb93402d0773a21
BLAKE2b-256 5613779288d3a632dda682e15205c7724459262d7b6a83c6a70ce3669560eb38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7f7e35b7fd0ee95c7ed61b768fc9e7c3aa8e53f4528a16d64c43cb63812cbf53
MD5 3560db87f1fd212d6a88a900428029c2
BLAKE2b-256 51e7a690b81fb689092af751c36311cd6299032cdac723ec9adcf5a8fde8d1f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.666-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.666-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99ed07710c1e3d8dd082bb443f1e9bceb6bfb3bc94d6783a35363c9a582007ce
MD5 87a1e82967fa737d23de14e7e6dc93a7
BLAKE2b-256 2ca8f7e702ea914afb611b5284fcc4d6bfea0d35b05b803e74ca5bab823a101a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6cfa7a833526ab2b9fc4cee09565838c704f61d2be798a196420190f6ba3ebc
MD5 7af79ff62fa8f389276f1ce87b0452b0
BLAKE2b-256 5015fae18a7047aec4b14bd2aa6b6d3a3bd0a171b2638ba48a85f087fafd1392

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 88e9fac1c8aa44d3d93f8e90c1442f5606aeed69ea11499ec1a408da44ca86ec
MD5 1662614009ddb17e927d6560b0d430d0
BLAKE2b-256 1a0eab96fefc92afefa802e11d72f4838420fcc7d4efbde2e21482f5fb775e6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 01c4e32e94654398ca465eea1cacfb9ce092fd4d0279afe068dad368ca9ebcde
MD5 549d2896018e4885c359c9ced05249d1
BLAKE2b-256 8023f7f3d40a91898ad128d7df382dea0a083f82eaa916a2234fc7e6ca7127b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.666-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.666-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4723f4e77f0bf47bf35dc576544be94e02207a8f3bc560f9753b5e4e82bb1d49
MD5 18bd6ee4dce6a9e7fc4f0a17b7e0ffa1
BLAKE2b-256 336052d23f2ff1968dc224dc2058e27bf74e4bcd23358c668047229f321a733d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bfc3d8d387e0cc20e2e52360b38104023d3a4409627016353714991e40b0f38
MD5 90b89296851856985c6b2d4f87b0c054
BLAKE2b-256 acee35f03d4a6479385080763366bf63f0e36fc5c204fb371cd43b683ad3bfd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d434c9f1029fea68eb2e93ca9c4acb2101422534188c6265f0cd056a59e79f54
MD5 dab77702adf129fd13b207094161eebe
BLAKE2b-256 8f78294a61071bd2a5c82d6510456161fca491564c08be3932751b78723b50c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.666-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.666-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4c7ce0783bcf47c4deec59d2726f79783d2977b070729f1765cf2d04c255ba3f
MD5 37d87fae9a54201dd238a8f9104cf59c
BLAKE2b-256 5c2c6841561da79538b4fa6e943995aeba4c70ddd3cdcc30e45d05740a160a42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.666-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.666-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1da55b8060e5496027057761beee3bcc82e3133d769a0acd01c967ef08923d48
MD5 c4fdf6a8c88196a5dfee5e114e2d2c6b
BLAKE2b-256 9a3543a44280f425aecc70a23cced68334fa0a3499aa54ec5594ce41a6118d17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.666-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b12362fbf74e2165714bd2ef242f1ccfc5c600d28b15f06fe8923e980aaf1cc
MD5 4962515897bba381c1559aa6d863eb72
BLAKE2b-256 a57167955747a73be7eb368d0ba53f47a974def43515487159e1e0d80b59ff48

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