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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.529-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.529-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.529-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.529-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6eb897fbc8861a78868d4b5642711ac9b86546cfd2184682b869348302dd6f14
MD5 f1bba87592fe1b5499e2909062907863
BLAKE2b-256 b88761d9d70593525fcd6c4b3f8695a8d7f04ee3a632429692dedc1d6c582a73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-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.529-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e4806510011dbf28f32ef1fcf1145284eb8a54d5a6675180d9d0928c96ef0d8f
MD5 c0432ccb66d5e6db036fae14ec6136de
BLAKE2b-256 9fced29ed96c6595a0cec1e8762aa9fe361c056f697f63889dfc282c7d7972d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.529-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.529-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4982fe8744b014784354367375ff109a10a7829712e3a3d328b1584a44803813
MD5 d410a131335a528a43410f62aa6422fa
BLAKE2b-256 474f4cecf944598512ca24597565ff97ea692022ac2294e7ef59cb28dc96729d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e92b9b80f1f3b16de11f7d5e6a2d477bdb00eeabb32b435e982b8e5c820ac550
MD5 d92bb8d4b4f743546e5bde331c4432ca
BLAKE2b-256 1fdb76d20dc0277055158e17b0b963e4c72f57a4554aac5df955c887519c1bce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e76d5dd2e084db49ec8ec254db33b01194be256e57af202564be91635e84cd47
MD5 0fa28442156834428469eacd6bab4eea
BLAKE2b-256 d0a6783c00b5b066c4af3710342f459f5681b233bfc27167875e3c4cef3b9798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-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.529-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2cb3b71dc189db46db53f68ba7f0f41d9baa47f9bd879615ec0477582699e332
MD5 555ec92c2035caea3cc9bf557690fd56
BLAKE2b-256 d7fe15b039ff5b4810eab32bc09a60e7caa7a0e960ded1b4c4a19f25f52a96cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.529-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.529-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30ee7c95bb2b7e6d75d1edba0fb7b7411cdc4f7698d13a1020568b56182a58af
MD5 52b904bad07d8b2ad43ef9c20988bd67
BLAKE2b-256 707332eb28f50c2faa5b7f78a548ea01e5edccf89d85138df282da51abbb9f21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b52207bc2b588899bcc2aaf40130f91a3fc14dd1e51e53a3b6e0c096799b92ef
MD5 353d0acace8969cae691aa800c5b2901
BLAKE2b-256 ad3d08e6ca4a18973ea24fcaf32fda4ee4f6948aa83e06a7ab4600a3732b635d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 459cb0aa6379d8e0228d198ebc90a2fe0a27ec88c61782df4ab3a32b9af02a92
MD5 f5be83e4a13f0e2f397251b8cf5c465b
BLAKE2b-256 3a3607c884f9b5ef9140bfe39f8f1bb77a20450161a7c987387d7c77cd4f0036

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.529-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fb34a15ffb723b3ab4cd94a7da544f3a33a1be5c7661c4a663d634db022f6beb
MD5 cc43d6382fc7650897f988afc14b702f
BLAKE2b-256 c74dbefbe142e3c40c623749f8f14b4c8ecdc5618d42390f6774e2a6cbae4de0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.529-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.529-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd322f2613b1e386e7e15646ba562d174bd532fe22412c990960fb61107a7ce8
MD5 01f3af324d4929f524e0495e9afbfe0e
BLAKE2b-256 a28bff39a8e66585f63646f7a54f62f1dc98edad14e511ddf183d4edabfd4d02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 182483cd02b51cba5229aa635db6ce69a46e5831d89b00341db9371289757ad2
MD5 4eb74b1845957d6cadfca2d40570e499
BLAKE2b-256 7c18cec007546853505fd012420d4d95c18d5208c9eaa4774521fdce52de23c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-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.529-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 989ea8e438371315f770c8cf82cf22c148896893bd283c2837fbe1fb4bed9737
MD5 e5d6145f337aafccffc60a911ba090af
BLAKE2b-256 cab2a788a8ac8bb6b20293cb5a7385365241bd4656ec09139bb30defdbd08f0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-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.529-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a5b737564329b0f5a2c09e51fc9a4fc4370bd0b634e4ddbaf064f4ce37cb1219
MD5 350ff22c08247f15134bc971d8b66e42
BLAKE2b-256 27c8f266ecac8c11da4eda6069b64d510426652990e54542c197727113bb07de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.529-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.529-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c35cf98e6130b7fc44682dd02c87fa222bf2df2f8dc7b705141dc675f2e7015
MD5 7ff6c0edeb2e99766ae8bfb7b25d5a97
BLAKE2b-256 41dbc5bc7a6df1bafd6faf8972ae1fa67e1185e1beb1fe64c16d79e2fc43cc43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5cb9a4255d030d1716a2e6597e015cdcc58b78313b4634caa954ce042d0c6ff7
MD5 da48b82d8f8c71f11f9845b562121a06
BLAKE2b-256 44f93fc564b4daed14eb6c264264146b92e75d253762cc9118b574847a9d392c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-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.529-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 75f8d290f0c726ebfab45905bfdb3b8ade0103927a2b54e3cd1ec11f3c247ddc
MD5 0f00375f0488c83880c2b0dab4247b0e
BLAKE2b-256 3f88cd6c97631b217fdf7074aad6c1a7534d017281ee150ec6e13f7e155aabaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.529-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.529-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 668a8301908b69575bbc844b1aa392a9a6ab0d93d7b8b4f6062b40b0acc69a78
MD5 d957a0834e3fdff45e225b394c038e76
BLAKE2b-256 eee815258ef95396bfbc386d3b3d4450789ed79fca94ae72a6d680b93ba0057f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.529-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.529-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6b06e96c8493cdb398eb2915d35c8aa345fa9352ee459d0e5da2e5f653dab8d
MD5 2d6c9e1b3dd647158119b3a1d6c0f813
BLAKE2b-256 1c8b388472fba3032ec231d2bfff8db5909d9e227c1cc272d89192bcef33c6b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.529-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e94a27bda90a0fc749d58ea6663e487167de4f72abac09efb537c1d66049735
MD5 349618c9222dc0f6988c4b425925504e
BLAKE2b-256 33308f6fa81e1743c44ba9348d4caaafc7badfc2d9e8565084ad88d643518b81

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