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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.545-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.545-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.545-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 631584fd3cb1b9efc668a19f8731e9aa56a3ae761fcff21b0a3491534d264b3b
MD5 275b01b4069513dde4374ffc6cf4b93e
BLAKE2b-256 0bcf704158dcfdf5972c31a70e08a92a0652e6a1489bfdcde044b7611b0f1ff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 db3ad9edbd09de64fd74e2c433da859dc88963909f1f3e88518fffe0aa6f17bd
MD5 693c78b7146a868c93a9857652b75a6a
BLAKE2b-256 6d5d255655fd039edf34e54f41202a3bab6fe01d4d28b4f39833f48f346164e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.545-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.545-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 262d8378bc12f581f620ece4edfb2e0f2e71d4269acded026a9ff55451091425
MD5 973bf30fec067e75e2d983d38d760a27
BLAKE2b-256 04322b4f03b29b1b5b1805fe04f7d6d3ea2459613974a7bdd6646df8ab784796

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03c24bde99aa7763cb639a989efcb2cb2ee62e28f0b56583e6f4703ac8cd75c8
MD5 d2928a10bb93d9b200e155a1348e3883
BLAKE2b-256 7061e5b41fa3f53a199de8291526cd26c57196431796f628419d21dba1305386

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f13ff8c3e119cf88f11bf9a21b442967fcfea28206f8fa13b7ed887da6b47d8
MD5 f038ffd0db48fd03be2359f3ac06429e
BLAKE2b-256 e97e88d227065fe51fa2f4a6faeb3c2c6d3ef6811879c443f8123f5c97ff641c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ab318be6d24933582ec8bab80390d05240e1ffd85728907869d02801cc582509
MD5 226dc4c3f5b055974a4d446b63c69453
BLAKE2b-256 87d7378f3cc3f227cd444bf1ed0fea52ac062a0be086cb51ef795978b5a63117

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.545-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.545-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3f5f6675651ea0157e0c599ab42a82abdaadace02d8697c2fe957e8981e6e20
MD5 158547a3713fb05152ba684a6aac8e44
BLAKE2b-256 8bd7f9b27b134bcdadbd5c7cf9b0b99c266b148976a01ad5710238364070e897

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76ecfd3aa7e9ab891fe45564d059a0810a3499fe1e08c69b529003ae1aba7e24
MD5 ff14bdcf199904bf4acea894dc9ad274
BLAKE2b-256 cd4aa253eccb6a6f1c6da918db57a2d9d832b7a22b27d1d52f1bd05a348f8608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb7e5dbd3bd0224d2a8327b91dc39bb0a26f930fff62dd590c8e0e95dbd04768
MD5 7b1bebe35a087bf70e53ebbd7e5f8867
BLAKE2b-256 412ed1ebc8e855caa67eed029784ec03d99f2ab40d702aa9b284588957829bea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c1cdf5498656ed4a0c3304e2831343edeba83abbbb2a29e60c39ec0470188933
MD5 41bfde48c4d577ef7aca35c618aefbb4
BLAKE2b-256 0080c8103b7c2b3e288d7a67810bb1e77ef53a7f9aa5e23d707d1f3336cd5d2f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.545-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.545-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ec00d8a1a90100681b2ffa3ec5d941338198aab85ff0ad2a23e367c38c9d4e2
MD5 20c21575bb6705f9c12adf0ba262b3c4
BLAKE2b-256 217514b00e2eee1a65cf158488b0f3c4b8632d158303a7b75cd638c11cf1a35a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df086cf2423e0809630754eec420b00671056032cc719bc811ddc614cbe779b6
MD5 87f8183b69d1f2029975a1a5f7d1bf15
BLAKE2b-256 baf71a6ef96b907077f44d528769531dc40e8ea2ecb5ef4050e3216fed53456e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c50b11148df02489fe7df1102c379ee68396e9c2c4f5b34fdf87008173361960
MD5 64865b7cc77113c72bece1e3c0a6f9dd
BLAKE2b-256 85c076dd97db2d6d00f23caa50660fa6c64efae7f026054cac9ba0b3d1c99c85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9dab06964c32d140b4345b977dd7c1e5e5e901e97f4aae8bc5c432cc3f10a805
MD5 aad899ca7802b1cf80b6698ce55de328
BLAKE2b-256 06f15c3168afcb572e4456cb14b3d08f2df29d246485a53b4fd395d1df6a66c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.545-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.545-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ea7b5f5450d8302688af191f4fca92d1af6c766fccdc731233a7b151bf8a777
MD5 73ed9524f87b311e9c494c7b4623dd8a
BLAKE2b-256 dc2e1140283ff23a907e366c418bd2e96f4145e0979947cf875ba84b9173537f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56f91dc783772073e9e0d06e248f2b936f9160b64d4a46409708e92f2c54f7a7
MD5 7fbfb5a900566adc3377831baf151539
BLAKE2b-256 b7165284d41adbf718ab8d74e269ced429564915c84f184cdcafc24653148feb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 33a4e68e7ebcabd2058237a91c36f7dfad5382dc06362b218eeca6b1fd4e3e59
MD5 2fef04872cee4644b1528b094d4865db
BLAKE2b-256 b2a8f9d3a43bd28b6f11c11cdf1d2640125ed137acba7981c678c925911a9397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.545-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.545-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1636bbfd4e1ca965f043165056e48edd81476ca557ee619e5c05a646e5b75e48
MD5 85e3b65b0affa39a8f142140bc7f49f6
BLAKE2b-256 e94b6c70a5352ae5bf59235d1fab140f7ba4b3769eba4c9eaacd038766c60f07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.545-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.545-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15d9e3cb2f11f633bef244d550eecf62af04e133aa6859e5bf1a6d5905462635
MD5 72c5a8fc5b36020648c65630d78f4d98
BLAKE2b-256 d4163370364d3adcf6ab25e62e5e68c678fb7650ea730d513228e6076bc7e7ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.545-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e502ac615d8fd1c219f6e110c0528491722b1b44a03cbba78caeacc2863c7c24
MD5 64b6c301d554c860b1c2cb0d6276b96b
BLAKE2b-256 e73da77632bcf39e76d8327565faaf14f6dbb3f7f44e25f43fce2208ae819333

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