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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.563-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.563-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.563-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 552c17fc2450d0d6da03fb46bb5b5490ea4e6dea353d7fd1480dca10d03cf6cb
MD5 5e49fa6219a3cb14438a778c0877200a
BLAKE2b-256 1d6241d90a23c9935309ab02685f00f17afcdf7ea004744d57b295ad388c99af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 71a9ba83b4ecfa8aeaf74d1a89158b5275d83be7fd219a206f42a8c8c24b2d77
MD5 2af1d31bc203a750c5651278b64d622e
BLAKE2b-256 2e4db234b8e815b93629503538dba6d1f5afcdc1dd24a538a70b5d9d5bf0bebf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.563-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.563-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be99ec27bfc29c9830aefdc006e3d7bdc72111d3775730b6a2f84b769a8084a1
MD5 88ffefbeeca697cd52d3c777c72a49f8
BLAKE2b-256 81cf6943ff0aeb73afbea332aed478478b4dbb8921076c3196e083435adca0e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d179eb0ace506974330294959abedf1f28695e10369ed47d532249127c4de47d
MD5 d9b95159aef1f9cddc88b5250e26a2e8
BLAKE2b-256 05e30c11df090a11fb0a3398d480a79a4324d44c5cd97bf9ebfd49c9d3f31017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 79be1a185589a820ad0b840b83f8c4a34e66686b6d3bfe5e59fa4dab176341df
MD5 a272be60f1d117688e516b6c049e39b2
BLAKE2b-256 903594cb4b15e1fb19b77d023ee2f2c0cbce538999d895566778f0fb5bfbeed1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3ef63f761a2bec30da1f392b2d1ea37c7e1a02590dc8847c3e89de500a1ca170
MD5 250ee1a84b3819720e304609a6e731d9
BLAKE2b-256 82419b38924cf45e12729cf5667938a103b4bbde74ff01939e8cdf32591f9ee7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.563-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.563-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae9193800c5ae35354c9e9bba97f22f7113f073a201798d92607dbfead9cc668
MD5 b99f24cef2951c45a2ee94dac3e67a96
BLAKE2b-256 4e3b67ab2615bbe52bd1922ab672d0f9bd99a559ff6fdcef4cbdbab6ae3980bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d798b0751fb271fd7431536f877c2d65ca96bf6c565fcd3f010936eed55f068e
MD5 ca09b8379e888bb88bbfb134e150bf68
BLAKE2b-256 784206ab4eb7e02b398ab7c50720ae4f03ca03d30883af0d16761319e31cec11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 44121fd4dada1af2b83301cb30776df9737d3ebddb1b7e3ab80444818a80236b
MD5 0ab152e167c90eeb1e9effe118814744
BLAKE2b-256 2b915d8dd396432b89387e5097907d5c90938ceb33b74a8913ac9da6ebb7515c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 166143651b260e2360cb6aa5e4db7717a03d752b493b281f34bbded2dd43f452
MD5 2182a4b980096b08944e8ee14ed1781b
BLAKE2b-256 f300dd8336ec16a7f7ed323ef760ad221af8cc2be33b5590376d357b0caf280e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.563-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.563-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6d8e43e2bbe21e78d7c3ad9539a1b60f3423da4e66e38fb2e26967ae8b060a2
MD5 963af68845cd2fbc6e4fa47627923917
BLAKE2b-256 b82156f5a5c47be7b89a896521f00357f951ed0402aa7a17fcee523132d786a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0e4c7e1cda2b7089bf133f2dbb9531db7bd4f0ac0a98db30cf587dcb210abba
MD5 074c6215933d41d47208ff55d32e5c9c
BLAKE2b-256 c5076939411c584ed46dc63ca78e29188744dfe89c2c5a262642772015d29b4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d520aee4723b12490682f023893ce4b7233177887da79a8fa3051d4e47c2a44
MD5 df9d358d7185cf98f415054a0d45eae7
BLAKE2b-256 5a2aac97e9da190dfbd86edc9601b0d528da6f39774455935fd59d5b7531ac8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fca468dc6e883521e21fc9f0bcfb290780e63ea35f0fd0d0e59782ab4121e0ef
MD5 af82a6d813b60031f4c1d19130f1e793
BLAKE2b-256 c0ba9507ee4dac4f4204e8564854717966b0944f431e0a29253b1d3931b8a1c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.563-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.563-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b56d9b8567a208f3a8fc36f1ab764fab069aaf29e4f15e4dda697da81faaf9a4
MD5 3afc66ebb7ac8f50cd2cae8ee5d63e2d
BLAKE2b-256 6c0407bc8c391edcbfb61da5518e36df343803060cba7754b650bf9ad0ef3a86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 355d29ca6260b77f5bf4a4c9cfc3b122b6a5fdd422f44ab093697aa8a984e737
MD5 83a40b8643306813c93cf202ffce7601
BLAKE2b-256 8a1c7cf3f87b10c590d6c16836466e436f4ca05eac798be21132d68f3ff0758c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fda9f0a66c1ceba0d2e1db3cc84c1acdec4731d77b9e60b86de1359c48fb5c67
MD5 082d4e1a337e08b5f6598931ffa34070
BLAKE2b-256 57e377693671cca1e4d964a80b0d33c77e20cac47b68d79073e62cca2f79fbc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.563-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.563-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f3a46b6b214def44f81ad09ced812f122f4e1d202d2b02b3a2debe4d85602c51
MD5 d7bed8b2aa64403ec8d03c00a358eeb4
BLAKE2b-256 e8b5bd45d97e23cf0076ee6e5fd065d30e921097bb1fe62416b9ac0b71efb5be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.563-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.563-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f29fc1aeee1dea5005117c1f1cd767b206626f8e7282f673ea981820646a3dd3
MD5 d16d4246295283a1af408c2a2d3474d8
BLAKE2b-256 3bcc2612b5932f323e22bf903d002a0a3b9ee0712280d25806665406b4d90bde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.563-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da118e3835fc994aa87fca93bf260c70f40e72cc370b26d0629d52068a058d8a
MD5 be6af559e8f14efef9d46d2f97a58f24
BLAKE2b-256 22820a760fdf4b7434e3a1234248cdd6e79259c3c1a8ef84cb972e338d5b1545

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