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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.276-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.276-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.276-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d67c95b490cebf50bb23543b6cc48bb9239e53b0561602b73595f467c9033c18
MD5 b88412dff287a67ac320a1bbd01a6b03
BLAKE2b-256 ee648f8718d5003ea0747d7a3b40f9b0c148d47970108248894605451c0c7c9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 002bc726bae40fe1b8c396ad0c807fb2e8a4a8e5eb052e976e6225c08cde2446
MD5 441c8811b6d3973a2069d70505df4a95
BLAKE2b-256 34a1493ac20a2610a6e62d7b7b60823941b6d3c3243c623ba74078dfe18c76c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.276-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.276-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14dc87d5a07a3bfc26abdfe480132afc5719232244c2f385ebf00dd430be18ab
MD5 862dc0444ab3568242f4f0055c0813c0
BLAKE2b-256 aa7416f552ffc1155faffbd8f5a99ca0404c0cf83975c1ee480e2e167461962c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77db89d8d526375d4e3b75dc622e2c4e748961ca0c70ce9cdfaa491d0e724b0a
MD5 42044cc795469c4a4027071b58e513f0
BLAKE2b-256 cc8dfbd0efa0d58b1ae797fbc65e0d07c75c0ba09150b59aa2cf963dfe05c97c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 311c05ba4a2eb4fc33f4958f1c254198804ea4ff602407f8c40796f430965e26
MD5 0f7e69a4501c9650e0fd99bcb7f0fb68
BLAKE2b-256 33781b6e9db7597c1ab07f74ba7f4599b9f9e8aff29ff8e36d3a23f80ef67b47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 02785be5b304dc4607f312bd2e840a03fcf5ec5693e893b4d0d924b1f9778833
MD5 b4129c7693ecde6a715843758e693ad1
BLAKE2b-256 8990115aa2c3caf4aead2e063032b8a2579a27d0dbca3b53689a679aecb9cf95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.276-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.276-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e533c2ccf191dc4e70d390e99bf7f998a999b0f87b3443226a31a85ed859150
MD5 c499c580943a64d1bcdd6285ed5987ce
BLAKE2b-256 20818d387ec0300527f4d641797f36e0a5210fc50afef70c7f15712b8ba0aaa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b221f124722c3eaf8fa3134fb9e7b183bfadff857d90854639d808b5f2f64cf9
MD5 b10bfe2ecc0dbfe974b4ff11acb4394a
BLAKE2b-256 9dceb8b1e37dfcecca931377b660bfcadefdcb9c03275f7b97d35ea15d15bb43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f56330988e431de85f2ea4ea202e9212fa7603554a57627dd4768799c9a9976
MD5 b6da6e13a94ab9c17c3fda389b1e27ad
BLAKE2b-256 f1976091b75efdfd620a98b00a052bf7710a618d0c10e77a874a3c727a5f15d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ce4ebb90e6f425b5482ba344a5b0884a25219c17e9c57c60fa52501bf24affa9
MD5 d7663bb77c88492247e82725e9b94301
BLAKE2b-256 4b76c1378a21e995097c4a1a115a6a204631e922b295405c1b85465027988bb5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.276-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.276-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae5d53eb0ce0b6fe54fefc551b091e72abb81a4e771156ed14224fa942f9d761
MD5 97e50be576231394b71e0b9cdd6fd8ea
BLAKE2b-256 feca0c71c4d4ce45403db19cf49351cfd3485f9c729ed9e1bcdcebd1a00f1c7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5f104cabf073ddf2191bb65469c656681d05035c02010c6354bc46b2bcf116e
MD5 2dbeb1c0ad86ef1b306e638e38ec48bc
BLAKE2b-256 b0119e78a0b0e97d72343db618e566dd104cc10a046e50372b5635bc6b9e7afa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7d927d659a250e251be71dd98be93c152ceb2410eb79884233ec370d64023586
MD5 51ff71628a18c490cb035e163dab9779
BLAKE2b-256 4c44bda07e106f173785782ab4615abd3a4f1b73147e55e8d32b37e9c144d5c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 708850f10a572e3a234c4c59b4ff8125fbd2577d840ead823e8ba4a035ff64cf
MD5 1331702c1620d3db22b258af25e8c747
BLAKE2b-256 7879641f89f1c79172b87f3c6cbe584e2cb6ed49c7d26e30b6cc0006570080e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.276-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.276-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35c1c300d2577ee4ff8a559c869623048b568287611d6d995d099bb8ab712abe
MD5 e515253867626553bc8a05acce1c688c
BLAKE2b-256 a6972ed2749c114e05bfbcf78bcb61be05c098d9799f86051b26253b7518eebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29443a38414bde644e5bed0605cb0fd8081c7dacf70a861feef14f8e583958b2
MD5 0a62e039b4fddb21b61cb416f43a6940
BLAKE2b-256 a7926db5ac04cce339c201132c6a46bcceda4064cf6ac3cef873441980be28ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b106ddc5c3916cbdd2360caae22b0aee542782512586f466124087ddccaf8328
MD5 512e05ea5dffd016af4b027f2ad1dc62
BLAKE2b-256 81b9aaaff5863bdab57f2db170c3763c8b2df98697818bb73cb5cd03a6fc1eac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.276-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.276-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 454c2134d172a2d143f420e6c3b9db4cb0022cff95c4ddec6a34802869430d67
MD5 c1e46e9976580b74d6147413508cd56e
BLAKE2b-256 c2ef573760aa3a563dd36e1628a1021662e4d6cddfc14648d9ed1611b8dcdb1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.276-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.276-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30578c4ee9bfb337ffd549b0c779523f66ab5ad0d9558a9de80ecf4ccc345513
MD5 ae73c13ef1bbbcc9fa18f7c7e17f7220
BLAKE2b-256 5aa42bde8855f4b0ff972fc17fce5794f011555095e63c4519b62d0ad29bbd2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.276-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e56b3672c7b0d802f5e56012ff09deb7800572d707a599f855279f7f7f12b55
MD5 20ac4d30d7f70a04e4a48445781c4111
BLAKE2b-256 02e64abc1fcfe427e4ce0f6dbfc93db19179ffb43a2678e3d8c32e29f2f602cf

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