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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.94-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.94-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.94-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.94-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.94-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.94-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.94-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.94-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af304973a086c817e38c8aebc68181fc1c541786aff8b18eaa0ec214d3f0b154
MD5 0d39eedf1790701327a31f1e3ccaa369
BLAKE2b-256 348335e40ccae109831baf3b9627960b6c68416bfbf177c32a76784d1749cfe8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7a6bdc82825f9157d5dff3747c1cfa4342a3b60cfe851e7b04e1ad202e34b1b1
MD5 88fbf7d08269efeb20f3da09247b5b2a
BLAKE2b-256 4dfdba4ae0c50daafc55c6aa3f197058f115c4970a42d0c59c718c9323ed6f94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.94-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.94-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55b6eaea173a11026e06c802df34cf8c2f10a230f0dc5070656d1aba3dba72f1
MD5 29b7636747e0b946769112f11717daf1
BLAKE2b-256 6a53921fb201db76770ce3f8fcfaa762370fe8134043bc058856fe52ad05be25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.94-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d6c8a63b6e9fb58f76775502515e189165c5bf35caf6577cc26b1698735b8e9
MD5 7730803ffaf3b45f98b43f66b8c06eaa
BLAKE2b-256 d11124be84bb683e403ac61aad6ae1b4b9ec25a68212d028270ae920685afc76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.11, 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.94-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 630c21e5a65def41b74af5b04f1fab1be22b2d94d39195a6357caf5b571b147a
MD5 d102d28649daca7bdb12fbcd1dfbb9f4
BLAKE2b-256 6f717bf1d1245f4328bdccf9b3d7dbb82da1ddffa7719dd102a3f9fefcb154f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 64e541a3e7f4bf125b5b8d863711a6cd1c3228c91aafd39d36d3a9217e9bdc60
MD5 63605d31d4742f4e7dec122e47e73d71
BLAKE2b-256 a56ca597e0e50b408d5a137e8c5344895539e92196608524a7bed429763bcdaf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.94-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.94-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad85744326743d3709a2207dee99f27b2cf1fffe1edc1a156397177159e83ece
MD5 f1987033a120aea09c26f69960013714
BLAKE2b-256 bf45178ea2036c2b28e335dbadc8da885bb2ada69ca856ba86de93634b99d071

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.94-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13d523646c91f09e6e3df62db2f922839a8f04da78460e0897ce5f6484603526
MD5 b7b5b637746227d5a07b7ba16deea9d8
BLAKE2b-256 ba5cfad427651535cf2a76e3c5cac92f390be35e38b37450594a17f2a8c4d317

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.94-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2fcad77670a0ea306b36ac8145c1f2b222216627a4c12e0ea7676f50548a41d6
MD5 6b49b7f2a5ed4e82b30805b97bfd349c
BLAKE2b-256 d9c0e403d7e89b9c628cada021354651d0f38487459933fb91e695c99c959698

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f6642d6818a03dfecfa682891223da26a2cdfba2fc4f98cc20b331fa3ee2183b
MD5 8f11c939e913dfccd05af4e488d55e42
BLAKE2b-256 0da4fb9e507b9378e3ea73673e49f4cfc0850a51450b802056bf916cccd7b7f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.94-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.94-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1773bf8fe16aea8d07588b2aa64015509258283f588ce18d458586f95f8f4eb2
MD5 3fdf9f7411f5d857af3236cd6732f6a1
BLAKE2b-256 255d3e57132778223a58f4ffd3c6f8776b2bca9959961c1fbb4738cf363941d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.94-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48b02175f0fba1a60bd1922367654faabdb25d6a63c3e91260a8cabc8196648f
MD5 e206b1e20cc5d2754ec977ecded03b8f
BLAKE2b-256 5be8b12d1cd155b21d8cc7952ebf2d465107ffa25cb34281709da914963f34c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4640a8c70f833d0b49345215c444b86360b78abb0b1d8685218ccc5832230502
MD5 bb5007fad75310fb36df6515d3a5745d
BLAKE2b-256 2d7314766d8efa1038353c3f3d9344c887c1ad5aef575876a563e7aa132a6e7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bb809c617e7bc150443341061f9603f2b2b88e4fde206d32683d8039f5fe81f5
MD5 ed1b522fa7f1cec1b76cb4aece10143f
BLAKE2b-256 cadf5bd608e27b65f029551f320c46b2518c2c5d17856c9e629890c3ee46df9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.94-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.94-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40b9d2113397d4a567e0c9b6de64d059808e3b1abd140c768163caf00c60eb6e
MD5 44a82e2b79271b5fa5810fb5996964a0
BLAKE2b-256 ea3a28ce87fa87ffd889a9a7c3f97756e3a2fa195f97b945e25ab370468ba154

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.94-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d6d64321e14ce6800b753c3b1d60f2ee4dc8e8c99a85bdaff0502d4dc45f6a0
MD5 1a3dd455236412cbf33f4a3d3bc5df1c
BLAKE2b-256 e66b3071387488cadb0c73c8d2cde2741a98f99a6b3659efda1dc8715680818c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2878327325fa8db44db77ff880722e1ebb50073ecd7a1f8b38ee8e99384028b9
MD5 4b1b0805c561cc321397fdd2d85de610
BLAKE2b-256 248b9dc94f6c68b464bc82af305f316ffccb7a94c063e3aeff071b916459c390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.94-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.94-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0cbce8ab81954e467c6525633f25e0607e290318097f1a484c63689aad752912
MD5 589627ba200de360aca775d0ebfc165f
BLAKE2b-256 25f1ce23e078475cc82c39b2a58cbe4473b9c2c8bf1d01553bfda890b89ed8bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.94-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.94-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30e8d543ab1cb0089fcf5d8aa19f6bd51f517fc1d5fbf82d8b722ec1b9bdf5c2
MD5 a3d12c7d75cce744b306eb128bd9087f
BLAKE2b-256 50a6f7efa707c03e4643418422356e1d516bb998c36977a4b5638c393dd0f054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.94-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c43380d064c52c75119098707d6703c20d5739a011b4826662205e0ed31d6096
MD5 dd1636df1ba92610c8609d38c4d39e03
BLAKE2b-256 c053ae3fd2570ddcf46b875fa597fef7580c2631e04fc7473a530baf9801b364

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