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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.903-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.903-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.903-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dc3d2097befbf8099d9b3b2d3bfecde5ff7409291977ca08f0f8608e718fd23a
MD5 e3afe1b4bdaec47aa908bee4cb4ad43a
BLAKE2b-256 552c8b3421786fec45e45cb3617ff760c679b6b3e0766b25b317d396fd8e8aab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 238c10e6bc9318c88fd420b5fb04913e872b33e1b39a00f4bca775e94e42010e
MD5 1401100f8ddcd946dd713d23c51db9f2
BLAKE2b-256 5a3aa67e226bc49b992dc83964207db1bc0d284785199adbc2191942f9861f91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.903-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.903-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 01e8bd3e1f78ea5d598189d14938d755b133682cb82f4b0f6d15dca82f1104c0
MD5 97e051531539354788ea81dc23b67a85
BLAKE2b-256 c3e292e8e15acd68742152c3ae1379b05c53ec566e8d2bbfd7eaa180f07a2596

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9da045df22bf9831371be5f39869a9180e9dea6705fd4a8fcc465a455490aef
MD5 52d75d01d71be668781b9bd0b78cbcbd
BLAKE2b-256 447cf8628d5731905c07f7aa67b9ffc97c100a79fb2a86508b55b77c2b842c80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2906981a1636dd894a8bf5720a8785060f0d4064b4f7c3431db28b580c75c35c
MD5 8c154d9158b151c7aa096b5aad81b9d2
BLAKE2b-256 5f4a96517bb55f0b04ed96743d581a1f581550db04f52523cd2c60ed4b9fe3f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9a733d3fab03b2862572b8e4d887dc849caced8fb3efebd2a920abbcd3a7abb4
MD5 f85b1c9d97b6095fe47c970b50a9fbf2
BLAKE2b-256 7fb4359a8adf753aa37a061c81dc533a442be6c474278b9ca07de1ea31282671

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.903-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.903-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f4d899ab1f5500db79820f1afb2544f3e8a5fce8ab32d100e4a741c0b963946
MD5 f4aff0230e9fed4a6f75f03608ac695c
BLAKE2b-256 ddea9aa8e6930f7cac6ca51b0207a0ff375559d17cc54089c718a3ddfe45f9ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8525461b58f3acbd1808d15f868191335f46a2984ae9775ebf1c8d14e8874d8d
MD5 ea7746660359b7078e595d2892934281
BLAKE2b-256 ca8ea2ec4f10ebac7c35b8dea6c70fb5d3e85476dbf4648baab87284d64ffeb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b5240a29c9ef9f20f17f227026f972dc6d83f3176ad3a62090b191ad0f75a6d5
MD5 84ef8350d2f18aa410c4acd1590f77a8
BLAKE2b-256 707f747198814ae7e7a28b2f1ffe6f03bb63198c67dc5bffbf31d84897dbde43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d5f088bb9368498b89108ab3ec8786857024b49bfa3c18b784fe9745b969866
MD5 fde4c7f56409d470c9907085b9419e01
BLAKE2b-256 e8eb1a4e8552498a20dcb24af703536efede9c12f15514d0f44c30c38eb01d7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.903-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.903-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02eb42369321304f41109e0df8450d1914713542f150da5ad11763ac7235d799
MD5 0f14abf28ec6e37675564adf5e90c629
BLAKE2b-256 db38c05d176f0786ccbf75b3c1436dab3fd34fbed43083676701c50252f89e16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0200d4931a562baa79d6bacd4e10e1fee7a6c3746a730be2e647c43fd4002df
MD5 1838840820276209ae99d8eeb47bba79
BLAKE2b-256 87678c588d731edf11a503ed5ed96679cf23f14606f725e0ca65a321dae7696b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2f0f41a9e409b32cd0ae54df4c120e3b08b47cc8ecdc8f2258b5a52e37b9821f
MD5 8a19d6a03b58e01c3904f1e37bbc47f2
BLAKE2b-256 10d56a8cd605cceab7074fb25bae3b2a125aeb40d2018924dfcd2f171a2e9dc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea58102d9fca4e73ab165cc0eb7849b2e94242fea51a16b323c2b5574ab63195
MD5 2e626a88fe06c2afb81e1d5a80f06330
BLAKE2b-256 b55753495bf0c1eafaa4c01ffc74f0134e13d63fdf72e31a09ef638a0a9979ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.903-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.903-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b5a0318aacad9c7a0d26dd149498233bb6dcfad3bafa3f84ba81ebabb219681
MD5 6149c9d66b3b408eaec5f5cee3bad131
BLAKE2b-256 401081f359819fc4cc583e3d9f0de9ac92fcfcc656eaaa1d8d0ee639092a06d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f7bfac1b7925b115a6921c8192a1e10d090314475de2205520742f7607bc605
MD5 7e7754ba19d7d097ca0ffd78b4020991
BLAKE2b-256 052d3c3684ba0d0bb2b306ebfdc03b35faf82cdbb9f7bd7fd5a27af480e62be7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 367bafc7a74705c230dea40354536c09b346c87fdd51d4af4cea6d9c74673583
MD5 4fc25852591c8f56ae90eb174d7605a7
BLAKE2b-256 b526c67c20ff8268bf12401f85862207c188edcb35eadfabdc65a8134de17b1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.903-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.903-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6e8e40274ba7d55964b1eeb160866b47839dd3dd56228e8f2ce4800ad62450e0
MD5 49f978a8c0e91131bd5c53bdf8841caf
BLAKE2b-256 17d40b951e2e69927063771817e91c70c5754b7ec1df573a4aa0ac19aea99363

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.903-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.903-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2eff434e4042ab5a4c47ef622972db36001e109f9b9427dee451d6898e4ee1d
MD5 64f9d42b4b4656dd0a242c71a10a5a86
BLAKE2b-256 6f2072d4c7f9b7fca7198519b3d6655381a40400a003243fd9d9dd5024428507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.903-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 027ffeddbe05576a3ce0238fe3cbf767e7ad70fff38636f981cc63c1965b90d6
MD5 66db6b618355359690251dcf9d72388b
BLAKE2b-256 37a5a17507c530d2365fe98cf043792eec1c5061b40e67c7021bc141f8deba50

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