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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f620b52136b9b47a83480e6112fcb56429856fef8169e21bae5d39e3679c5b6c
MD5 41f8e6b4d0eae5f199af45b8a7123442
BLAKE2b-256 a9c7c715749b6cfca7473bc3de07a687b5f202f8d0bce5b0f4612ddf1f90982f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5809f7517bd9c72efd13eddaa37446ee60da524056b66531c882a99ca352c90d
MD5 eae3efacfea8fdc1bebf8e4ef82440b3
BLAKE2b-256 8847b4df35cbc7cd6b0b234b47bcbbd4000a624ebd4d5cabecaa37ffe51fd6b0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.643-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.643-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a77f08d461d54e98acda8e4722deb97967f691e1fdef8573ddfd8c282bf56237
MD5 9c365fa9c443068b40da569479f5a6b8
BLAKE2b-256 154b4cbdf4046b2ce57aa337598f019bc6c4b090436b483f584f25fbd0cdf7f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48bb76828c8103b978faf4eeb15207c76aa5016d36ffd8c51169a2a87f9d9b6d
MD5 4cdec3fac227260cbafa7538d70bc791
BLAKE2b-256 20136da78a6c06197329da9c5b1a0a19986735bf3e58374df318158aa6094b67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 566c43457bca56fd03818599d2c7b73f722c6ff6f891214289ad895cfa4025b7
MD5 6e775ad1e3aaaa10e14ba1f8a1b8e67d
BLAKE2b-256 6b920e00191e634fab9fcc831e2fe9bb3ae7532ee8cd6f0aa585c56799d09498

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 647992ca762d4bbf78df51b5fb80a58d414e4046c58c5443d8a38f5865cbc57c
MD5 2a213b39a910f7aae2ba184128e3d643
BLAKE2b-256 d56f24961c90448b581e479699fde47fff518bcd170c2edf77801d00d7418b69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.643-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.643-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4210b093bcf06977e0eae89ba5919b008261082206993400d5623b6c0ee4f5e
MD5 41604f46068dc4c02dd2114d484c5b34
BLAKE2b-256 6a42e09f1478f34c93c202a261db9a98aec3fa1668db88cc20575e998e809ab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c455f749c84cc7e284967d83e06f709112504a45962129bd59eebbb729e5714
MD5 7eefd65ae595a260d55667b1b27254d3
BLAKE2b-256 640d2a15b6a94b746146e7989bba4ccbc9dcad8184c48f16783d3d7d5f7f076d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 43fd13054b98cf3d93996d215e4723052cbbcda6927b305904edfa001f75bc83
MD5 dea185bedc67f70bdf3c7cda64c5d606
BLAKE2b-256 088d62b7e96d98bbbcd1ce5ec038f44b288ae0fca0f520e37b8bd2e39348a74c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e6aea3becc3797bfba8879f76f1630dd56c5ff6558d98247731d1595784197ab
MD5 e02e30f57f0b7416d780caa2351bfe01
BLAKE2b-256 8b9d84bd9568a3dd455321046fe7dbbbf8136bdb29fe51fde245f14f782913be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.643-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.643-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53659c31703ff60f81bad7499f1be15ed8feb02187149f2eaaced88dd0dd2df6
MD5 455fd4802b3bfbd885cb807768e9e887
BLAKE2b-256 a49d78861056a522ce891d666acc435453236e85e81d2649323f16f570ac6805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75c02122ba075cb3e7393f4217df06844ea4fa26fd2b62b1630949bd6bda3335
MD5 fd8dd52cc43d88506533067377c4cc86
BLAKE2b-256 e9d740d050b8a90587c0716ca845dc424e9bab28d9276caef48fa2390c5353f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3169367922888e48b95515f8e9771aae82b99f4ebdd1e9ea9a001e1aaf6f9252
MD5 cb94bbd462de14634a813088c9e3b03e
BLAKE2b-256 b37f58588a544223f5cce0801327a6e67abb79f62bab6dab7302b7d04b9fd04f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 29a4a8e43929865f6f8547461976151b6637dd011d0c8deece82fd2ff19d7153
MD5 ec7101f442877789c78f589aa3887647
BLAKE2b-256 c7f3e5f7b8025d07b47db0070558998a8432a6806ef4de3ba0d5ff464cf362a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.643-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.643-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f13c30eca91ed0d21820944291461ba3ccb2d2769982c0be63da762ad557153e
MD5 40f378a03d21b072e379cc77b1bbbe6e
BLAKE2b-256 a22b601c0a488a82abc11e59110490b96a96eded3de488ff98d8da752834449c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22c4a2dc9911dc3bd08e6a7423a353b62fd4f1f6e7f3178d3eb9253746e7430d
MD5 1711bfea4b418107cb7690999517b2da
BLAKE2b-256 5b4db1f9ce46529d067e1d3ed854d30a31ecfa16c717a2b850886fdd531d62c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e73cc0e3dd5d5fba818d98800b66af98f6e210d9288e1f282a7db9524be57220
MD5 9a9a9ed143705147fd50483371cd484e
BLAKE2b-256 54e51924becd99c605bd4900f3fc7b526b1b9d8f1f2864cfd9fb3b8e7d0077ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.643-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.643-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d9212184db0d75930628d3c08af63baec1d3c12ea3cefa435bb7a0179fc17e40
MD5 2f55ed9ec0f54f45bdca21cef05d770c
BLAKE2b-256 8d4e602de1c0fba734b51855d4148f593d1e282a2fb152df3327208b7b07d40c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.643-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.643-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85733cc56ae5f4979c30fe3985c6bc129abc4a7a722c1ef873ae662fb07f9ef9
MD5 cc40997d62a75f3a44ed83d91ec4f2b1
BLAKE2b-256 df00e2a15f9b0e372fb0b1cd9ee7bcfb933dd0d4da2423ff45bf1be04530cd92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.643-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a569d155b7907d67df4ab23e654adb48a1cbaf0f9f08aac3ca78cda0a7916588
MD5 f849ceaee1cf521efc2abad37c6a5365
BLAKE2b-256 240999ec096d42dbbdc7992e6b9095b937059a2e4d24b82d82f4d15e894ffe7f

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