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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.46-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.46-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.46-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5f09adc08cd3d308e8f9d241c5d160c436bb4d95a1cead68af01f8072e52ee67
MD5 b9ec7546d8bfd2cabd0cdeba72924b28
BLAKE2b-256 48d86f7f0ff02042aee0bd7eb316dd143c40a905c982b9c2c4afc05b6c75e699

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 41e7dc664fc240497bce82602dbbce91fc509a9e5895f5b0ea8631922309c9a7
MD5 e75d6a5d6ce79f3c477e81f7cb3028b9
BLAKE2b-256 def37b7cc93bf99612fb93d3431ca3f90da2b44ba019795d183d737a76e67e90

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.46-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.46-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9409314b3057e2630d7c1c1b3fc7a11d4715402fac6859f427d30c75d836b54
MD5 2185a0e0853e166598a87e5ce8b5069b
BLAKE2b-256 cfbec16777b86c28847f02171072769deac06b5bfc5e1eee2074550e1fbce15e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.46-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17bf740450390e1e72a2b3fe0ea37b2910939f9c951d3082f8fe0d9da11882b0
MD5 4c88a6728cb4a606ac42c81ba04ed886
BLAKE2b-256 065f19dcd494bd40c5875d1a149752a3a083088426db1791b82636215deb051b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.46-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 320067d70920dae7b3cca21ef0d259eabc818be9f9eb35a2e840526e9d9f83d0
MD5 0b0678a129fab276f1edb7b523ade761
BLAKE2b-256 1d5708831ace34bdb9ded2f36885d0921f967f16502165202a9daac4b05b98df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b645763d00916a95d466c304dfcc3d1adb6b5d1ea79f5b673338d9b78aad175a
MD5 4a1c881f907a1b64361121771020029b
BLAKE2b-256 f29ce7442d32acce643ff5236515ed378e3727d3a877b2808ea4796d7765a982

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.46-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.46-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 028b9fef9051a26db13019af87a176d247c86e1f7cf52e60518895b3e513eb45
MD5 57283154ca68ecca038bd015d29de2f1
BLAKE2b-256 93c460f31a7028d4f053e14991ef12349488693d53d362d6cee6cfb7b1f294c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.46-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6261541e132693c14c3888e2bb3976f195c256e0b86d54e0bfd38cafc264529
MD5 11fe6d83fecddf178e4b443e2f7caaf9
BLAKE2b-256 2608e62f912669bfd464f6c83cfef46cd531e4d0343f3a9bb5d927fe3ca707f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 58846c3f6d83a9589520ad0fc98b423338a2b3280cf0862c539bf50dd19a9cff
MD5 0b97a6201bd66ec68b8feb0f55f26668
BLAKE2b-256 a6a14e1c749e509f81cfeacba68cbef30ac84f99b76e621afdf8c44881f820f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3bd32ef8d935e5401fe0578df73a72001fac46fb7021913446aa72543a81f259
MD5 2732f7d14e618c3526a88be8e7b300cf
BLAKE2b-256 c9cdd2ddcb1ff7cad6b2a51f12ebafc2763c2ced294e54c912a0fc8af48d8135

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.46-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.46-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e78c5abaa53316b4eaf739de6c5d4279a99a111f2346f203da4a9d4e2d7aa0a8
MD5 fb16ad03992127b27b55306963f24b76
BLAKE2b-256 e07a546759725b39883ed5ba445b0c3f057c5a035d783ff85f6629ee8a309d2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.46-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5240f8a6f671e070715edac1c9ccee150de7a40a9f254d1d914bb6d49c67cce7
MD5 8ca29aa3953fa7cfc23a9b5ced8801ef
BLAKE2b-256 4bbc3158f5dd53fedc8b88521ef2ecb39eb432269e610a966c1249c2b9e801d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 507117cf6a39550ff70a1fd162a04a4f290a17c8e16f94475bf87f9e76c4b523
MD5 c324bfa0f679c2197bdd2705bb7d39f7
BLAKE2b-256 74192f98513cceb5da2191dca10323efceed27f31d0ef98a69b8f1902a578671

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 55a72a6d4ebc1a16ee1f98c84ff81093caf9361cabd84ffc05ecc676d2b8eb9a
MD5 d13d95cbbc8dd576db06c23b12feb78e
BLAKE2b-256 4b8697811e6b128359f7f77788644cf977841d89552e5e52071226242c7c2e2f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.46-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.46-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 47b9b092a71a877892a39b3316b020d61362effcd3744f6a9fa7ef79756d4ad1
MD5 318f5514a2e8aa7b0613438ef7561b36
BLAKE2b-256 e46908dcd2b086baa71f6a6cc1a445db8ab9485c7d348357f2178b7533359891

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.46-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcab8c0763121090da310d850db3f8a6a437df7ef26f62fcaf9c248060a7f80b
MD5 ae39f601edf1f0fc71f9c03a9170ab61
BLAKE2b-256 f030a60b5f7b7320721c9b66002b3d4b35c4f399b8cdb82c00367927da83e3b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 21442c512fd9f4f41f46bffd0a78aa7a6991428d66d49ebecc5c51e102bc1528
MD5 b1b05858d16b8918318d6d3486f5bd13
BLAKE2b-256 2fb8898a9c967aa9b97ef8f7253c9077145482a4f8d7d9f46002bec7b29c616c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.46-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.46-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c84a3f6b9c2a4e87ec60bc37f82f8e268c5bd89c7d0ac2d71451f2de52477da2
MD5 10d63217dc384f06e7a7842b0a33d540
BLAKE2b-256 a61c184145597467f491e6352a397d83fa843fe832f3c02090ded7fd26e65692

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.46-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.46-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90308b2f1e57f2143060f9e7b30088bcb643551395a20616221c1b51087d1705
MD5 a053d271eb16fc56134cad302dfe9856
BLAKE2b-256 984e803c334ffdb01db6177112049a7a4fbc26ad148341dc3d8ee56e6a755a82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.46-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2e0d8c631bed5f1d3bd23ba788e6d93cf3ae7841530d66799c8636dca13c914
MD5 ec5957bde3c2e36eab8dcc8ea14347f5
BLAKE2b-256 eea0143d17488fb8192d2de09848d40a321bb8643bfdb161335889036ed0f82a

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