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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.27-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.27-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.27-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.27-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.27-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.27-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.27-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.27-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.27-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.27-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.27-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e0eebeeb9efb977de327d5ed614130ad8743a0761ac76896a53bb17ca62857af
MD5 77e95e78395f679168ef4f15a2e91ebd
BLAKE2b-256 f33b2ff543f2a70526f0aaff471cd8778c03f47f588b09d9d2465ed8536b9527

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ff634412c21a18082bc0a79758572b8758e20cdf2f6ccbe62928a97f54a9dc69
MD5 676a2104f243d36510fc0b6616241242
BLAKE2b-256 30139cbda510ba75fc0bea9de717373e647823d68cf3acd2192c532961f32be6

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.27-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.27-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87bf93cd46690952ffc32530dc475dde137f50c040f9894aa4eb602dd591e734
MD5 32165cea932aa68bde2f6f546ff50833
BLAKE2b-256 fbd46f4ab6fc5bd69e1c4282fa6e559e4af43fe6480c38666276701e1020d03d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.27-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9e9ca5dd81631424caabf991e19dff01444f331cecdf759b07dcc2b1d1f4e40
MD5 01f735a29abac7abdeb6fe33c7246234
BLAKE2b-256 1e01472388ad1445265ae3e8979297c6afc09dd3395d9cb8df19a88bd28c74e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e83d304502e218bbb3e414122e2675eb5d1bf4a3bb28c960c03be809f5f317c4
MD5 fa8615b497aa3f9a586afac4da85be18
BLAKE2b-256 7a91485f5fa7e70fb48ef0a300fdd9187b6b83be3779f3092a171287d400b300

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 45bf913e256da8f7c1342469781713ed977dcd86bd30c61d508e4107e20a9e9d
MD5 1516427b48f0a949b6257271f02a93e5
BLAKE2b-256 35078a30bcbca5f97f141845cfb8502faf0fb84b40d4140deaf719f48253c747

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.27-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.27-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee0201ff7cc6fb351e05e54a8dbe0114e4ed68e7a504c1f8dddef5545e9d8457
MD5 f28843cf07c40c56094cbaca24042890
BLAKE2b-256 20b24d817d3a72c7fd6150727bd91faa7968d45c6c4395669076a72b944f9c12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.27-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4f5add03b0f780fccc1448ff237d417eef0c21dc03901999a80666d2d84ba3e
MD5 27e3c923dc57880ac5cdda370c9ae059
BLAKE2b-256 a21d8ff4feb974b9ce4a9d79b68db6be398850ebe7c94c0821a7ac97e96f6323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dfd8dd626ade35b545a1c62ee4b2a21a8b6a0c1ba752500c1a7367d601057b30
MD5 867931adb12d1ef073a1d8a090d95e50
BLAKE2b-256 ba4257c9462868a7dc6b82df9fe7de7c7dec2d1909a777dcfe8c160b9b82a822

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a71105269850a09ec79bf794ea303640378b4785b71f58680b239c75096ed961
MD5 04f34a41c248afbfa27a4a31b37c74d3
BLAKE2b-256 9d7e0f04d3d09f7280c083c356c65cded48780c68611ae14826cb439bee8f352

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.27-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.27-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ab17409e4af39afea50c278ab715b72de2f17df61f8d87c547192362af88795c
MD5 32da0822f316b79ec5a5ca43c0d81855
BLAKE2b-256 3c12b9423200bfde8e283550511cbb62f56179e1d0aa869e84197d1a308d31a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.27-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60f2f48e9bc4f0c62da03bd01b125a2a5f5c142d6d70a55125d91e350b84d465
MD5 e9ad72cf689366bd1093c4db71ac2afd
BLAKE2b-256 2c12baee212cc49040eab443d0a706adf60fc09223a2837c29923e0e30d6b9ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e3efe92b4095c8a5898c69b4bf948d7587c9c46c548dab0b75507a513688bd4c
MD5 63f78aa8f03145dcbde589461e5f1345
BLAKE2b-256 4c9e51cf827cbe226e2a678bf2fc214477e36a76272b3baac17a92d4d8ac143b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 503cc3c5eb53d7851864fafa9a777dcb64bf1d11615a3aee35b6cb394820c984
MD5 e5f12e3048e276c02fdde9c4ccbf8930
BLAKE2b-256 09421b620ada19a23a50aa8fea0e4e752a6bf037038ba152e60704b27e1e3f9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.27-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.27-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 803adcfad529a0b160cbc12fd7a7981bc842249e7f2d64d73adfb94ae1373ceb
MD5 f430b06d21978c3e4ccbaabee385458a
BLAKE2b-256 d1e02c9f69dffd99e6ecc2f283f6b1140abadab09e07b90b8589dc4a18f63a6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.27-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5fb7b4a80a59acea848f9f9a6295d05cd318e6f7199c8d4169e00b546beb431
MD5 d60122a45ab5190505c9648b5887d26f
BLAKE2b-256 e9c56b15ec0e13f99672fcb3b4b894a56ec31111f32c00dbc51b4411dbe7f985

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e0356515d159291d0ce0ba655049eb2e1c701a575ba637efa631eabac6ca0054
MD5 5b90651b3d5dd36a49bcdd93e79730c2
BLAKE2b-256 79f428ffeaa84e0b657dbc67a0dad3ff2a47faa4a151e17ce85792c5109cbc69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.27-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.27-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 52486fa64a6f7ffc86a2389f2b07526e2122e85cf0a3e38996611d8ef25507ae
MD5 bf8ed38a0338051ae141d2c810199ba8
BLAKE2b-256 f66ac453217c36109491e6e64825ff3f5557db3071df333f1d523ef55987a5ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.27-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.27-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1df71e118e4da699c3bc2e8abe7f847b9161664d81f2c4e71bcb5efe0ae8f80
MD5 e899136ae145e2aecfc4cfbad9e9d3be
BLAKE2b-256 76e18987968dd8fda85c51ef1a03c34a79d5fbe04034274f3b171f6ee503e40f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.27-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f61b4ca3c403b4a1f2a295329028eaf51fcde38cab21dff4c959061bc44b54a
MD5 2a0c6573f6c1c591f091b7614aab3424
BLAKE2b-256 5ad3635c641f8b239e5fbba37567ec3e380262b521e27f74d26c5f3dbb7e2515

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