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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.971-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.971-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.971-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 be180e059236517ce1bd3d11845a691522f9a39496334663e76ec2fc9a734fa5
MD5 9c65f2e85b8adddd8d05edd5cdc94c59
BLAKE2b-256 392b8194e83ff128384e1ddc0c90ae36df92c826e6e2497528482cec828545fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 39b4009c4c79415450de628f387067d132fa9f949326ae3a5ecc4e5e2935b384
MD5 fbfe257adaeaa6534ca27cde62ce92d0
BLAKE2b-256 9c7bc4037a8c82522575855f87977cf73f5a740f791af49de6fe90950221288c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.971-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.971-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24adf15984c370540fb34400c3b13de03f263dab23906455c09461756bc69c89
MD5 6898ece29fc54187bef61afd34b51a1c
BLAKE2b-256 6c39dc32959e37f58c7d56f377bb8ea5808c4744403b044172c4cfa5dac1a047

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35a4824d9504862d6ecc483c0d79022f01b36135b59b8b9520db3a6355021a4d
MD5 50124bb4251f09bbf312e10183c04ebf
BLAKE2b-256 68db3b82609e2565c0a0366646533b7139fa52ee198e2c37e5eb39f0dda76363

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5857d4045be6b57f1b491d8cdacec6cfc91d9545730f27dfd304669f7ddef311
MD5 09dc34eb69cf7c1710dea12c53f38214
BLAKE2b-256 f47696627663102cc30c9ea76d2d619bbf33897797087565bee234e3e58537cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 60785c45e9dc7dee59a9e6b2c7593ba045379283ee4b6093420f3493208bc63c
MD5 a71233621264632849424bdcc211c215
BLAKE2b-256 60d8df18104a6c7adff52f4e2fd56d93544a70577cc62f00a3b4b81f98ed175a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.971-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.971-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cab9e127159de80e334afc6c9393cb8da2a28dfaf304c85f27bafd3f3b6bf176
MD5 5eb86eb80228e79f9f0d08968313f51c
BLAKE2b-256 3876602eb6cb3054cb59029927132a525aebda03246a2f15f2a8a7fef91ce579

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dedff023a20d8103d82665f48aed57c446d3246b4009b42912c537adb1864015
MD5 64b5a40aeb9a3fcb57f4d9c8b7a24a9a
BLAKE2b-256 3822bb9a18e3384dac3d0b387456ae3738af441b03ebf3b7e65f788aa3438d62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0b65e45fb3617283f62a39834bc69a4f4cb4a641ad76db82632da7a4335e557b
MD5 dbd0b4156293052b60fb7d3b92e9c710
BLAKE2b-256 0d1d180efd25154278e34fb8d8540ae4fed3701f0bc0ce67d9854581c9d875c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4c674962847e194ee5bc88d1bd95ddfa81d9d44abae1663103575fe6e0237191
MD5 b583dc55b068fe3c0ce93e1effb7a790
BLAKE2b-256 8f9330956506fb84c1ea1bf7833c413dbd1dda7257923031982a7ebb365d968e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.971-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.971-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e9bfb2e8edac8ba7534004505a48b3a157ff001555129fbd856aa48863756dd
MD5 8f990a2399b60aa4823e3dcfd0fd507c
BLAKE2b-256 376eb9be555379da1ab399313143ec0d6f1b4ab4a61ceb27f1c7aea459e57284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8ae7f79c7849e8461f674fd7abae84580980353eb70cafbf2ff1325aae93091
MD5 3ac94e9782216606833b34991162a79c
BLAKE2b-256 0ae30b89a20a1a8d8658cd6a3c77f2db9db39b6f18908557487df3f5bd7427a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 628e05a3afb4673bc75f4f86499cd2e66108794cbd0fd5f6d34ebef572c105a7
MD5 0d3ec096543d7e70c4006679c43529b7
BLAKE2b-256 6c74b075cba21f428a481b6c1dda5ccca626b1cb01671ab0acf3fac6b70c89aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ab15c294b55fb9ea361618bceab1314c5ea52e99aa37f666e1114a92460fb968
MD5 ab2a53b7da8e77795c1fc77b90eb4314
BLAKE2b-256 7db275cbe25ef0ade41e676d0f4e06e0f2244cc307faab617d79272d2fc34513

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.971-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.971-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 178c69aaae52437bb9c4c556c8f25c96e320e4809472a7ad6c3515ef47615aa2
MD5 68c3d7da333a81f5559523cdbbd992f9
BLAKE2b-256 18c359b7e27405f1a2f583ecfa62478c337854f2d380b210c51d583e04f240da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bcf18403305043fbcf354a3fd5ba9bf5d61f0df14a28c12570982e1e0ebd5dca
MD5 4f12d72aa21c6074c2039f5a56b39b9a
BLAKE2b-256 f3e17af1d5ccd4552768b8b69b3ed49f950dac10f7b85a8ca59a78ecbe1d9db7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aee5978b3ccb3a325bb95b2d6233c127d33692a97e0ecf2c5dc9143557b2ddc2
MD5 453de4fbb98f2516c36d1675ab63e93b
BLAKE2b-256 449d6e6ce75ebadf555c50e952c72ec25f734580d45bba643f296a3efb4c50b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.971-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.971-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3da39c3371216d1439c088b1f664a7c93b0fcb8ed1b4a93a059b809cf15d2023
MD5 5945e212723ca5dd903abd88700741bc
BLAKE2b-256 aed0fc23dda3f56ae67bf0844b4aa50456f2eb65c83776b8cdf094ac1d6e2549

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.971-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.971-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43f7af48a81a2af0b9bc176f817b6f57ade374ca54e85e407fc48b5b4ee05c73
MD5 824864b59f5284344aa6c546a366f2bf
BLAKE2b-256 66e1581172a37a7cfe8236b214ec1ea276f602c4d5f897fc0a4a9f2a69da847a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.971-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3727d9682db1509aa6995ff5ccf3d4637081fe0e66d1eb21b8bb3a0d5c88fbf7
MD5 c8771b0a068caa0b59bc193b10a1448b
BLAKE2b-256 52b0f605c37451730611290809b39cb76e72214ab9efda6c2f635d4829123e7c

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