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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.249-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.249-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.249-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 addce56dc1ed74136860d807aa7b8ccc7bc54f2f8be91140bdc9754cff2a3294
MD5 d1098ded1715cee53ddf39853cac2b95
BLAKE2b-256 c603e43009b14f4c31230f1cd1ea8a921b0b7b4c2596f99663de004d48b7e3fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 238265a3fff0f4d189c24603d0d34e072723ddccd8b2a72e9c3ce0c931c7e078
MD5 3d43a9eec3d4fa2808efbbfdec672a6f
BLAKE2b-256 9f3ff322f6c975278947ac02d53655bd326fa370e72c1dbda56b47f72358c5b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.249-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.249-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67ae582ff616167ec9c75638cbbbdbdc8eb3e83cca4c13425136bd43b79af175
MD5 ae90bd94dd181d5d3d9e122af86d43e7
BLAKE2b-256 6f0b0ca9a922516b5e37ca68bcd6b8605352388b14227ae8fab9dccd1641f1f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb3aa493d0739624c00b2281d5edb8fc36c1d21540e44aba0adcf92edb9c375d
MD5 956bdf4b8ed45d97b342cbad86a827cc
BLAKE2b-256 787e57d7f743ca2300bc048298528d11d602636f8760dba49c34857802ff0c5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6418fa2328f7f6b3d490663af675e73b65f5eeb930b829184d77595cb47d6592
MD5 1e62990fd4fcf83c83af2b0c460e7212
BLAKE2b-256 7715847236b728a37b21a8d58a6cab3cf1415e560e509b596297f4c1bd680a11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4f55f00fcff698a123a2e52a11e6c4ceb3a49ec739bbe08d80395de9edb259e8
MD5 36c9297af7fa38444c053725241313f8
BLAKE2b-256 6c4f40a2dc72b6ec28bd57cbe712306775f53b70e5a6403efe57550882f147db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.249-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.249-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8819ee05b7ab0a3d9f736070d0e4565196aa1939b198ab08c84251e2af36e57
MD5 7eca5d27a589bf5cc42be39afda6bf2a
BLAKE2b-256 e4816057f795aade2aa900e00f034a4159c7344ce70d8175acaa5526aa7f77be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d14cf130e523c27149530fd03779c3c43d0790363fea7de435c73d69724edbc
MD5 f8d82d8ce28b975611178797ce3ef646
BLAKE2b-256 1f42cd414fae95fbdc5e243a0999f67e1d8d0ba930c5e49da7a84cb734e9a743

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 959e2118331a707750194bd5622a34197cc721bb61ba64c2393c4f504f78432b
MD5 f3ed27830771d6fd089b311dc813e84f
BLAKE2b-256 f2fac23e0e7b2c3bddea1de680c7c3156b72ca8f056d59c7bb427bc8482b9e4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a1e17505cb9ca40f33d32639313e562f3c448924866162834f136759ef7700c1
MD5 a8a1c795eede09047463840b18031876
BLAKE2b-256 56b2c6a819c16a163c659396971ecb78343ecfb2cdc1886ef26c8762c0e3fb87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.249-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.249-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9350e196c2f4a39827bd3cd7f469224299c279af24eb6094b3b15090ecd9475d
MD5 01335681a56245225887906182c80cae
BLAKE2b-256 8cbaedf60aebbaa1e704ad84a84a9a77bd7f167b00656eed1232ed8226700754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52615c7771ac38574fd110b60c13a285744f6456bb5fe9268b644eb8b8d41f76
MD5 fd26ed5abdcd47147ac8bbf32519c32a
BLAKE2b-256 b8a6783d06e5dbff17b5c561a180ee3e3f7d8828f0860f9e842cbd23af2526d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc04d9e0d838c7af5051a3efa9590eaafe19769b5d0cc1b7556e71abdea3f76b
MD5 d0a6307adb105181f6aabc85779e09b8
BLAKE2b-256 d7af4ecab800d3a42368ed258f7ae17c11242bce49cf8bbd51e71a538dc9631a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cf3a1fc8888c0f81925cdde4ae9d82c87d286b0e9eddf16d92ec8c69cfe61a56
MD5 4127e7617dc441e9e367181dc8588a61
BLAKE2b-256 379dc33625e40634a3a58205c057a78654cc3b05e3a93b0c2784ceabf85a0823

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.249-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.249-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 860a4586033fd1841446cc3f9741c2846fb6eb2769c4e4f5510282a219f70c4c
MD5 848307cc56e7cacf7ac2f0493bfcceb3
BLAKE2b-256 6933e906b3d3c15f51055913fa654f497fe38374102676b63ca43a02b8962710

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a15644f0881a208877d75d05c1e3513a0364e51dd7f1e4acfecad2eafe8820b
MD5 8168d16a47ff7aa3dfff9a84dc327add
BLAKE2b-256 f2e84a2b2fc448359a5a45874923be689d024e776a8924e6c72a0eeda85cb632

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 82a4c1689bb9f5f8ca7f657e846d559d02ba5ae6656dd890b8df57c4e5b939c8
MD5 6204be185e5c30e5db12ebd6211566db
BLAKE2b-256 0b30c76bfefee7341f68ab50b8792b4a8ad4230aff235b7205a4399fd5ac84bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.249-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.249-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f1eaa440a9ba8706fcfd7f8c4db096b847bdb24382377b43170e2b3135ef898f
MD5 a530d441a5068bda8157724c84af3b62
BLAKE2b-256 d8d4010cd12f5bbbc33097eccf1983ae5e2245b52f64df5572464c18d148e6f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.249-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.249-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50bd9ee93559b02fca6ec7d5c76fdf9fc10f18350403cad40168fd32f85bf78a
MD5 5a391b0960f7c37ddeaf9f499dd25ab0
BLAKE2b-256 38289d3a80cf4962b488c9c8a16fee2a5c174779db975594f251e70324bf4948

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.249-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 405a63955f5a821d11178ffc08c623c82144e04253085521854f5760488ab183
MD5 94403c1f4513ce612e0801627e26f6ea
BLAKE2b-256 e58c4a8f73e24f5e3c5b4c827fcbfac7737d8cad92789c27b1991487df801cdb

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