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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.85-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.85-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.85-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.85-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.85-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.85-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.85-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a00cc506b43b95e1b8451fc682790ef4d9cbb4ae60f21ff32d083f0bc014237e
MD5 9a270364b95150ecd9c934816459daef
BLAKE2b-256 d0c8043672dd8ffa50a5c36236fdf281a48621aa40c5c0e1a9a1497d3fa19202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a2e52b023720bf23b54a45ca92acdaff837b14ce92d5630d6ce56021c4363be6
MD5 02e40dcbf9711ecde13d15c124b463fa
BLAKE2b-256 da1f5527b0f03793646be8ec9b5d73b0801957c032c615d2b18db1636a07b299

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.85-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.85-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d25329efa9a143d35f7758f7ba83f483f7f33b44a59f004c9b15ba53bc7f9a39
MD5 caad36e118776459916bd07ebac36747
BLAKE2b-256 08c5a49f249a023c672575c6e7a7be215745ee8c5727b8f3584817e1ed9915f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.85-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b60364e9ae2431a6a38f69c2645124505aa9e8675514749965c8dd016f97e18
MD5 791fd87cb141f5045fcf6c638bcaa6a0
BLAKE2b-256 eb856e6a6fa6aec2dc8d77beb1f251f35a737c0743ba5177d980c8ada8f83610

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.85-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c643aab58d6fc70d5211fab03454abdcd0d450a3fd1f1b13e65601fc9d75b619
MD5 4562d9a8ae92f4407b4bbdf25393ddd1
BLAKE2b-256 9f5da2a1777c91fe7a8e15710fb050160904e11f1890c59a446ccca8bdbc23cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 13f1786c4f45b7131a2c908b7a6c431c5bd925dd3af48d51b27e90c27ba588a3
MD5 1b9d98c98ddccbe667fb76d85551c55f
BLAKE2b-256 a8040232b543e1b8f4b5974c143920be9f352906157ae06ea8c2da9d98fde680

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.85-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.85-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b50477ee8f26cca940be55001c7208833617c699b321de064b2e66f22c8073d
MD5 5604c0ae5a3c5a5e3652fb54062468e8
BLAKE2b-256 2f8c2f196e55961778896a9fd89f76b6037caa691fcb7d308bcafa286c980bcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.85-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fc2896793adf69b2ebd7489991c64804a0a1b36264fbc44ba9a99a4a0c6d3b0
MD5 506a42ed7354587552d7b08d4eaf24d1
BLAKE2b-256 f29f8a952ba6001e562db408668fe0e6e1238f1fca6671eae8405e706667d528

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.85-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 38241ac24e1e07a77d6cd225eedc14396b70ef7b3276617dd70d121b5845655b
MD5 544ce28ad29680c689b7439417a021e3
BLAKE2b-256 d5852fef0e6e7e7dec3dda3af7edd9ba00b0a1f37a7c3d7640c2ddea48af38d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 68587fd8d002ae28cf474ff74c0e32f2a4a9c56f75dc5c9944858ff793ca0096
MD5 bf6034f4bf1a219a03ea4845db8415d1
BLAKE2b-256 91834d2629ee7178111ef16276047da9bc77112898401bcc51099c67c0205ef1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.85-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.85-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cee7d071c77a6b27b5ea2b54c05fd12931208330a00c4198d70a5c6e69cc0e0a
MD5 aafed50438de52645b5663d52d37fca7
BLAKE2b-256 1f9f1ecb5c2796f58d7856da40995d37062b6e9640ff53ba818699ad6f49bafb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.85-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15cc2a3172446a846451029ce89f047c1b7e8215bce3e7feb2c5381a7b73bdd9
MD5 71132a72da53f14eb677f7159fa4130a
BLAKE2b-256 b7a40b64ec22560417873d3880f598f156590f878c57225d08b15e3f28d7c96a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4e49ac87a50e3aa06888e5690684f6b1b5cfcb0f88bd87ca9faa313e832895ef
MD5 a8abca346ed1ff682da4d601e07d50a4
BLAKE2b-256 1930ba47e51565d0c6e1696c012cd3b7a4bb10e073dc44cb2a159c55ed69698b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2db617712ef6f5ba67e4bc1837f7bef4aaca661ac1b1f03d874d646431285f10
MD5 308fb0e88f91724bc6f685977facde20
BLAKE2b-256 b52b8b2878099766062522b3ac0f1a6b34b42b7cb0121e55b5b092b3f773aa59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.85-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.85-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d12fc6efef07043425f51e282e680571a73061e4abf901c8ecb68378259652b9
MD5 a9ec509a80d8f71c859ec093d17dcae1
BLAKE2b-256 d806d47d4d5b3a13704ab8a609b1314eb3f087ccdac1b939a395707bbfc3d36c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.85-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d52e259ee0e129e67af92e753da5cf7a80779994c39bb24cf13219d68fee61e1
MD5 47442bf59a8bb405c54a014b9dbcfbd5
BLAKE2b-256 09377099d193a074fd20152a385725b3e3830649cf0827a6311baca1242020f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 181aeae931100bcfb4b56ae3de4805ef67f008c9983fba7c4f81cd6dae86c582
MD5 b11842deb9039b5d1e6b9e7a7f5dc316
BLAKE2b-256 0bafad6ca7a159c65aaf230f35f5067f602df996508e56af69f5ebfa05f6e5c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.85-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.85-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e22c99a5038d30e4cbf8f148c92053a90b6c723c40754ca8e98d71d8b2669694
MD5 aa46dcc0f9918b513f777929709cb986
BLAKE2b-256 fba0faf179cd519b56075debc0c7d6b1cb3b3a35e1a7161db7d861fdeda266e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.85-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.85-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d1ac1e06adabf14f1a4a7dfd9876a2a60ccd5b5729508e80df3d7e0f94da5de
MD5 82691b0fec95525ba33b3e1663831863
BLAKE2b-256 c47eb94d6b9cdd72c06b272af75b10b78579d637cf40de0a8251496901b9a31d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.85-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b28cbd41edc2771e15a5db28ec4a271b5a32cc50a51fd032c99d2d34a83713bb
MD5 f42a1731dc5b556ede4c2a8ffecce9bb
BLAKE2b-256 0b21c69c4c9c708a1f69ebcf116f07d4c956a36fcba69870e5a238c44775fd65

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