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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.764-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.764-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.764-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d73c95f7c8da3a80949f4bbee0685082d3b07434f19d3882e52a1b032ef81375
MD5 5b5053ca0b715210ba89d52cd33c424b
BLAKE2b-256 66f114b91cba976ab1700fa21fe21d9e25fd41767a384febcab44c4c5754028b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bf847b4b446647e4361f69eddc053de2e6fce7362c5fb3fbcf6cda4ea8a386e5
MD5 49476cf348a8689364fcf800c8dff6ac
BLAKE2b-256 4b84714bef15478ca4a6e7c54d970b2725b0203b1d7de73ad1ce995ea9033cf9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.764-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.764-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f458f5a56c68748bbb25da23c6086450c7b31c38b455b8a5c442e229a6dc0a1
MD5 aadec3e25ad002675bdb7b7038336b24
BLAKE2b-256 b322f1ddc1f1e38a7f78167ab239264520b0d2d9575e2243d6bf0deacf8ef568

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df300800b6ca6195e966157304c43d015326f8c562c7fbf928a386efbf3b79de
MD5 68b3fa047e7e9d5cf6ad48c7bdef1efd
BLAKE2b-256 62aa34e47e4ea7b381f2c327cd674b1920477cc6a22f658a1b636098cf04dfee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8a95c64b781e5cefc3691c0e9f7b241de0c75bfa72fc664d50a179a916acac0
MD5 ce0598eef925ac10d59525633bf07563
BLAKE2b-256 20721c403f4cbe526692ec20b956bf6c38d3f7655745fce7557814dc9a22bcfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 95f152e28bbf1c9de1500ee0263bb8b6bb3dc94aa345a74f7b23b19d5d6ceab1
MD5 444643f59011e86021521ec84197425b
BLAKE2b-256 e99b8f865825bbfbbb1c6dc9b768a67e97429031e065dfd2f88cd4da07c92b5f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.764-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.764-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fcc2ca50fb758bcb94ce5282408579524b80d17fe41bddee12bfb35b03b9044
MD5 81fe437b39e0efb11a87343a8187b46d
BLAKE2b-256 d45aaedfdf9bbf5c665cea3fdf874bfbd9fb6eaa72ce4bb038c75379b7e04f99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa5590d6175cc640ba0dda9fc6e0791e811f6e06a83c79c265e7136d89e1d751
MD5 50c7acafad1b444620ba3b8846bd4137
BLAKE2b-256 5b143bdfc4b01e5de215d10ad09fc8fd6bea81133243421d1888a473d8b59c34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 897045b3ae61813b16d43e19d4bf677298146a68cd385b67b536aa2c491fe87f
MD5 9fef9655585e71e71b49fcf4a861ccfa
BLAKE2b-256 1ffd7fea94fa3264feb122abf57ed77b147036108c2edfa805f1b593f5809c50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3200c42049c8a0ae25ae5bed069750a7fd2e083182338654d1b7c08d14a85b97
MD5 bd2347d534ca83bb0d9f61f32c80f0e1
BLAKE2b-256 277251b1df98b64882dd8afbbf36c053a013235c1fe190bda36019e977b699ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.764-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.764-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a99322586c4cbc7081bd62a408d22fd845786ff218e0724278b2de5c4dbb525
MD5 2b63202968ac300dadb4c6daaf9ee443
BLAKE2b-256 1c6a018d1ca44075d614e232a7536611d90fe8585303acabee155c8fd114bad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 245ae13b1648ae718c6b79f8e27b594dfbb8c35327b4b18f4cca8501ada2b4e8
MD5 1764db70eb5db0ee24f64a89092cfe62
BLAKE2b-256 a7133546d6370fdf2a9cb19507c16223b3527428f2b26a25c367fb34575ab2c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eb2013065fe59b17709973bb493e0b8dd73203600ede4daf6363e4445e873f24
MD5 fb650346ca2c3bfc2f04e52f3ee08d45
BLAKE2b-256 512afb112dc730d91fc511c28fb6fec70612aef82c6e89c58c1b856e39c6648e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1cecc7b4ae30be92edf32062e4093232055a2498030af3982f890975ad71ed27
MD5 92834574e5de4203ba726e26c56a863d
BLAKE2b-256 94c5d91c1d05ead1d67d0693cdcea59d615113285de11695ff8ba9e84fe446c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.764-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.764-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c2234cd45940576d4b5035b281aa2fe7c7b939314ea5848a69acb7b15d562e9
MD5 5fbd653e71624087bb21720f6031ed45
BLAKE2b-256 e20969beda3bfa8d06ec2b80bde55cdc3a11bbd502ba616ad4c4210d642b6d0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e5e8554e727a1c4a285b3d86d88d257d497e5f9461b4e42d3424fdd27ac2161
MD5 d5cd9f6905df43e74dae174d72476003
BLAKE2b-256 add07f0cde59c0b7f7c4e7d37b8878844319c2dfecadcd773d648f911028c14f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c41f6d5b9dbcdd1fbd1ab0bc6e6c9cf3e50f711958662d431c1cbe519e01fc9d
MD5 c948a423bd548e8c12b1664765240f5e
BLAKE2b-256 b2a08db7c68223527309fc373fd4112dbfacb9f526018856925c887ec07fcddb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.764-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.764-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b5882f7d4d59540e07070f9d76128c76d04b1a9bac9425445156e29323969d0b
MD5 6941dcedf840928e2c940387fc654815
BLAKE2b-256 a6a5867d17f1127ff80bf10b9810f1311db7bc8edf7c20337d19d0b3fcfcbf81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.764-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.764-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7dbc476d5fd95d421acc4599c8af87ca1ae36a719cf46a5af9f73a2ef1aaf8d3
MD5 ee1cd48e478714919a219dc744d7ebf9
BLAKE2b-256 329379aa2c190dbee179a81fcfecf1559cb37aecf2aabaede49cc5a86189b7ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.764-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 957247fb5b4af8d8e3f6d3d1c8fdbe7b9635dec882b8ced13243302700b0bce1
MD5 654326119d0417265eeb0a9cf9c1c180
BLAKE2b-256 4a0dd688e532a751aba95266b894156d30db84dd6a16fb96ab824acb5d223140

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