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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.29-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.29-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.29-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.29-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.29-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.29-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.29-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.29-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.29-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.29-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.29-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.29-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.29-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.29-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.29-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.29-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.29-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.29-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.29-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.29-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.29-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6cd1104b37038863f8e7e6a3e95727cec8322d9857a91855383d7595e86247a3
MD5 e8c6fdb9aa4ce4086e9224c15a5123fd
BLAKE2b-256 a1279401bfc8f0da21091ee34441a794adb1eb9c20f23008adfacecc42e45578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.29-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1756a139409c1439bed84d1bc59bf60e7b1992f32c4768fea0db4ba8bfad33a3
MD5 4dfe90937f7a33f7e7d567a2c0fea1e4
BLAKE2b-256 ea87206ef4227a338e069cf48fe3e6ad7d41bdbc64fde2801a0f9deeb223256a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.29-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.4.29-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 820f6d29157b257307762d50fcc93bb4c8b0fd056e98b049ac64508e68029c90
MD5 cc40c9a473f52b60693787532bf46edc
BLAKE2b-256 522590ba4ea68e8573e1bcd50753f28bc204f68fad99598decca3d9fa45e19fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.29-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0da83b472e8671fac6b6dc692db40569a18d0673eefcc0acded75e0c9873421
MD5 00403458a51e3e4b8eb8fa8183a6a138
BLAKE2b-256 fb9565a66041aabb5649f4bce59347f0e83ae38071f012b3b7fa05bdc52dbed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d3e8f7ae889eaea2842618dcced32218817b70f9daa38c3c7daa4b6389aa218f
MD5 e6bfab8b32f848a1cf7be3fb8aa99b35
BLAKE2b-256 f8e02e760ea966704506ddc42f04ac414f44a0aab2f2b083adb4b2566d8ab451

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.29-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5392b0f563774e31237a7cc4ba074f355bcffc7acf99852fa67c4e74a13b07c5
MD5 fef2211717505fde3817d59f683b3298
BLAKE2b-256 491860fd111af2a6864eb19792fa823031888dd4a936da054f83a386d16887c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.29-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.4.29-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 502a06e1d95f6211487887a52b71b62c4261f58a7a9ceece68153ec0996c2849
MD5 a9c44f6e0272f2d87582ca6bcc18f369
BLAKE2b-256 593cd1512199d500e9221cf34c2e3c1bd47bc82dfeca4d9642e0c68cd09dd36c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.29-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2975f521f04b9f5cacbecef954f83484c11396772d156b5ff6b74d07d0fcb9eb
MD5 01786b7c519946747df5dee2ed332602
BLAKE2b-256 c60166b82a0229a8df6e101bc05df2cde245ae0fd935dc3d35df4c865f583908

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6924137c4a8cd3dae7e982e0b007acf884b12d584581f2407960a6e5a6514459
MD5 c2759e57665f1f8659b376efce8b5b27
BLAKE2b-256 a93668033252c311f36214bd509046a2a2cd67fe959160ef7022e1d246775fa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.29-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 948b37497a676d120258cd35a21c0bc2ea0f702098820f549027d7fd9ed55225
MD5 18eceac8cf2ddd0570cea5ad4d49eae3
BLAKE2b-256 e08147e92e3366c157c3c004ac92b0c8efb66081f97018de6099a22d4a47d637

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.29-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.4.29-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a555370ca3035908844f03d200242757de41650d7ea5adfb02819b4033331bb
MD5 98ce8e54dd70360848f136a3375bf26d
BLAKE2b-256 29029c1e75395710d83e31c76f8555b5c13d4042ac41b0890122de9f541fc445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.29-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 388432777e9ac12a15967a2fec145ebecf80772a4fde650897947bbf580fe162
MD5 fca6cecc5a53089b2d94580113c6fda6
BLAKE2b-256 582a6cd99e0c5d8ab6d346e8401f7652405692b8a38451b3a52c178145322011

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.29-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6fcfdb4bd607f71afeda8b314458e0c9e7ccc19e433fff9534f92a99d4cb62e1
MD5 51cb37329893d07725595edc29ee5c5f
BLAKE2b-256 3bb770e1c00b4e4657fb5de1e019fee7735b3e61931302bf56464bfd45625262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.29-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2818257613db69241415277273fd713a9bf2eef94b4d33f7efe7defd8b03f9fd
MD5 3d72c1c4f54ca300a281defcc87c1801
BLAKE2b-256 2f6eede93f0a23e1623dc3ca7a052348e5b8ae969ea1338253f45ad9f760f222

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.29-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.4.29-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bb3ceff8c547123411299cce9f4276c8633a21f45439faab8b74ab0084ff2ef
MD5 b8ef1469110ef16f362222da5bed14a8
BLAKE2b-256 6f4a20face736ca28cf0e5505c64d66275732cbc0c83e73d233b5847a0742fd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.29-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 112d76388daf392f68598a6b9668896a5a74a1454acd360ea62f7add56d831b2
MD5 8f00de2fd663a03b08386e2e7ce28af1
BLAKE2b-256 addf2d02761c158fe268324a22e7ee8f879a7109f168afabd16a1152b6be58bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.29-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 af64f3b0e91f7aee09f3216d7dea78fe0aac6828976f955d7332ddf314ca3d33
MD5 a39a4aaf16da2e3ba491c72c6223897c
BLAKE2b-256 44c0ca491d0ded772f09827b847d6e9b624044f70d32f38524df47d8a528ba4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.29-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.29-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 29cdaf9fd1580c2160400cca0f8142a47ee903e0d44b808da02d8c4dd4a3ff63
MD5 3927168baca0d9ebd32d90bfd202c467
BLAKE2b-256 5ca28a9bf7dcd1a868b4a0a6e267f34135b321d12e5ea56081415b38d96a87fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.29-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.4.29-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7d7b942a64306e86659435b62d4511bdff622e42a8ec038ed9d36128db120fc
MD5 99d76b6bbb3ebfbf74cef4ecd9d7e765
BLAKE2b-256 1386e3c8b68f391518ca02c12a778e849378b149c9f9b6d7ebe817ac9c3eee43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.29-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d9e9eb483da02a27f7a84060726a8729327a80d8c876f32a75bfd72661249ba
MD5 87dc26a5b8e4eacf9fa4a0f1b8a6f05e
BLAKE2b-256 9bd738cd59d52647f0a76f160955c53aa7adbb4efa4574ffb8fb3a4f6bc753d1

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