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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.887-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.887-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.887-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8adc2314dad691e573f26fb048a9f0e046b68b98373dafca932d1f3d3608df93
MD5 3b4013a06c0f35f9aad6ac33617799aa
BLAKE2b-256 696398ab17e708f2945167c6da729a2b56960f55a0427d4d80bb97f1461081ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad0e18f788e80094ebe81ab59bce8e3a992c7419ec6e16d80af22ad2530142eb
MD5 d03c6f1c46969d8eb6d8a6ab46233315
BLAKE2b-256 350f48bd00fc77561dbd613d67488662519dd489b2b6c0a8e57f23ad9f47791c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.887-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.887-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a116941098a9601400c2ca115e7b647a3deb4336ffd2b1ebe0b9f948a89f1310
MD5 290c4e65590fbb7dbb40260e19a492b6
BLAKE2b-256 a4a7c9f1abde7d4462e80f16386a86fb249bf68d294cf208439e10de476a7f3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25aff1c212bd3a93dd955c56700400a1990efd26f050b350ad31810b9084447a
MD5 21a1406aab7ef9f2f336d95c9c026f86
BLAKE2b-256 2ea5545f837ea805ce19df17ce3ad10a499b9f75c4d73adc7f33464d68f633ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 22afdc530c34581ff28243521234f820ae7ebb8c44cdc6f018a5a840482673da
MD5 f3370a9ca97391aab756098408a85646
BLAKE2b-256 a2ef49e99c1c5abeee30a2ae3bf141ae84207db24e6fb1bdbf395440c1078ba1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b21b8720bd439579454fa93d7fb7b57f98b0a455881f1f7b9f9313545eb97fbc
MD5 9dedfd930a0104c1b2e95b96aa474e2b
BLAKE2b-256 902b9850a5df9983cbe6eab9dfc0862985d67c73ea068a4289b1a347988a8378

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.887-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.887-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 567664fa419a1b38767f5ef79c4f894b7c19dc136a2721c43ae2a1b033e9be2e
MD5 6d5a9ff36ad052f50d6fb8f1eb15bd15
BLAKE2b-256 924219725e4ab0b29b3ea96983bfb1da96ea3bdbc23ec8e1e28182a22948523b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38563f3ccf173cbee304c78b2d975e72ca5179aeb68705af15959c2b70f25203
MD5 798ef6a570d35ba82b91c21626cd5bff
BLAKE2b-256 aab4dfc6c1f76988db148dba7bca4bdd15e0615bf3e39f51db7e84fb582c59c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d4be2623b193c6c82edff1cd3a3379799f82fe02a0c14e651c5c332b293b9f59
MD5 45947c449f03e6cb9df517b1a5172d00
BLAKE2b-256 8217eabdc257c7a9e62736badc6d1cd8519bd66319fdf98bf1c5246da299d81c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2615b20c9708115cb7c58349e86170fc8c068d03aea57b1e4eaf5dd3947eb455
MD5 4558fa525ba4d33dcc37eca8fbe90469
BLAKE2b-256 d4d86a5dbc5faba408794c706f88433b7d1e81b20ff7c1a4c22ecc0a8cabff93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.887-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.887-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b140d82e208ec729752422be1394853aa7bc935f60480ce65450b7c4b0301b8
MD5 3faa08c34a284d10c26dc076cdc5f44e
BLAKE2b-256 c7d4bbe1f6b0ffa6909acb901b8218c29e7eb0978e0cbc28f38ae2fa3e6a3dab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7c9a2885a9667c5073204e93f9a7dd9c7f654792629f7cb1bf8544ff3b7dab2
MD5 12a84033a94a9755603e0b2441917cfc
BLAKE2b-256 a028f6c638c546b4df167c3d714abe7023f745d07ac90bc42a7dbbcb391242b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6b353e9dabc86e56314a14c172badc1579f8b3de95f210e8df0b5f3917730dbf
MD5 5d6675c0767f55f681a3b06e7bc02ea1
BLAKE2b-256 3f2e403868d06c7cf5650d81390bb699e080533dec68798dec0b8c3279c7503f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d087b38b2fd22a86ab6d2715eac96eaa3fe2622c05fe0e72d6c8d45962cad09d
MD5 4733de23e14328f5ce7b65f63ed10104
BLAKE2b-256 163c5a4f31da0570c08da482421fb0de5e57b8bfed39f4b9346ef6cd2f4f2cdf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.887-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.887-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33127f5c9548380783da1e25850bb7ef739e7a46f1adfec838b47d36b89dea2c
MD5 d97412c06c05065e32d7e12f3360cc08
BLAKE2b-256 f99bb9aef0fe217b5fecf161e6a9b824983924dd95d9d44d10a549feba1e8935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62e0ab4297012ae2ccffb5082791ca971507714f10053740680c667d2223ef4a
MD5 2d8e3273b81f88448551b203da6a714c
BLAKE2b-256 8b4ef1c29232b8db8a9aa2bef931417f8d030ea3b9fe5f62f703d0719d089b96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2e3e5930a43e532828227a1d636a252cddfdff634ae3011805fff64e0d5975d0
MD5 413de571fdedf4ffa0fd06d5b60980f4
BLAKE2b-256 1fcb61920a620defc83dc9832298ed6ef098843be9f59363e19c0d54840e330b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.887-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.887-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4d3111dcb1473812410f8c0cd2c5f683ef59cb48a4370831303c64cf04b8a40d
MD5 b6104da72b1eda1709bd4f6085d7b3d2
BLAKE2b-256 8826670146f01aac3db582599614817651e2ded8b61cc42731935e9205ccaf77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.887-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.887-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f620d07c1eeb8843c59a56b3c5f04d2b00dfb81d75a3fa725fcad4645015bbb9
MD5 86ec55ec4e28c51d19426e9350302028
BLAKE2b-256 decc28de13daec64717afd0c6b6c3219def5f6f49e610cd1899917e28d78d64b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.887-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ad3acd4e410be5c8f5aa933a7909fdef6bf67bb2702ee776adc41cec7d41f1
MD5 2fb3f87ce185e4b8b40290facd86c6a9
BLAKE2b-256 36aec399c09a5f7cf81168bed3dc7e33135fb3de2a08c9321c2a7bd793a0cf55

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