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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.35-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.35-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

File metadata

  • Download URL: simple_equ-1.3.35-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 897d6951e168eec1bf03c73f5b9a0a8689c421f63cd3041371cef7e682e9814d
MD5 1630bf530c3cb44efae2b24497662ae2
BLAKE2b-256 28e4bb1e0e8e17094459dc8e584fca9b3540acc6c98779f700268c7f64337574

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8dd7f9cfaebfaeff3f031a017e7f94fb758bedadc3217af806fe0a646a333889
MD5 ec75efa0aeb182ed0d5c15c8a711b416
BLAKE2b-256 936f0adcc7898abf9ec7f4f45f1ea6d48e75a2a1048d75b36485631b69d79cf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.35-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.35-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 185d137250a3ae547b2fa2a96c691539bb5fe5982f28cf9e3f0ece00c7ad9b92
MD5 d636840efca35f306e943dd279c75e6b
BLAKE2b-256 71dfa6cbcd0861281cd8b824beed274161b783774bf5b850e16f87a0153e914d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.35-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a3f4014feae3e60e467e5ad4a4c9ebb6f7e63f2e0dd34ab352dfe7374f17dbf
MD5 553ff261454aa4b2a7af040f5084aa19
BLAKE2b-256 d1e79be11860fe40475448f2c928c825504c44a0be5378c1d771e88e878c2bd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.35-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9d0bc70a94951a64089726353ebd04ca31844126f0b301f80332bbb80d2b24e3
MD5 88d308aef3c855fb4ec6e8b718a06c98
BLAKE2b-256 04ccb664b5bdc6f6c2c39395449b4a77ee247e9a77f9511283c76ccd00277eea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a7bcdb8d51091b62b7418a25cc4c21e5b272f3a0aff2e36fc680733761686de
MD5 80104ac42830b029f215c16146740465
BLAKE2b-256 20c8aa429ce9d81c06794b0c7d13579b54f5f62f3e2417940905eb40d5da93ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.35-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.35-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c94be87bf0e68cc3ef13dda17de6ff52827b99e3e5460431c4416acb9f03207a
MD5 c04c52d8b256d0694f4cc54665a0c408
BLAKE2b-256 e8be9258f0d0e4b2bfe89fa68bf635cdd137f4de51ce604179b242e014768737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.35-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5804aa283f46ec23f378d06b8c2be07fb108acc0c7d0b4d7fc930ff4df43aac1
MD5 597b035c236ccdfadd72c86e0f953979
BLAKE2b-256 5f4ad11d6604ee5a5ad21607294f902a43fa1e22f6a643110cd2120985c4a278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.35-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0cacef85a814e762c312043c623cf9656e79b4b9613b24083cb3196df20b8b61
MD5 48b37446d4dbc17f958b3e557232f16c
BLAKE2b-256 fc10729f2f65dbdfb63288b78691b95efd60a0c3b399be5ff563f83317392da9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cbe50ffa43883c4d1524fbf8410454acc174339438dbd3bc3d898a684b844132
MD5 371db59c601bd219c2ef7e45f54b59f6
BLAKE2b-256 7cedddd88fcc06518a55b6ee9f2ed4013e88e36c49e27a61bd8c55963883919d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.35-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.35-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6b5c137fa41c6b9f3f37353606edfee461619ce055fbc06cab1ded9ef85b67c
MD5 d6c84d7aa03c3c9c49f24bec2b765946
BLAKE2b-256 b1222b864f4c396f85bd5355c6e4d1f1b02091f21efb8a52268a8652bb1c0377

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.35-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aac28e9d93e1696553f40af7a6634675412a520c8e596df5d06c44e960b3ba26
MD5 03500b168475e132ebe05bea9d244142
BLAKE2b-256 7942f153c7633b12760849211c56e50c6c4539e66e601505cfbe325b564fd8f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0f4b04156c5006268bc171753e7f94623731ad133d24bb09f1e17775a47ff9c6
MD5 3904db263b6123826216db0ddb9b43e5
BLAKE2b-256 506b835f5753b66f69266d91252dc42e2995050991cc994a3f4d6446544d3444

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 15701b0163daa4bd2c8d999b686f2337d1efc225380c9e02cae301d1c074f927
MD5 88d36d4a0668d416930f4bb10720476e
BLAKE2b-256 1c7492aac1262b8f972e2145764a198528070e634da4f0d814f1e864a7e01e39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.35-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.35-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aaeaf23abcd0dcd4f13a2e567e5b3e02eb4b78b97e5f57409ac5906a00cfaf57
MD5 b7a154da2d2f11e8b18bf814b7071697
BLAKE2b-256 6ef71b1a286f72664db54924261b78ca4593ca8a95584fe15840d2a3c0d5ebf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.35-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 351fd45dd491c8f76062415b4c43d8e6cfa55c4651d5ba09be6946b72736c7d9
MD5 05a53cc078254519e4d71309c36c212b
BLAKE2b-256 781bd3cc98565e623ba44a4d302ce0d71cd723a7ded5d43406c4f39cd81e074a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 56a7d531a98eaea17c8b927f76bc56268c77b5d8a748c06357e63c26afd9948d
MD5 a5c09d8adcb7a90f22b99e41be91865e
BLAKE2b-256 8c9b8395521707b9596340d3fc096937bdf97890c062f65c15d861282bf6fae5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.35-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.35-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 726d858cc5ed2b94ce879ed5971285a631b7e8e18b8bd2e26400cd79437f29cb
MD5 eb7be9da321b0a3deabf33cce9abaa9a
BLAKE2b-256 7d0522b23d9715f40cff0e4c7111a9362f05c3bacba98bcf23dedc4fa3c1fdbc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.35-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.35-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db6df2fecbb88605510b511b87adea06662e7aed719abde11036846fa9b70add
MD5 3f93edcba3e45897a1d94a43c1437c2e
BLAKE2b-256 26fbb37c4c9eca67c1be653115020498f5677d4ad4a53043dc17e57bdfce7959

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.35-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53eb341c97ba0cedf22821953efc51422a2425e68d4a049b0be1f7c883e26774
MD5 8dacd1ab6af803ea3b813806a1a8c909
BLAKE2b-256 e29a8544a2443fdc277fe896a0f452ed2955995c9002028ff932637d03989dcd

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