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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6e52c163bdb8e57b79cb1d268e26494dd7c534ff6d859092729228ea016fc103
MD5 af2e3d5fecc279b824777ef59789da6d
BLAKE2b-256 c8b61afd282e3e4ffd98d26240ed01514b9975b62d8fd5981b8a6ac15498b168

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0ed4783d297e94fe98b950f8183d8b96298a8e6785629ce47623f0012458bb6d
MD5 750e0dbafac0f92ec66e5b0a4bf00e57
BLAKE2b-256 d50043059a8c47b7928b0b8b68bbb0337c32316e6659aeafdd772ac97bbaa87f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.293-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.293-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 caa79399886d68aefe907f516141ff7dc5f071da940b9b7e30282921555858e6
MD5 761801b97f12d5581b3c4d6da030d442
BLAKE2b-256 b8b429bbea050d06b87d1fdb172690be505c715ea5cac501b9caddb7dd178626

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1daf7fd972e907419c00a595e01aac7b1b419edd1458d42ca567db14b668f7c
MD5 412936e3b164d3c0ee6bd4374a713bb3
BLAKE2b-256 183cf819735aa9638e483475afc9257fb6a943317fde5a3af9ce399ec180574f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2c0d962163a317e8ed2a4118c9b27bdabe6d84f471bf780ba1e3a07cef531ad8
MD5 c64c434a566c3e1e41a0d2d506a9567e
BLAKE2b-256 c8e579d64eb7c1d6272c0787b807289f2f31a43467406a83d7c77a42038515bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5b64aadfd6ac22f7773aae3940ee67d67416796692bfcde5ed955288045c3e86
MD5 24643b767799d44a36d92c5e24d36daa
BLAKE2b-256 ab0afafc48330f574385e4e7c56b32b2a715d78a607ca96232fbe93d5422239f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.293-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.293-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f093960e6badab5d73e7607e4a7c528a103ed32f1396455ee918ee662d07ac52
MD5 9ce5c995ce8fdec3be8a8ce63e5f3e82
BLAKE2b-256 4ca9dd45e2e66086d9be3446483f56156264ba9bfc4033902f65441dabd6e701

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 922eee1e7dae3135eef2adbe5be4bf9d44d87225a0347b79efcfba6e94368ef5
MD5 3f1e40516649ad358b82d76acc9b7a41
BLAKE2b-256 58d52027068571b13d67297ccd5ae6ae58529af2910b7b4a90c14da924657b62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 989ea3db4f7c64c25a0fc7c5f053bcadaeacfe62258b20cb8a13e23c69718526
MD5 369688f30c859f30655aea57a3f067d9
BLAKE2b-256 c57b8bf8c0d191410ad3d11a02584bd7a61bed8d16d9d1a2cc75b6b593701ed9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 52c17a42c17790cd358821893a0c14829a4ea22f36ea7ee67e9a4c5826ec9566
MD5 e9ec1eb333d1e5107d516d222d39db5b
BLAKE2b-256 5ab8a66793e1fa33fef8daf4dae50cb9f2d31e542807aa5f87d5cf723209e5b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.293-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.293-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31ef973bdfe327dae57e6d7c51f65c9a23e664d4e656eecb302aeabae4516581
MD5 8ae72105e694b9aee6fcc2a445fa65ea
BLAKE2b-256 2a5c4718d0724a42552a5041d46c9df90161fa893517cb608990ff32774b792e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cebc7bece0a5510d31087561575252f38ec8285cc3e0490093647b5fc3d3fa8
MD5 d009cad07ba25f7b805b6002071d3ed0
BLAKE2b-256 c6d665563a2b5915263fba576810855c790b0ac6fffca888748600cdcf907090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e7b99d36da40e92ced6c172063b64978a3a7964d7b43b6839f4db9db1da81f8
MD5 8a18c801c79151990f0364e8681a8cff
BLAKE2b-256 6328bfb233244b23098e4c254a6f8332c62daf8eaa5a5641bf58dff9cb2f6d90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ce260d78684ed3325e960643909121edc062577253ffb431321c3209ff49fcf1
MD5 197c260d9ba0b46a0e4bcf83a09d113b
BLAKE2b-256 a5efd03f8ccd0849cd492aae275ba7127c97df6f59511040670e06bff41d6c85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.293-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.293-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f52b0a57d51a7d4c2829f189530010d3fa0c5fa444a5dc3ed2b4b474b8d4754c
MD5 0ac5f53af23134a22e8ab1bfebde3c6d
BLAKE2b-256 13b8ca52bb0c43ffb2778512493412779f4786235b188b119bf4eef9648fedb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 141ff265118ea788b249ddc474cfd5d317f9b3e82772dec167334049180b957f
MD5 fc6b20456db498bcdba2390ef4541997
BLAKE2b-256 f49fe6d74b0fa9ba5d9d86908dbcbc85ad1a5ce46471e5d7340e71a250ee196c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 06150ec3b79bdccaca4134a72b19b583ab40c89f473689f4635f6197b84ed403
MD5 efa64bcff7b954420a8dfc56076f419a
BLAKE2b-256 7ca2ad467b6757e66eaaf974eedde399fe2db37ffd9b39239eba1e8f521587c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.293-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.293-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bc1407736b5d7980cae6dc9b04242b8198785bfe8849a4572f766cf200a87b6e
MD5 e1663c22c11caeaf15c8f3fba403f44b
BLAKE2b-256 1a5b0795c17edabe03706d7ba26d3663802a52c167ad856e544b90748412b4d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.293-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.293-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9b57e37170100c6ee886f1f3b7ba9d0f45a5b4d32b7ff8d5a77837241527c28
MD5 1b6ba9ead57f936fd0c080739d5e632d
BLAKE2b-256 89fa37a0ab204e58fd356ffcdec79285cace43d3f64fc41224a6ef7cb4ab8df5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.293-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05d27d25ca3733acfe64b30bf5c16029117a877d1fc78c9b800bfe259566098c
MD5 ad35cff673b3e40d61298192f4cde289
BLAKE2b-256 39b5eec1d3b056c636114dbb8409c34bac7383b40074a07139ee67dc6318cf04

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