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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b6e9b4128b03449c81e9a978a8bf7b9038aac1cb2238a3ad82545904a5eaa2a2
MD5 ea5f3913b5fccf52c9cfc9842f73dd35
BLAKE2b-256 89e392b18504cc3fe5f7c3ca2dff87740cd837841478229f28e2606c350f5a2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2a3734a861687ff2d1dd2162db8c0c007d11371eb05685b9b6bb8927d9c90e99
MD5 78a823960837433e17f318fe5818f365
BLAKE2b-256 dbe1de35e75e8aaa0f492d46dd655d1e9275daa7f0f95c959dea0439f714f8e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.532-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.532-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad4efa60f644245be74960db14d03d8a7c8e62721fa575cc1f67936c6b27226e
MD5 4542094b41f7443413151f179e9cfed0
BLAKE2b-256 ae81c612180698e61b6cf702fa15f93578ad120d86bcc6eb346d480a0157923d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7b39bcbbc46ba99bcd643f9a8921df49fbf084086b30e4bf1b5326fad0d48456
MD5 44aef85f1e2d19027e612b3a369d1a39
BLAKE2b-256 1a3a9d59419078f0ed8dcc7b67a59fbbc8df2bbfe5035b6476643a1608e27929

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2693c6734b77361bd7851e341481ecb6856bba02992ceb60b84877044bd700ff
MD5 90626aecdf0f471b667c55f797c60954
BLAKE2b-256 ffdf6ac008845efeb40dc6757deca437c92f3e459eac043bfd9094a46c7d53b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a9e6650cea54be745a6383002086e476f19b829d082d03877b75d7bc8423dcee
MD5 ea6de380efede16c31e4541d2e66d1fc
BLAKE2b-256 94c84a4a1f7176f149d62364b9a2230e1f5fba421c65e237c6409cb375243788

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.532-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.532-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68aad3ba2f538c3376b7eb490c14c9c6fed1cb309c813f5144098015bd0f6ea3
MD5 0c9d962bc560bb1a221e4c5f1ed4b1b9
BLAKE2b-256 fd2260d36f1388aed02601f977f839ee45777b74a9e1880a9b2afa22d2f07c05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fee97cb4cfc02c357c44b1ed76b8780b7f5bbe9777bdd1ccc4d542827a0e6b9
MD5 e106ac95ae4ee688f2ffc262702466b6
BLAKE2b-256 bcaf6f768876df5643fe1ac521c3ece945b4fcac6e07ac14604493f215e5c95d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36990ec80e8700b88f4e79289389747f8024049fab98cf955861857cd88e46af
MD5 4851bc8d2fbe3fec0ef6ea559b4250df
BLAKE2b-256 ae326a44f098f4076ef8c05d0632bd133846e9208bbb363f28b739f7ea929205

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8168ee7edff12f1965109162bf1dd5b2d81e832612bc7e11101ad60be86bdf22
MD5 197c1f29eab7f77f9949a096842f9f7f
BLAKE2b-256 5c071be555adc1dc7b25299f505873b70a84be9d817ee68235f7b0076b71456e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.532-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.532-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 216a61ae93256396ba5e85ad72af2ff51e8213f7fac22a95afe3ae03f695a740
MD5 4e4443ff6906d78fa292158a748ae68e
BLAKE2b-256 b877c5616a3b289c545f263884dcddaeebe40d0ab991e30f1c288a12dbbefd87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4555d9634772647a7bfe96bd5991aae735fbef818f48d4e3c0f0555eb7ec7b3
MD5 9e251f2cc59f6a1fc21b014adea14542
BLAKE2b-256 bb5c4d04683b28baee7ac805dee6f24389f225174f607ffb44257455e5dffe35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 de15f1a5b99068133d7c78cba2490021544d073708653e3606462696128f0d33
MD5 5fbc23739de3eec4f2c49d6c86586947
BLAKE2b-256 6a93e5c69342d08a36b65bbfbddb69eb8bf4a5d15309f1d96619d4a523207852

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 62cd5114b8636435b8dd48ea4699b98d1041ca73844b5e70fb63056bb8f1c42a
MD5 7272b1ad20f05e9ef1a880dcc17fabea
BLAKE2b-256 63230334475d144a1140b51c620c6d530387e893af61bf547ed04b0c2a211c49

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.532-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.532-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05b35eeedcc867987f6ec77657fa33211d9888667180094d40b87f793dc0eded
MD5 d64b8f473a16a19b7b12dbd1d68cbeb6
BLAKE2b-256 10e506c08b27b8ed0e37b80bfa00cb226e3d8b69d44f927aa8dd3d9afef1cf41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 910df65e9d98fa9c290420f6be356f2e9f3b4d75b33aa59e85d315ad8bd1f78a
MD5 28756e78d643370ae6c584d1dd745404
BLAKE2b-256 644e375db80c440b62fd68ff4bc7d79f006f65e34f1c5dbb127fbac13f24ff8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 35b85355d0b008f49390dd690f1518ab05f161ec37681ccaf633fc6d2fc796dd
MD5 e51c6a7f98a5d3bc7af17b275b5b608e
BLAKE2b-256 0b70a3a1fd96f6df725dd3b6cbece466eebf2b4aacb9e88c9a1ff762da7fceb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.532-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.532-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c023b1bfe3c7face8b18d1423d345e926cc168fbc74d259581a6e73c29a0165a
MD5 06796ae82bd423adaaadeefc9420a1d1
BLAKE2b-256 983bb150b549070a0b445ae93bcba385eb0c248e51a9814985b06999aa2cb47c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.532-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.532-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c885424a79b4175138166393e1cc3bf03e5413f1ff901191ca8a4b71544040b2
MD5 cf3e5c9169b1473816222fd8947be392
BLAKE2b-256 32f877cbee4066e9045724f9d8cf08a61cc797c63ca974532c0568b0f2ba4e9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.532-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c00e6a2e82c37137e9d8763d636ecaea45bad30db716338771960fdb518eb45f
MD5 ebdffd50589680897ef38a383258b5dd
BLAKE2b-256 ecd813b49bffbe70f5074aa5882d807f380d911bf0357a80967d2d2d53ad087a

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