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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.423-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.423-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.423-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5e7c65a0a1b3f2521e840303ba8be93108e60fef050c98547c7ec4a0ecdf97b0
MD5 e4fcc6e627344c75432d0cbd76148eda
BLAKE2b-256 88cb20d970b75329a824b1f223ed60fc8d4816c8bc4100eda14d069b6a1fc2d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4a0b8639ee5693e80b854bc56449c5e0295a083329877de415a6e3d21e0a3cbd
MD5 577d7f6fb40ba912c54a7c30bd909f6c
BLAKE2b-256 390a901a7ddc77d4485087ffdc9bdb79fc729523fce6b78ee56ed7ae5b3967ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.423-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.423-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b4f155053db2defa349a5709d3362aecb9f01d7764be86625db2252e49d1715
MD5 bfce57bc11d5785359f0a4a65aa9baa2
BLAKE2b-256 57ed2b526a741e6bbf7b71a29cec5a7f765809f6c29fb604fefbe3ca0858d2aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f706b64976d8dd39ef9c83a3e24d04b5b0a9b88ff852e35fb80309b672281c71
MD5 b7d4a5153550ed515c6c18d597c8f5b7
BLAKE2b-256 94768b2256043a25401c0b4ed18a42e1ab99219cf4c01dc4bc529ff538d7fbc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 10ad6483a0eebeb1794fa6aebb2e78737442ce84ba45bd8b3bff7550df245442
MD5 4ab58a7bf01f45e5bb3f8d0c9037fba9
BLAKE2b-256 858b4452cd7306d675e39bbae4b39862bd8632a9c874d8793733e8918d7c0ef1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 16d21b6e77a34d329a24becfe23c7b991b6a6d8143eca3bebb94343eef0d11de
MD5 76be7afa38df8ca57a66776c05de0eb6
BLAKE2b-256 40a6cd4197545ea04656acce6dd7a8ce8f63ef153ff7e78c879fcc02aa09bf96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.423-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.423-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67ccbd5db22f584d0b855aae1ab3a1f75c89bad006c650c3f3ecd5d9abf72ae6
MD5 ea8e92084eea04e9f561dd345b19d271
BLAKE2b-256 39884bc4cc0e325e844e1b1b3ad9392eeb063fb1c9c0a0e19afd94f673ef65ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd38dc32d8ebc8e1f36c6013dd72c25f4954406c0c035147706c4e2ec389e7af
MD5 8943b0718e7dc7ba787903a6f794f6fd
BLAKE2b-256 a74148ed4c9e3d7dff69416ecdd51abbf6eb535bfca39fbca9a6bfafd99a0e70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 79d2a3f897e53caa2358a67eae19535b6b23c9316d29a82ae756af4ed70365ff
MD5 66692cc75460739fa7c60016da051b9f
BLAKE2b-256 7ae138bdbc42b75a177435d5bed4c02225bc12c00491eccfc9b28a62992b7afd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8d69fd25a3e4045dfeef288e7155d0c8ab5c7bd82cb4648ca464dce3fba93465
MD5 b59c9327a7ddabc4320868371ca7594a
BLAKE2b-256 0825270d2f67d7030ea205c41577da78c5fc6f9a5a98475b49c47df06928fa8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.423-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.423-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb619ed502ff2baa092ef7d9ab2940e60359b7b627b187cbcb2b716e0a11c20b
MD5 67714917d8bdbe0fac3d6f6bfed0f416
BLAKE2b-256 7c95acab2369991e85eb1775e70d7daf0700fa6c2f8f254fc23c1c8b35329561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ba6f26ac09e3280b322e4acd88e310f0559dca870d2eea42513bde8a89d8fc0
MD5 5d71c9b541b0dd41b665dffbc37eb603
BLAKE2b-256 873f264aba5a2fc2b2af5b76bf841fd4a735c1058e15b42c3bed21933c6fb868

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 333cb9c2c6689cd92da1d686cb2bc79f8077e31b4db700d0a2099206029ba9a7
MD5 0301142d83ac39809b9edcead81a0af4
BLAKE2b-256 7560ebb903b00baef2f7c89f5dd04ed81c30bf853b718224553ef25b22a746ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 374e0bdc520192f86bced0c367ab39ed18e33747f6f847ea0c06355e56e3e87b
MD5 e75491e6d268cc20f1ce0068992ea785
BLAKE2b-256 fa73a24138e7dc681dc6c5f19fa858f02e25daf404b65425a89cf0f0a4b1b837

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.423-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.423-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 875af4ed68c606d7be1b317913fd3728c3e9034d276759dd57d1bce89b3debc8
MD5 c6fb15ad8a397eaee20df558b45bf27c
BLAKE2b-256 0ebf893add8b9563b8a45045b9b26a08bbab389251abfac4d5d39e186aadc78d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f06f9001f989c34777400e4b870a62e254f1f34cf40174248d450bb8a81668cd
MD5 b941cb257cb6b3f44c63c06a5ca9e899
BLAKE2b-256 9ec0e3ff9b8492dc78a32a7a7510c524f51f1970fcbeb67fbfe71f1f19adf684

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 15d45362f65ee1b585f10fe0d813f5890b5b81d700184ec8798fe785190e2c52
MD5 12a28d87cbb96b5543e8df8c0cd059ee
BLAKE2b-256 8b22ee91638b4819b2fd26607bead532b92a821e8e870cc74217a45f8f428373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.423-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.423-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fb55a9e63ca530e0db342a229309aab73d8f8f8cd225b675fc70228870eb4faf
MD5 e9ccf0794137adba47d44b759de46c2d
BLAKE2b-256 95270eff95b9043363612d50e0b05afa2ac7cb2fb7170da8388636c83c26c1ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.423-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.423-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4af6541c8e24b218a5348de3e8b6c7c8fc97180f601525b57ed427cfc1d0cdd7
MD5 263d63ba36524cdbf21b28257d790d48
BLAKE2b-256 396014909c95a3da523096ad6e5789b73c167113c45fe2da6321366e27e51d67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.423-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a96376d76e49ce175f0a2cfa2cbf329198ff13b16a5d6698a43c8f1797a0ca9a
MD5 444fa5fc04fe4313bfd438b96a8c4602
BLAKE2b-256 abbe96ed637ce5b368edce8e457cdc46874e1052d076b1aaeecefca66ebe4b96

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