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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.425-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.425-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.425-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 17d9d583c0e5e19007defb09fb22059ba7d33291462fe3fee5c712a57c8f1798
MD5 63d096d5e1838f60b6266598af1a8ee4
BLAKE2b-256 3d04ee67b2c65eb533bacd7dc96ee21242933fb58676a744243b9f6805fff014

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 98039835d358784027c5bcd7d4457afec108f031a8face41cc515595e2b362c9
MD5 0ed6577bf3379b5440875b66dce31978
BLAKE2b-256 4ecf5b9a30be22d7e65fef09bb2b60f345053c8423078fcc885829ec2bfd11ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.425-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.425-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b44b2bc93aec024cdd66b45a0217e90ae42a9df821b61fbbd35f66ca733c4a32
MD5 af32187e55afcbfdd47e31551ebe652f
BLAKE2b-256 ff80ceff079f9bd211bbee26028dc590043ac94f0685b5369f77f5f7b5e6a2bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d614fe9904fc9bdcaaae6195ab20e8edef0e689b7c0a46ee33bce367ded5e544
MD5 107351be6aa38892b351650daec2bda0
BLAKE2b-256 56dc4bb4a2889dd612a740d3eee95606d4f828cb81cb9d4439315b2c1d3ed99a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b34ecee0fba29236947ec606b84f6ab2c13598208d9e99bc536af2d763a4c58
MD5 c3075702d2d3c58c44f1b1dd7d83b4f0
BLAKE2b-256 8b4edf758cd1bbdb18d6f19aef7d24d389847fff05e6d60ee36c1d7d8223c98a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 632c1d7baee5ace8dce74814ce496cb9599315403b434bcf1a6583591efb942a
MD5 0faf18f05a744cb5530101c6e23d8fd2
BLAKE2b-256 3e4a7f02d71ffc7a9141099041ed8877cd38ccb692a8546d598bd4d2d3c01a6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.425-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.425-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6057fc2bc66ea78ae4a7a82eb29370fbfe54180ab7f134ee0ed6fd742bf33291
MD5 909e9b83dfa6c1d5c5d8f6cf4fd5c4f5
BLAKE2b-256 a214e25f30dbb6befa2a1dee14914c7b89c49dfbd9c5717b77f3f697b370c951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ee6bef81073ecb46b19f5bb83195aa3e20a927e95ba4422b9df5e00fcc747e1
MD5 48f9304bea0501f19d9a749473ef8956
BLAKE2b-256 d4299ec615355d4af49254204ae4d6a0d4d83b2c8cefb09c2d1a99ca525b6de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0114e5a3de618d9a7a7e95980e30f3988233ad8374fc1e992308d29092aa1e92
MD5 b683b972402cf3cc0a30e39a4a254284
BLAKE2b-256 7452d3a7b49cec5b1eb6627173c1c27a08c320f1d0d41496207d288a761c209d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cc3ad2700bc7a1c0211db239ccfdca76c1d6bc8fe52709f2dc737eec1f459267
MD5 a6f41b6661f4af2becd65b1817ef8024
BLAKE2b-256 da42dd1e62480a5ffee8fe9b91abfece8c3b9a081258d114e7eaaa2517e54589

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.425-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.425-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50c9af8c17c6f69d8572a9c8e310ffa1ed63b6dad667e83d30b048af4b2ce36f
MD5 581f3600709d3530292b3a3ad54ef4e9
BLAKE2b-256 c3d1178af545167374d7599c856e06ab9e51ba039ccfe76e13daf7ae6af51988

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 948dbd991c9866dd6885a47e8fafc563ebe6147f3e4dbe90537ca7f0d2588a01
MD5 bfd5138489169aa7cbe2bac417671733
BLAKE2b-256 951615796e85a4cc95d895e677822127ee53a09df68e62075050dfee9bad9a5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 65e29b54ce40e8f17727afa80d0aa5b703c9ad1f12d2ec63112839cfb492ebfc
MD5 1f5f5575506401f7de996b87ddddc065
BLAKE2b-256 a1c91f4145c8272911719b1d13d027b9cfad0e80d2da693a5466c7361d45acc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ffb3a7cf212395be34b49e833f991b5a339507d68a7d5dd36828fecc145592ce
MD5 a749412d8605c809552a7c59a11a9c27
BLAKE2b-256 0cd8e6080c98f9f65c13ab0913954ebf0f76989cd2ed445eb63457b20cdcaba0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.425-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.425-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af998a355cd1ed2b1291710852beafa88f340ee51f3776d07620082a2f1a51ef
MD5 0d507565ca04a495e9aa365be9bcadd4
BLAKE2b-256 513b8c7fdbbd743118baa3ba41f26934946a7becd8e6851e91c7e45f4b18100e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5004ffe5d8873b10108998efd02635d62d8fe7432456eb1c9664142a6051bfd
MD5 d0277df8c6ee71accede7d78e120e829
BLAKE2b-256 1b6c13c970cb9b1e3e52d22469a4e828f1e506b857b912c958cdc2a10943b1ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9b7b55997f5bfac3894ec0b207e372813edc9af0fcc8014349c9d1574427a899
MD5 264625932d1e850cfe0633e95d301228
BLAKE2b-256 2158852c077c3a2cf97091d08aed43edc82c791171b208ecf20ca1a49a959a6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.425-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.425-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e6526b7d4f0ba98401631de6b6d39e07c374702ff6dac9221e9cd5938dafbb37
MD5 0197404e2a61b82c8f3b1368c041443a
BLAKE2b-256 f41e10e6a2288a7797321b92b5d31aaa80a04f87dac7851287eb792aba1dfae1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.425-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.425-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b609dbf5d4f22526da51a11d56fca816036c8d6222488f6addb36b63042b3f9
MD5 0ba620b74ddd4723df24c6101ff4c345
BLAKE2b-256 c7b8f0ba1142ad9cf41d9f67c34772c111f36d987f31f46b804fea8b250050ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.425-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae438ed6e7313b54319a801b1a3e83934a532ca63d48857a48577a121ca3134d
MD5 f5831779db2f12266e79decc3c32c221
BLAKE2b-256 a7dba7bb37d0db8f893b2a5a80cf381c4cfcd65555c6c048898ce0e5c677f7a6

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