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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.232-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.232-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.232-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 88429baf64dd139917b101c25d3bca1883765e355f0339a1fdc2dc061013f082
MD5 88ca28ef78e9c5666e3d7b6d66abdf4a
BLAKE2b-256 62d5147266979eb1ca6e701918a16d2dcccd561480ee0173f1d2563d25ac92c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 58f1b2d94f5c12160d77b1a80ba26629e2bfd6e4bace3766724db3226606f7cc
MD5 9a623e7cc46c9d9a15507c11ee0494e5
BLAKE2b-256 906d6d2cdd13f9fa48a0501a3f43d86b5cf6d026882303f989221940645c48b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.232-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.232-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 053439bcee5c9b5bcc55f4663bc8fd91aad4dcf649f00e5bcedf3467ca559566
MD5 471994003b90f75b2dd407cec89d9343
BLAKE2b-256 615da7ed997af020e257dc5ea5daccafaa128ccd2e73849c94ff0ea3cb39958a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c3a5d7ff8bb3a941fe135ef8b0979f0ce4a10ac979a870ae90651d5d7ce1a64
MD5 f9c941eadd462e931ee1f124074f6348
BLAKE2b-256 2bdcb77e7e7c2535132ae0ead9913836b4be16dc324d4ed73bba6906c4291113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 18d3d696bb88ee3cc548f29aa4933228f5c23f2960451eb4db5465a697a0d933
MD5 dedbdb515ec9cca966a77dd523f69624
BLAKE2b-256 1d89ab9b0eebb4f942b9e61588075c0009dff5e1d621e81fa876888d2c64c2c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 89effb259de51a6ff14fd3edd7ab1b49af133ff75b8fa931be201f6c1ca30fb0
MD5 d1cf1141210bea11a146fb501a54e9b3
BLAKE2b-256 60e5ba9d47d154385f1e48eb9aba7c588f75a73f7c53cb49caa29ca660179380

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.232-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.232-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aec0da618ae4b8a0e68b39f125b77baa0df15afb1e30ca0d56bc6df3ba091410
MD5 b6a37c5780f7facf7d28a66069ad4830
BLAKE2b-256 15037b29f0581b411d79b986e329176814aaa4c00e80196c2478dd9db32acbfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44589de03c78dbd2a645df9354e93539cd2ccdba4ca0167f92f2614d4d03591c
MD5 db0fa2cac5c23b2b3bbe2923b17e7cd4
BLAKE2b-256 50700e934193c31a912508e249ae61a73f1c77902920dc75b3d3254734195ff0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 044bc8a07557160847efbe41addc6f449ccff0365c90b25e3f94e41e3897fea1
MD5 2eb510732b677d9faa1f80652a83d5c3
BLAKE2b-256 5390037fd338a05548da864992c9e6782842af30082404e1a1025e29c3dbde86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ba3e93798f892efc2145768a96fe74cdee69928c37ca7853ca8be3a38a0f1f75
MD5 ad3446d15a4091836ef0227657eec3c1
BLAKE2b-256 f87327126aa6b33f88f604291ba6654212f7781058661ee6e84a00ead26a0130

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.232-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.232-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0818642dfd8a5b282baff74e3affd5e79f1a4f37d280d89e3a41eda39764127b
MD5 9b1e24cfad7721d3d31f4ccda8a8d1ab
BLAKE2b-256 42e8a1c39b74a6cd49cf4dbd495908d5139113605282c777e23779d87a2dd94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3ffe2a9a276fa6bf0f182cfc3460e133e33b849abd0647dca07113c62f40d29
MD5 ac3057c036123889babb91e6a8b4c160
BLAKE2b-256 e9366bf3adfba772a8745bfe9f955427db3ae8d10374d0de9b249a33030c6f23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d9f11386638992fa233070d42387553b2b92b6bad0cfe7d5e0eb0f329a01d2ba
MD5 87235ada1909701c476c179cfd4ad872
BLAKE2b-256 14040c8c9feb2d366cc2503b2b9fd2dd9af073f364f20ddd8868644f226e8038

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b0fe10d9aa4b3b0c8e3285a6dbc9a59185965e3e01780b8c779fcb5a9699e326
MD5 175a6bc1b4c7c54776e0900d51d5c0f0
BLAKE2b-256 94e69bfa94993f788f882ca87c643c2778f1215d323564122609c2ad5c0caca6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.232-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.232-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 98a5c910aa426a2ceda8cfd6429344dc357fa9750ffd4757bff5152f9fd9dd11
MD5 d84cfe432fbece63d838833e54117ffd
BLAKE2b-256 ddf742831f8ef36f4d74b53cebf06cba57a07e2b00d950af856203a5d33be993

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 048f1155235bf5252fa906a7585c6157da240dc993a3549c12ea1eed23e5fb3e
MD5 6842edc686a1ea9405715159cde0a521
BLAKE2b-256 eaae5d1cc13cd3f103e2db6c66a46be4a368d47273cd8b421abdc7a1f639a338

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 540cb22854718508f76b8ff0c47740e2bab468ca6961f4d4f481d61dace434aa
MD5 59326022fda198217b79fbc248bc4e8c
BLAKE2b-256 43702c88bef5c1a0bdba698f7992728dd1e295dfd69012276f1f840785be9c45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.232-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.232-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b677a032f3a44064e4d2a9e3eea5eef0f24369020c7aa4c02186ed4dc95d72c4
MD5 b61d35553667c5c5206bec20c696c477
BLAKE2b-256 bc3798e9ac8c2e9747bbb94970f2aac4839c583f9536e874064a7fae5f98f1ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.232-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.232-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8af96932fd8720b93037d2cc473c179f574a3303e3195e3dae28d6560bc72be
MD5 0d6b449fe92b34d96198df68b19808ca
BLAKE2b-256 0e52bf62b0e4aac98e1bd050a7fa96314341ff21fdc4fcb2e231b14be0c02608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.232-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1da4165e0cc0ce656c0832adb3aa9addf09af541f244e91c808a60296b78bd39
MD5 8b9943041518c6ce18ddac68e48edf08
BLAKE2b-256 5d887309f94304bc303c4686a7e3c8f47740263d160180da5b9a09ef0f4a8ed6

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