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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.372-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.372-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.372-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b728e5eb127f64e12a3f7dbc5ede2f96f993cc12660f741629a49c2c270a2acb
MD5 e06f7860a74b76f92798a3c9405d0730
BLAKE2b-256 9ee6b49b6aa164aefa2f5c583f3f2e77bf3f327760d89c21870fd022f12664a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cd567125e42569e32e58485659e3faccbb70a91595825a501442a55cd7452240
MD5 c12b942002e87bccbab3fc7f1c51335b
BLAKE2b-256 10c98a6e329a0e27ecfe4fcac6723319fad6037524475d57ec5186a2ec1ccbe4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.372-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.372-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9887987c427e53347ddb3e72c77cef29ba880dde3a05724d1ea7c0c775d37f6d
MD5 6b557eb9cf959e9427a937c71fab33b7
BLAKE2b-256 c021c3b27d5b217e79f234c7dd9d45c90f9dd178b6198fc642b98d6845dca024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77e59f38ab2f1e85e92a1dbc074e730e5539496fabcefbdfc77f6edaa9d061f4
MD5 db5d9461374b224da8629b9f8fa436bc
BLAKE2b-256 9275b7f6c27a36d4e67d32995476bc441d0d29df2a2019754e7668468a5830ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cb0a966a7fed020564997b9351b78f5f321661e81cbe68403a3ba5e33299e198
MD5 6b5706fdfe0504905fde9c883692921b
BLAKE2b-256 28da6cf4aa095c0bebdca11c9dcf25dbfa60fea3e39ff8af3a606580d028ecbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cdaafb1c0002f0c5c701d97e9fa137422e90ecb20555f7b41c3df2a477aec6e1
MD5 bb7d873069af8f43395ce90fa6b993a5
BLAKE2b-256 caa6caafa6c1325890e30ba7b4f25aec250be1a323be7dcc8072209111eb87d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.372-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.372-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc7fc05530181dbc1c0e9cdad5bf1f220240bce0b6189f86abe9d067031fd781
MD5 acd9b436ce96cda95de0a544c9e4ae27
BLAKE2b-256 cbc532cc8a83dde35d3a3e8745bdbb51434f59d0c1a38f1bb5783fe4e78aa813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce6ef9e5c4b2e155273e432ac50ea0a08f3ce9b89e26650cad8d9659054e268d
MD5 6bc42c551d20cd6b39b40ac2305404be
BLAKE2b-256 3b2e72e742924d40750f700de4e53f4bf9d246fbbe2aa96d280b772eef5e0367

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6594564bc7398d5625270d9b379b02cd46b550e0210a13438b8bb37f1623da2f
MD5 9a19d4c64fd44bbd562271384452666b
BLAKE2b-256 d71f6ea755e7851376d914b604a350c8cf6065e664adb7b27d794392eb6caddf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 60a3243503ae04b1f8b023e5a1680d108c89400341074473f1552699fe286ac9
MD5 2f7aa40b9c566ae4643960c58a55c36f
BLAKE2b-256 271b3271974036fd57fc5437f6fa45004d76ff4384c6926890fc2deecfd6f1eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.372-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.372-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c099f4327a276d4a25c0b71afcf0f79ff20cd061e1331de12317441087e1e0a
MD5 415031740c1be702860fe976def62937
BLAKE2b-256 cd63aa703e2c62de8ca46e8e65c77bc817b7b4eb07b5b11d4bebe338af68928c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5306732969b0a900dfed165456c75168d1956495e898f47498a4239d44515481
MD5 3bf51c90bd2355c6197492befd334d80
BLAKE2b-256 fc20773b99f052870b0e59881aecbff8c0e7ff8fb05956624db51fb967fa89ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7545e91ec8f597affa4d03ef77cf6e5a0bcb688c45ce18c3b40bc8714613070e
MD5 5936fc4e854a5ceef8a4c936eecafa05
BLAKE2b-256 2cd194572f6fc97bafc25b69204055dd2831302c9376c0e23b21d952dd2462ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fad5ae163ddcbc14c1dc130429be62214eb21f5b67c93186572ba9920a0400e2
MD5 ff78711e21a7d3e44bb3f275c0d6c16d
BLAKE2b-256 99459628505ded800b47350720e5ca7576228a610ac9e429a819bc685c4d99ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.372-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.372-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce06bafaedf2deec1c7210946dc982b6fad4d72e26bf3546d71caef16061729a
MD5 082516eef1b07e0d645a6cc971865119
BLAKE2b-256 9b1fb7f9acd7d0503a918944c81876cfe921bb543a14e7bf3a9794e99c763205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e5975109729b1d4f7103e4d726a3e250cf3221bf65e74f8aa0f53e841fa5f8c
MD5 c2f1f9e9a1aff76fe2f17980926d9729
BLAKE2b-256 3175d022cceb96b818e9d997a3e14aa5c1b7c606d8fe95319d29792b403053bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fbfe1b0be5b1d0587fce3a8c55ed9a725fcc722c4ae066deead80b06ff9fb230
MD5 8778c63526899131328f9ed5211e1f14
BLAKE2b-256 3488efa8bd884ec9e68e74586f60789e5a5b62149d7decee172f52aed644d824

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.372-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.372-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fe88f8ae3eccf8c4393b463496abdbfb270cba33501a72b0cc2e74fb5582874b
MD5 554e0a8e9d6badc99d97c352557aaa46
BLAKE2b-256 07659d81c5044154a07c705140c0ce94da50a1aaad8c601ee6a16bffe8ba7c87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.372-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.372-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b91fffb92721683304e647e917effb4bb237152a38b94f491feeafabca348319
MD5 ce2df20d9226ac10099b8f02137fdc6f
BLAKE2b-256 c4417e2b95587d8cb23f79b0aa37ef3289bd131946a8ce1b8d74a34af56b50a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.372-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d3503b8ea573472281b7fcb9cbfe0889edb7b7d57a26609040e14f67bba88c7
MD5 fc014ee3486e3990c8e616b965dd6d5f
BLAKE2b-256 9b01f4eb0b992181d95d27a8bfeb8a8ef3d70006bcfa784da46502c23f367010

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