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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

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

simple_equ-1.3.5-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.5-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.5-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.5-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.5-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.5-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.5-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.5-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.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b1792c1b03bd21b51f1793d032139eb3432ab7ce2760001a6c57d8ee1110b0f
MD5 9f54c1a1a8f06e05efb18ec55321f774
BLAKE2b-256 98fb89dbd33b79f0627a205a2674c812f36cded5928af1a7360c97a8eeaeb4e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-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.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7bd0f0519d77c1b7549863b0e2fe7bd08e3f6bd4f2bd506b08326cbd0ab23d72
MD5 c533a91847f67ddcb6ddf0658e2b16dc
BLAKE2b-256 b77b3da8a353e2375aaef43eb41af64f6a525719786a9a185147657b2708b424

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.5-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.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32f41f30edaefc981414710403825d862277be7c3f65aa8821e227b3b7c774d4
MD5 db2eac6910fb0efb58db2fd5dffd80ca
BLAKE2b-256 9ff6bd05bdb2ff1d06140ab9e571a45a1b85540ada55bb5a3b9edfe99cc6326d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82b4d7f8f02fdd8d50a44e07cd7c5330e2679055d42dba56196d6d737fc6c247
MD5 3490a1eac667ede4fb0116f67ce12990
BLAKE2b-256 41fa98d3db20851b44c4b330880d8e93ba33bbbe6266e0fdc494ca8070ad6c4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 987423f8b896bcf23cdf32d99c60b484eca98efa99915f9d7ed84d9005e246f7
MD5 b6c52a425f8c3ff7a36c16522582d902
BLAKE2b-256 6cf2bb9a702cf754dc53eeab362c5e1427f40b82acd0ec7726b630a2fb7ebf90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-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.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 866def7d059e77577daca9fa695abc9567bdfc0ee6ac18dde1706393b1ef190c
MD5 d87e136cd3406f140faf1a25c17953e5
BLAKE2b-256 3d6ab5e12956cbf4bdcc7b1be7eb9a71c215a07f6e877bd4984952885dfbe90c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.5-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.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b9585a369d1c77e383bf7b55387e486d18d12278985e1c39532d979e7ed7d78
MD5 217a0bb22f51b48a248b6e2f24405881
BLAKE2b-256 e5901bbe66487cb868f7e2692ca514561c757debdb081cbae5e38995345f3e50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a343bf3bcf15d2061bc1930924f9039d34faf0098131ff908850874479b548b4
MD5 bf5351b6d515f07e08a6029d7a036deb
BLAKE2b-256 e0d6c994c1c29f00ef0446e3beca874040143726a2914abf82f37931f0a9ef4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 930a2ef013e0b7224959bf191cacace88d182e3520a4c04bce638b97a5c55b51
MD5 e8cbc6cc4ed762f2fe47221b0c3b4f9c
BLAKE2b-256 d5bd9647acc6515c182ba2b8bb190b8b4205dd95890d6be125ed13e598f19fd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-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.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 040a8ecc87480d439f4409980d8b41521dae78f2c7fb357406389ddd3fc7f056
MD5 ba1812153c72af0573b62a1542da5c41
BLAKE2b-256 4bf2a5f4ac407b8fee6ae4eb84026044f2546598e96613367de7b89eee2f5ddc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.5-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.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3054cf4256dba74f241d787e906dec1a1383389db8e727431aa1b35181d8073d
MD5 185e05bc51287f674702e246cc4c30ee
BLAKE2b-256 e4f0ed2525fc55f309f3217d57b462ce008eb86ee04b548e6b53439f8d47e52c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ffa3599da6d35c9cb5c22bd421a5ae082173c0376f6ec5cb972f1926bdf010e
MD5 5d3843ca4b2ff52b596f1c1d9c2c48b5
BLAKE2b-256 394f92300ec5b860ecddd78cdd6a09252bb54e7c397353a60f885dbc97eea434

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8145d24234b824350f0d86bde68253aef119fe066269348f6d57b561bfbf6e7f
MD5 a4c7ef7c5b95ea43899e80635b6c01ba
BLAKE2b-256 cd73f51be7e2561ac5c44366d490372a6f8d3ec0f91d4b880da561290b4b66e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-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.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6a987637315823e4a57d3f1ce1c9588a4879d415632874c61c1297f20d70d45
MD5 79f558f2de497c7253e8fe2da77646e8
BLAKE2b-256 22cc5cf9b8b504088cceb77c0781269f73f002c664debdc64d47c9978526a7d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.5-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.5-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd53d0d50fea99e165c539e4b1fe9e3529d0d40170d22302a78325dd5c401b72
MD5 949089eab52c0a1e6a8dd7cfb3235f0e
BLAKE2b-256 2ff0329512a8b7fc18ba4c483ca46727d39fc9750005b37ea5c21503c0daa412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6dd273dabe7444c0cacbc1a01b9f1e8bf737a7b4173ecb46e8925078602c03c
MD5 af3940ce2df09ba821045364a8af192e
BLAKE2b-256 49c08d5da1e6b1383700cc14315c16f1b4f26bb206d957376b02bb110ca7dacd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-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.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e4aac3d72091a7e886802705bc6e9b0a83d9b007a736d6a7336f846fbad6a4b0
MD5 9da115daa97b5b887849d8d5b632a277
BLAKE2b-256 143960a524ade6d9880a011c9d2e7fb7101135c0125e80fbf11e1c1f94080d6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.5-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.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5c1564809f714f704c6513e3c3e8d9235355fa6a94905bddfb7ca7f3d7fbac25
MD5 1658c7773bbb89c4fd2cc224c8540269
BLAKE2b-256 7509fea9504d24fb66344bbb6718781640616f326d7ea6a614a371ba2af4431e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.5-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.5-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dce3c49dea1f627422f5f5703795e705be372ebfc90b9fd9e1482c05a43fce9f
MD5 c05bf914d14903a992e574a088fe6ee8
BLAKE2b-256 4dbadc03374b2aeda2889a4156fe29875d33a49449f0763217aaca870978a42f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e53e899fbf0e477a37bac9d6b8e0ada1c1267c1c2e1c3278602abae7d39daf93
MD5 c31a5686cbbc30940ed517c4e13cd1a8
BLAKE2b-256 28c8c376cd7c5df55600a00cc5da22e6f8de526f47518460a4934a30f487ad6a

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