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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 97a7fda5179a1d2dc4e709ceb3439030486089c90a4b8d243a2a883f23a60b20
MD5 608692c972d1ed31e3778fb83c8b3f7d
BLAKE2b-256 34b8f45d29c1e488b86d5b8c1b88f1a096df90f68049dab785d3b949579df7b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c6e9b61d5b141e1eab4ef44c6279388f167e287b3c1f9dd64a66c4bc60672f99
MD5 dc30cc0f7f1d9ad90c4fcc1bf24acddc
BLAKE2b-256 468c1ab8e5967eaf3a840ce01ea7e430d98167d05ca0cf36abf03c12349d9d71

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.322-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.322-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e679a1c54e92748fb02aeb38eedb8b488f82fd484a58449d569eb1151f9c071f
MD5 d6292ffac29b77db8b7bad6086ab215b
BLAKE2b-256 5bcaae6eab3a3f109e02916842fa4b6848479fd76dbf63d6fb15113f42bef422

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7fd82ac139d43b2d142792ee88dc7bfae6b7505a1e58e9a584e89b4eb01a0d47
MD5 3a0e6b96c5274dcd1f47efd68c0a44c2
BLAKE2b-256 c01b8c41c7ab9f80badf5649d7b65ce1a8d82fc990aa71bb9db9f4f1b2a97010

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9c2b4f466c961e0605f9906856c518630f9b10614fa7804105468469b9456a5b
MD5 6c430d80335e06b13a80d626043a55b4
BLAKE2b-256 808316e1d587bab5d02055e4072851bd501b3ca83da403f5aa56edbe62c365f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 37ff501ed6c93816e758328a8f0d3339a0ff3af248c7dff537dbd3dd551ecf26
MD5 01c6074da7bd2bf4064908acee8298a8
BLAKE2b-256 968a5a6bd49288610c7ec21c03b0ff62db57915fd1e3be09f99bcb6be7b36a92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.322-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.322-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e49f6013ba4d6e0bad792c872dd884853959922ac5577c98844000e5e005941e
MD5 1d18072f63fbbd27ea899dd49ed44c24
BLAKE2b-256 1a3f11449620271aad21cb85d7de19f132c6ba7fb95ee299fa2957885584bd41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2bd0e153d6efc05bb9040f77f83e8ba4a53d2b3cd415880f09c6522de762802
MD5 88f1f16463212cd8efca529a4974176b
BLAKE2b-256 9fc694d7cb441dc4836c36ee0ec5834639451deb0b15f35ed1c83b045cf7d754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0e431572286b17595c62877f50ddd5296ea4ef820af4916751d88ab89ec95b3
MD5 3d78eadf827106a66ed34bffaaa50189
BLAKE2b-256 9f4a0265ecbec7c294cb0b60e09375c60f67cd7b16884c450d38d275b983b56e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9757729f2db52eb49d00dd05e3f35cce4e752846d03bcdf9a3f7256724dd18ba
MD5 032f4f685e745c26affb63f80f34015b
BLAKE2b-256 7267aac6fa791669cb97969be3122ed0176155f11bd6f1e6d7f8d8aeb1a52194

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.322-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.322-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35d6ef62ad5c450ea8582de2afcfe33582d2a2160f7e9ebb3e7fe487edd828b2
MD5 1659d804fdde1804c23e40fa12dd9dc3
BLAKE2b-256 619c6e6bf1fa1f98ef0dde3a2c0b08fee740b39ce12e0598d571d72d86050544

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45bf2d9c36057721fc2e36e301090dfae72fc2245770aab11f42efd85f90ad35
MD5 2ef1446c84bb54826e1a7d11a81c0232
BLAKE2b-256 8e20f8fbddfd255767601a8ba2c52886eed495560d8d48c15039959d4a9d2851

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6234057656a5466ba3ecdc6c722214c73057b037978c6396cd5a3277fa928b26
MD5 a42acdb5de794d4c9b9e6df4373a2146
BLAKE2b-256 f1a0ad6660a1ef0bfd6e86661f778229f43dff50a908ed7ef47badc6f0a916b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7db750cc6de1140ca67141ebd4e8a8bac632a677dbcede6efb48ee066b686210
MD5 95e203ee05fd794a2c74d7bcbbddde18
BLAKE2b-256 6b0749d10e239ad424859ea4a766f2ae70fbcc6b546bc06f656738bcdff4f270

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.322-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.322-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 278bdd5a5dd71da5df78cd933531c4900d9cac7a1b4fbaf99f9144c1eeb5a650
MD5 a2e663fe4f9d93e55ed23426898c07e1
BLAKE2b-256 012449a0014174f0fef19649bc8cf73043b486434da2b391b2ac02328a4d5f59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0895790725ea33a17d612afb1666183b78c8528e5053b88fe9854cdd45e0e4b
MD5 dc8ecd9cd5f9180b4f1c5f9a0b094183
BLAKE2b-256 e50469615297bed0e9e8315573bb0268eb5d49560cebbe281ca731309715fc23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 abba7b9874b661062fd7dea284a73c5f74ef21bafbb7f82f019e5a40b4ef2d32
MD5 933a1a7dcc349289f105f8439ba8fe3a
BLAKE2b-256 7d4b89af32448ef55d6d8a036de94a41a0da0d8ea8defadd2dbb64b2e443c247

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.322-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.322-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cae5a2b2d32fa4893c37a2d6c4644cc3410be38822b79e422698c22164e98bae
MD5 61cfb8f7597644410271d7710e3126ed
BLAKE2b-256 a8b4a190485a4aabdcf94ab14dbb927970e16a20fff6ce469826bf360832d7fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.322-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.322-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48738336baebd4793020400a6648483f89be5aceddbca8def18b0d8cd8d79290
MD5 30abe4e2780761e5a92660bdde6a2991
BLAKE2b-256 65a02bc6de85e725ca26f311c1bce9c1596638731681244f16ea4bf1cfe01f91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.322-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2dc56356a2f57c55cc61f3b8082ad8557acd13687060ac2b8f29b5a137e45e9
MD5 bd015f310d1aad2464ccbecb88f8725f
BLAKE2b-256 7fc10f95884603d6397f449f4ee8cbe43e275cd4226c801c80d509caebc0984c

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