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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.209-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.209-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.209-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a2dbb397b99826e5ebd8ba726b5b6a1cb7719662cfaa9402c6ae4e2bf72d14ce
MD5 59f5ac9918caa9a0e88976a915b3048a
BLAKE2b-256 887296c19bc257b2ac370b7848d3cfc3af32cab3b47206cf6825272a23b5d445

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e9e377cad885735b24c304315ce4632bba900b0d5c5fa1216681a753608be1d7
MD5 7d993e763ceb3ac4d47842ffc4f1944e
BLAKE2b-256 3b72f6a75b33742b257934505026b463a9850f9a3c3abb8c4cd056f7a7d41348

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.209-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.209-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 afcb40a7eaca9139ecbe8ae68baf1dcdda1d79896def6b77b767bcffdbd71b16
MD5 211635a5570b347638be0b6d92f630ab
BLAKE2b-256 c0c679bbc607c4aad930ba839d9f18cdd2d77661d506c257f4593bef16b0b892

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e515c72405e9b3a7b1f10235e9d505b4d6cd8bba6b2aae02095cce5a0f9dc19
MD5 d8b0efbdbf8c54ff233e1a22b4a821a5
BLAKE2b-256 47036e7d5ced55e95dcc4e314775941630a0ef478dcfe5fa8eddf9b21a17e249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f2fc19ebccd9799ff36e04c039ca87872631d1f80c254b3111063ccb762de79
MD5 f2562f2cea3862fb06a1bc8440d7ba54
BLAKE2b-256 5287c664dfa7a2c30ff4e40e3f620e05ebe1d3a894e7219f8e04e547eb132660

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3b8ae2452861a6f5b9afa4e7a9612de86d819dacc5156eb2951a94b45fe62671
MD5 0eb82aac208642673c41e9e38706c3dd
BLAKE2b-256 84496ec2c83a85cb50acae5fb51e85a0e9450cd8b03897157dbd0c4fc3f628c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.209-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.209-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 474c663384ec01a09e88e5b4218eeeb0bf363c8dd32e4be3c9a3b3c03714382a
MD5 079ce58ab6e2c6571cc66475b13e7310
BLAKE2b-256 78e01fc7c6307e129c2fe278d60e425c85a08ad1110be0840a2172fa3068b6a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51260822dc112e70de2a3103c4d95d7f4f1c5b7a4d9e94980880c6b98ccb6209
MD5 5fd8fc3257aba243bfae7179ad109b7d
BLAKE2b-256 e0d68a8a93c581b3eea8779176aff4945898076c375a11bfebc5f754510c7b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64edcbefbe647ce3a6fad80587b35de6b1b21435cfdc18954ada9492f5d0057d
MD5 14dc68de1fab020765fa35f1e91a10f1
BLAKE2b-256 853c858bc5046c11013c0658e0f518f1b2522b7e31c2f6e1310560acaadf0b7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a8241f5a35d0b349b16a116a97b75d4af4fe9ed4ce0f0f11fecdf698c941d981
MD5 76bdc63e509440b5be9dc9b4cf578fb9
BLAKE2b-256 c7151d67b8c8f210340047d1924430c253cf31e549b568a02110d39bd11508d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.209-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.209-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2abab932bdeb643021fe97bb3395692d85172ceb81014eb1c1664e6fdf5f8fbc
MD5 6700b2d943d710987d37dd564c88a09e
BLAKE2b-256 93ec6463a74bb8dcacd52395f798ccd0fbaaf5df7da929e0f68a916fa8e8057a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80aef2078488460f89c7729a29c11c3fe9e3feb1d35d5b95e5cdbd48dd4fe23d
MD5 635958116779b726d4ebe306fd28300d
BLAKE2b-256 204a90bae8a52c94cf3c62011f23a1822f6cd3d83cd6f932d14e06e8aaafd41b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a15e37cd231bc87a63e60038fb70b456f37c93bde474527e4db0afd21331ef4c
MD5 72b48d3163d52370bf0964482e3a431c
BLAKE2b-256 0e0b98d93dbbfd753112765e9b2b0b7f9073789121dedc0f5175a2beeb89c3ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a42ad08331d5bd2aff215631fdfbe7d56bab2b39b6429ca648688e95d7f25b1b
MD5 d1e3e5265c510dd6fdf4f7f8bbfbe428
BLAKE2b-256 fd2c6a15bd32ad8b3413cbc4865ff487adcee898f6c9161fa127b2e5cdda39e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.209-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.209-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8249e191298e507500bd06216810c17648d8af53a9b1c82a5f5dc803fd695361
MD5 60de79a80af95579974f7782b1b62cf0
BLAKE2b-256 a7c9c5458101906932b839d78758bdb6d7344d7d2af969a4d72b937aa9877096

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fb57500f4431fcb61499c796ed78c0f0a20c099e1330eb9c9712c419235951c
MD5 cd0ac4c324e24aba71901ffa33ec16f9
BLAKE2b-256 64004ca4bc6e0505a620619fb7227bb8417bdb583ee64f3d7185de3273e15b80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8927c0c5eab63834df24eecf3e2d4115a3d42246e1d15655f34724fd048ae9b9
MD5 fc08b68f7310bb7336ec3c100c441a57
BLAKE2b-256 57b6fec735631757877988728be9a7cc00ab3ffc24e8ff23ea6f381794e5e75d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.209-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.209-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 39a8da822deadf6b5c05d0d3e51254323fb548f5b896d7a09220fc6088b523e1
MD5 c93dc6c5485a02f4d96dcb0a866f0ca4
BLAKE2b-256 a1b29eb6d6152e63fa596f7efa4b7af321499c17740b7947345553e339104f6a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.209-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.209-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78d0ae1d1ea788675d6e70b0c5e7239340fddd11d3e105d9f7b19784367fd22f
MD5 e2f96d48a6d5d73af7d1c36e64c2d96f
BLAKE2b-256 a4a876b409cdaf74a1a2a91b30ed581ca1525914fc4ed5f43cc2dd699c011e7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.209-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54aaf0263295780fd5e7dc4d055bfe5c09215025f51b2f3ec2a02086864bc21f
MD5 be8b1ba74aaaf84d417923cd54b73991
BLAKE2b-256 0d2f852654c138f5a9eea4d9434e27a4f7529ea42da7deb1fa80ab8a53609aa0

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