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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.626-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.626-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.626-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 312acf12fb69ede9999215c5380e62bf58d55f970ed24bcbdef9f0b81d9f74b7
MD5 a7cca6c33e18c036b6c7e8c1e5ff65f7
BLAKE2b-256 f17e1d3f8b0da14d51d79860edff857086ce4b234472b5896d8e82c69bc14e91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 746f703b003152090c134d8764abc96161a729025b93360f0c1c60073a8e9828
MD5 b99111c8c574f8b3fc1a688f92930784
BLAKE2b-256 15e9c05e73dd23af3e223a7d253ab38b1cf91c9f0359d2a49fef8089a825c548

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.626-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.626-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e2a7e732e5a9a1ad9c3ea1ec95d2f50bd72eea39d36e5aacf95da15a96f2f16
MD5 4d710ec7ba9a852f0a7c53e2a661cd1f
BLAKE2b-256 a0da078a3b1d1ab149f13090db29a2a8eab902b64373e705db68feca9b24fc03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8201c93b70fc6c44ab0f0cb571d79b0eeb7d718dca24ae88a8969eb150cf618a
MD5 e124f4b27191c9fea14ea8b8bde586c1
BLAKE2b-256 184044fc34ab3abfbaf980d337d506688f581dae415e5f8f397a6f101d3cb74e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f21fcf47cd43f95883ac498be4536f466bf9d8a002ec4ed0f99d3e405459523a
MD5 ad8679e023e975a9bdebf9b0ed002e31
BLAKE2b-256 0cc03c6c7abbf6d43bcb1ecae794bc41e06bfaec54ffd202d08b4ea89dd559dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6c1ad50b57023455f5352a144a722e3ed3b8bec83452f31bacdade329e0f8cb3
MD5 9350630089ed7320890213bc7a1ae4d1
BLAKE2b-256 a0302da0f7919f88535d0ad911630a8c54830963a334cec8f6942e7d8a00a676

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.626-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.626-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 360933128e6d8a7b474997564e75a55a6c5b5e55d808b5c7b175d9a18d837860
MD5 539e5a6c21c88cedbf4b998c5ece9455
BLAKE2b-256 9c10184b9612e817a93e9ce3bb65e977a0dce2c9017a40fe072ae19d523b98c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d03ef9ad1b9947c0a3458e60189f428f5a796d9bcc25d64749acb84f5a899a37
MD5 82dd654d9150940138a73e764fd5c375
BLAKE2b-256 b47d0051f33a6aa020fdc671b2d919b885663ecb6f836a4ea9c92610776f70f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 359f8985c26d9764b4b60f1908acece9dd80fb920c99cfd8bd5127e47b83c93e
MD5 7f2e5f68149dbc98ab9937324124c488
BLAKE2b-256 0601ebda301df94cac9540a008018c8c19b3da78211c8f0187a561d5570b9bd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d9c75b80aa90a3b243f759c06d647c1986548b6a2336b3ca6353dc1d116c9f8
MD5 17d97aba30d65514c2fe4e3e28671aad
BLAKE2b-256 53aa68d2ec0a26b67a58344611f7d20db84f5671a3c7d3d2357350f9587f759b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.626-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.626-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a49731ae587237cc77756ece99cc6ed13b85c1e58c04761773baeb68b138f251
MD5 f6e28c6cb2c5fd866e13af8477e7d70e
BLAKE2b-256 e145f131ec67278b4bb52328ab7f139bac8c5be49d86a139911a26f9ac8f20aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 343b97a921db9417b1c9f02ab669b8e8dad6d72d20121f0e37a04e2cef2123c8
MD5 a981b0b3901e208e289662729fae0560
BLAKE2b-256 a0ed42891ded74e5872e2c1797ec4499603576a9d403fbacca313a55e706027b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7c78e18199584311032f90335a58acd8866231005ca94252cf0798512d31f10d
MD5 a99e0cc4a0f8d785c172a89b5012d82b
BLAKE2b-256 8528961ef71e1c8151945cf5d1b9f1b15a11ba939e6b331f4cec7c12274cc72c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8deabe71a29bfed78df837dda1ab30383105547032dd0d620f524b367798a9df
MD5 3683a8f18bcb4658dc669bdeafb7cd56
BLAKE2b-256 04f2589ca19d2cbbe3bddf14eb31627b3ee386946b4c6119852e127bd9634fa3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.626-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.626-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cbe53ffc875c3f895fd4b6df3c0d8445f40b4cb912cb81174291917d20a125b9
MD5 ccdbd6b499e0bd4fa1e61e923d118079
BLAKE2b-256 089836bdad7fdc3699bc038667e4084f4ad5caec995e6ef04ecf7d9675fba1ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c80511faa66872f576d447a763ad262fa5b908e52905c73c5f65c4061f329e2c
MD5 fa27411d4a5acbda1921690044b07e11
BLAKE2b-256 27c7428288f6df02b403d81cf33cf49130bbdb91174a872915d5a3c000919fa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db07e1938f28072545aaff6018a6aeeb33a9a122d46912c4be0eb52240e8f1dd
MD5 494dcf76b01e41759e1118a7a2111fdf
BLAKE2b-256 3f680a37f64b94a5a04623f1940b8519bee4efbef9a6a3321797ef5cc3366ee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.626-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.626-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d75d0b737a3cb3f84959eec291654e45b86ba1890043552bd7c68af5080ad0e8
MD5 0e027b8ec7a40d599182392337899e08
BLAKE2b-256 2e4541a74e4dcadfec4ba33b9e6391263389672c05c7d9ff500e25a1390f8165

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.626-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.626-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f81c9908f7e6bb949bfa7179b77efe05781e72bb6f2da066efdf1e9fa6786dc
MD5 55ff1c7da89af58f5edb72e84506182b
BLAKE2b-256 089dbcb049184ebcb1279e82ac84ccbb799dbac992030bf87db0d43f060b1b5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.626-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fd6165e15268a20417670e5e4d05f0f91183b9ae117b6d1d3f5224ddd62480f
MD5 9aaee5d0dcc922b57575fa5b48962010
BLAKE2b-256 a60b87445023816eb5e45b53d4a74d5d81e0989f87dc1569d410f34ba91fbd60

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