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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.7-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.7-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.7-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.7-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.7-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.7-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

File metadata

  • Download URL: simple_equ-1.3.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9d4363187a8b734b7a2d14910556ce307e3cffa08f4dfd45c0f0843378e2c90f
MD5 cca791f5f2902dbe95774389e3f63e8d
BLAKE2b-256 0d6d4dd77243fa0b47421367ac74cad60de05b686c53b56ad3e550eb40fb2949

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-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.7-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 da709cfa6f0932deec822bcaac6efb1ebfc2b203061dd9ae04acb9d07340d324
MD5 8b52002e66f2951dd19eec0624bdbebe
BLAKE2b-256 853cabc162b81d3d36b92e0a4fc36ed7e2aa64f92717bf8ce31da1a1168503d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.7-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.7-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6bb7620f070a7020ad5e4d110325b2285321beed6ff263da232bcc9ecdfa4cd
MD5 2e89c7de84430d74885d938c32df1521
BLAKE2b-256 87b4b77b60ebd2db6ebc4143553343eba4c17912508573ef5d7ce715c0ff3a08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef27d4c4198a36a50e6b31a1b8009d88d1f9d5e0df965b25da2bafef8ff4696b
MD5 7870f835893f84032ff2d464d4831208
BLAKE2b-256 8233d7fade735e3482a3015baad97087001b6cce6c58d91c064bf81254c7a7eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d11b6cd7b424ab5b097afe06b76e650ddfb240c695f2a84bb595752080b26966
MD5 f6c9ce09b9eb9b81730c2831b55cbca0
BLAKE2b-256 d93da9e489c4ffcb48ab6670bd940c2642e2a0a541e8b8ea2e9757c66c78b53b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-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.7-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2983979ef3ae32b32b54cea847a2cd9bede6610eab3a6763e05524209f38a259
MD5 887f9c48b87ee3029ee5776392de5030
BLAKE2b-256 fe0745c0a93a99170b8c5eccfa1648e48a1bde7bd1eb6e8e24aa0f053c771492

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.7-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.7-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 618b4a1bd8c06e59027332c3ea2b059e6db3520fb90ebfa4f15b93d8622f54a6
MD5 71751be2ba61af7627c340051d568f1e
BLAKE2b-256 a1a5fc0aa32a4602e9a7ddb79de10faa22ec4be5faa710dcc9cadcee6ea813b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e108504f470eee0ef4a6b5916c2b7919b317699b9e48ee179f611bffd0b9a98d
MD5 a086803c310ae034448a57fa19859679
BLAKE2b-256 7748437067b13c726038aef633b4a4df5ad546ec7e6b62927fe331ac1b9127ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52854ec60f036b2211aaf784d8aec420eeb0024359dd6722888f45b8c072b09c
MD5 4cb80083c812a9112569b40b54e6329e
BLAKE2b-256 98ea690d4dc6158ba41dfd135894ca1005ba260cdaf53d67248add9cc1dd053d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-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.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fd2242986ab4c7efdea68e71f9c5b1426254805bfd6c82bc766033b4a28388a3
MD5 a92bef69e95e1cb0b1206adb4d7eebcf
BLAKE2b-256 22297979a44ccef9b9509d0882ceeaee87861f7d5b9c1a18140079669ae8ac0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.7-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.7-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 890f1a01b6b4ffc7bf309788d245ef93d90709bedc741304556524986f5cd3dd
MD5 08955a9c7ce86caae3ba665e28d3050f
BLAKE2b-256 ced7fbd77eb27b67dcf49d0c1c460216f4097c889a35dd1333c2732ec1baa3d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f4096ac7299cc4fa3328e131b357a8cbacace04cbf121375a738a6e142978e9
MD5 c6e6527b76a9a4bd8f8b80f4ab37b6bc
BLAKE2b-256 3e0986fd32932c30114d0b7f3b06a45d1003119657f8b22aabe074a20416f894

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9f939c947fdf9dc2d923cb560b8f3da901eb8755924497e58ed64fd544f02590
MD5 99d32da4efcc730a92d680cab0d5ca94
BLAKE2b-256 0b4812fa82122549e4562205af7ad302e1d5505878d1510fe65aab78014846a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-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.7-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 998b2dbe2f3eb1fab634c877ab1bdadfdb3cdbb3373b43de26ad6b4e06bc627b
MD5 4abc2a5c5de30fbaa5d8e94a3097ce1d
BLAKE2b-256 21eab66e8c53ecaf396487dfac63e4551a3743522a19b57b48ff9b23e37d6096

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.7-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.7-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ec6c775e110c8928e8d38828cbaf2230d5c52ac822ec61b0f912e088af9ef46
MD5 2595882367d03e0e96a329efe966dff8
BLAKE2b-256 96e6cde45ff54571566c014f3b1f8c2adf577dba9902e14c0f64ffa8e99aa8ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb57ce4ac8789b26dace0fee09e267a55d15cf983402dfc6243f40f361b3b900
MD5 bbc7b642f595b262f01ba81e7a907c29
BLAKE2b-256 fcd3d9267c5eb51d71d72ad13cfe020c1e29ae3d7ea095f326cda1a80d12df0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-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.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ebe284568d270aa6fc8a1b61fc38245c18cac825a92662927998bf7ee66e932d
MD5 885dcef5429207968b94caf4f6bcaee1
BLAKE2b-256 095a0ec6e25c8ec5a1eabdf9a2eeac64f31159249d736ebf95fc527e457dcee7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.7-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.7-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 df61ff0d7d53dadbc7c07a34611b5640f59e76ed649b9385157caeaa58123968
MD5 c93601f05b21fdc8f65583addac64e99
BLAKE2b-256 987256504620b1af1ec2ac34df4c9c551ea481a871077703bf6a11783bc70c97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.7-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.7-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8ed543384ede0016d0733e2b74224f935ba60b20f2aaf86592bd67af7224a39
MD5 7bb828e2a837137b7587fbacc9231f92
BLAKE2b-256 5d483af5c81c2014596ea413d5357588a223eafa8d0446a7763772a5c76ec11c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.7-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdfc307fd58fa9f76155d33e1f7acbf2c110a164b7a5348d8b46330c74eb88b2
MD5 56a18fce03d6b298028b93591a35b30d
BLAKE2b-256 6a2690d453477ad3c7d9184a2167b392a513bfa6a6f64f9d66c49780978e81ab

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