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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.160-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.160-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.160-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 33f53ca40ab94a31bc5dafbc5bca89270bc673a7dd102ccd22b20d30d1682d6c
MD5 53dcfa2ca74cfd0d34c498612975828c
BLAKE2b-256 9fc8b81caa5ac4e878b94affa9a3ff4a5f4b5c266b170345bf164c898b5b05bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 95ef3a4f80f47e9150aa8cec23c25dbefe0bdca91b3fd7de537e29d2addaeda2
MD5 47fae80639ab37d79a8791344d0852a8
BLAKE2b-256 fd1425b1809bf15d6b7bcb1bf3e721235c05ff8ac277faf98341341ebc30ce64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.160-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.160-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66fa005eddf37a1e9de2cac6c78bcda9c34e84dfe2b37984ee9e512d6ac82bd5
MD5 a394307646e783683905dbcfdfafc21a
BLAKE2b-256 dbaf52be6286df76529f85abf90930986996bc0c36414c6213a638380eed55dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea9de661779a0864b610943642a586209ce50655a84645b7561b3f0b5f07d050
MD5 510169ea2b241147ba7d408919d3f100
BLAKE2b-256 f507e61cc0b04049474697a6c8bf8f477c4046417f7e67188825cbe66f4c99f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5b4b1ae2444408d149582ad7e3daade4fb0da2c903c263dd7ac1948bf932cc39
MD5 0e85554b62fb8b6ca2e5a9efb708ff60
BLAKE2b-256 5e8cfc1239ca182617b61fb40f876cc2f5c395fc7ad03f4d8356576345d32da8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 21655c4c0c64f21322f09bec2b30a252ec134125b055d149ab8d8dddab30cd4b
MD5 d68e4a478cbaf1ad00e4b5a18f9396e4
BLAKE2b-256 540e05949a56e41d5be3e4025e1a679f4fc1136fc7adca838ac160ad1f22f5e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.160-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.160-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54f17865778b98bb57ff9d2a4cc32944b6ecd582abfbd8d85619ef19b10330f0
MD5 fd8f91e541358ac4d160d0c0b73586fb
BLAKE2b-256 825f508e7b9c758d3de466f93f96f1529ba6b4a15fc9f1a81974df7edfc37953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64d8a12565ed366fbe36f496dfd46095c41f16cd81f8075cf61fa47c41e76b03
MD5 f9eeda8946ac40eb23ca0fd328dceade
BLAKE2b-256 24d4b0bbd55d46f865fc5863bc671436f6c54078fd203ffbe140620985af06aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f1c308c5448b4a0430509d340e840896b70ca9916c5a22bf4907a2d0f59ab819
MD5 8536172a32806cea03a959a7747c02f6
BLAKE2b-256 b0772bea13fd8ea14e37cbaab30b3e5417c1bbbdda0ffa26695233ffe7540af4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7fa70c82915c450300b44b971c2a70386f126edbc3c3ff8ae2b6de4ace66871b
MD5 65f444cc5037789d5325c4686e01f658
BLAKE2b-256 76a1f5b2570ac154a2601b42d2fff2709a559d350ac4b1bdf6682a09472f90b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.160-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.160-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30d82d3bfe5114d51e81d0e3155b4653743cb821f0fd078c190751b9aebef203
MD5 029c0086b80fdc9c72ad428be34bc3d4
BLAKE2b-256 b808c11436bb5ff7ed2d5d5460fd60ef487b1f1ee95c94cc814459dfe6b5a429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 593cf2f2c768e61b9ed820b3612b5a49fe51f06d8e0b6d493c2cbd36aeb75bf5
MD5 64eb74c4a115494b70c465c722f73b12
BLAKE2b-256 ddf4541e0967a9beb9ffcff2611adfb896770ebf4a5ba98bfd5024cea54e0233

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 853cfaf73cbaf4001173f32d0d912592bcf31596c1eb14ec5691af327f7af059
MD5 eb12516cbc1e64a8611c4b08c6d1a99d
BLAKE2b-256 0790c35021be0afe576e358869735cf9b1c27a1cea8effcce0b4d2d9d5ffa9bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3932a3bd3e44f790ac4fd4a6639212948b80f9daf4d6a6fbb1b9bd47f53c15e7
MD5 4c647562777c2210622259a53dd29551
BLAKE2b-256 e4d700b4aabd26b296108a214b910b17d016221daf786c69e18b25b0d6d0c2a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.160-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.160-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5cf38ad8746666c262a0042e2fe48aa572227cb2795e9311b2760c4a740c811
MD5 358eff1a7e9fa2dc63aa8deb6822c27b
BLAKE2b-256 3f118b1cc29e28c7efb66ff961be0a4b82518981430962125d32cd07764824e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 121c4f460492f2962da22eb0e75fe4f93bc1a8a112637dc27c0f0d3a6d7cca0c
MD5 39bc9a28feb4f229e0037176a2e2e733
BLAKE2b-256 d77e02dd8231c51257a7c5bb2986becb6090b0f9bf9ecf4ea6a66e24570bd084

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cba01f83c2215652ff4e00931a99bf7676f9bc9fc972b74e5438cd6eb16c2a55
MD5 d9ff7eeba8ea1d6ecf3de0aa9d8914c1
BLAKE2b-256 2427a678d7eb08790ab198766f01f49a27e163a2b9caf618b8cc5d30c28923ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.160-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.160-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9cadb4f5f556c9143ad0704bcb26fc38603a6ad5366a0052f8f5948290b6d616
MD5 be10f8b0c307e003f07821cb84483efc
BLAKE2b-256 3951d58b83c5f680a1d2f37cbc02a4bf66f03f34c7ca7031812bb643af661ad2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.160-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.160-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f26db6eea6d8a40a696502d61403d8ed2efac86ad904ab38b76480acd6fa7d4
MD5 bb537c8c9064207a92291ef3d7514a11
BLAKE2b-256 a9378f024f0b48d2c990d4c99babdba402648e5113051b818cf407bc461ae2fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.160-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f90964d3ae3ec152b73e0db3ce237a245c62d2b9fd70a3d2be50c14a5a85b5da
MD5 002f882916daf266a8eb4829e4c022cf
BLAKE2b-256 b4dcd519e084ed32bfd8c6696e864075d903ddc9b6d714a541279067e95ce5d1

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