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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.830-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.830-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.830-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 726faf6d76ed5a1ce5a24713dbd05c52bab667ac37fec672bd65999bce292569
MD5 2f757412e18a9561706f9b6987eb01d9
BLAKE2b-256 3f1cd74c2d165d36405c5a87cfe9cd828ba8a41725b7f5cf020f37acf0bab8d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5690859e17c4eb82e82ce3510cad6cadd7c868e9ec98b2d0c1c62e42731544d0
MD5 a490bb4ac2c45af89c00596330b38b75
BLAKE2b-256 93588abc98a364a645d5c4dd54d509d6af7c8b3c48328ad6f1efdcc1bea1efa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.830-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.830-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8860031a52d456f342fefc34cb62405c8eadf36e923f10c31d820bfe9ca223e7
MD5 b3590d7ace31c4e80e51ab3b9c677864
BLAKE2b-256 6cfbc936d5d5a4265a866900df862ad03a30334c1aebd1d02a31d4ab5480722d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8423e4844ab788964c9804bf6b5f2d35d37354b2551ac5870bbafcc1b515714b
MD5 f21146efb12051d39e087e72b3119a90
BLAKE2b-256 24099d0aac732b67c99ef749ebfb0bb0685f04286cb01c4dcb758ab5476d5880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c55168463e2579077141e3117482cb6006e08896e6a1cd5d0405eb2884ab7862
MD5 eb77322e2a8d91e1886c208b43127fac
BLAKE2b-256 5a43c9ea956af805c91b33a2c3e9a426d67b38bd4bc0e423632b9806ce3aacf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ad11254c875b2e36917c2257d585f6ca1416f4254c52bb450f4c94bb83f19813
MD5 315ed86d18b6ed9f1f6f08ef8e4b1d12
BLAKE2b-256 8096f407d7cfbd97476044e0f2292c407dbc00f19850991506043aac5cc16d01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.830-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.830-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8d9a9d82c7fd7e7b598a977ec6840349b880feea5d9d9e4a3696c3c3107ffa8a
MD5 a2a008e10bd86f63577523b4d11a1de7
BLAKE2b-256 1bcf75bbdc78af7274bd0f0d4b4f760782fe6d9c81fcde1febcfd3e050b730ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd7d3a1944c23fb808d2215e296cc7ffc71f285a3c1ab05fb40a29bffe2c0e09
MD5 7822e06819474661c4cc6120d6315c27
BLAKE2b-256 de929c82b7c7eb68ce4ffe42a9f3253de4499fbae949ed2b7ac09a7ed9a873f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5714c3b0e6af31245484d1962e4b1b19385826c8f7274a3cc7888031beb8f716
MD5 4b1a913c6f657123079bb5fcc6e679d5
BLAKE2b-256 83d1cc1462b4110ab5f4665c4cf3cc25dc79375586454422bf77925d0cd9dc38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6b22fc09e4ca396bb0dc6022f04179e720a37dc079459e4a50c8db125fa0c51c
MD5 1753e4f1a6480d8da8373a3ba9ba05be
BLAKE2b-256 ffa6324afac068ad114eb1dd1553d51f6eaace3d1fc6f67faf4cf5a31359fb60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.830-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.830-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff7f43ffee15a6d5850e6cc3ea84e8a671fd495a96d81958afb9f7ef28235ded
MD5 c58821ee723db0ca358a9bf951a28203
BLAKE2b-256 fc18067463f354d4a3cc331614c06869e60d96ea7afef23965d47b3f6f01c057

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30cf3f23edf5810baaf487596b56736fdb90eab45342a26d4429fec0878b95e7
MD5 eaa17f4be6d99b3d5faf596188e6476b
BLAKE2b-256 b9c1a4e47731fc73d5483a2b93f2bf2351de82223551f00c642e9c155292e24b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 51d820ea5f3cb6503d65fe09aa37759ea29241c78d848a97f05bf1bc533dd077
MD5 16e6762e17bbbc7933f34332a5d69cb4
BLAKE2b-256 ff4d151a68271523fa268ecb6b23680717eb6629c0017c1abbaccd39a1a848b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 deb41f3ffe8165018f2271f0f2e61c42d2342ca97f37b60568a57fb1d64dee0b
MD5 1b139d32caa833ba9ca28f54a558c43c
BLAKE2b-256 45d30accac11510bd396bafac5f1c25ec128a4e70bc0530a92564071cba388ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.830-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.830-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31932f976136b64cc824a857a4080cde00084c160f68f7c9ec35708087903d3c
MD5 64541fae0617d5760d062ad5b0770599
BLAKE2b-256 a5921cfaa88f8aacd43727157550e50e05b3bce0e3f60d5c05bdbda30c255da9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29f3f6a2a5d73914c97452b79889ef548be15253b757c0678c78423d14dbe206
MD5 91202ccde2116ba9fefba11e48b9a32b
BLAKE2b-256 78784d83dce3ede3865dd2d91cffde593016009d4c2de7d17dcfd038c268bdf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f7eac08859509f1df5c2bd37b513f42b094ee0d556277c4a3780f77422f9dbbb
MD5 834d25d1e2550526457217c329ad168b
BLAKE2b-256 d37e820a64ef706708cfe6df40ba7f25dcfce50bce18e839907c9f2acd9e2c92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.830-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.830-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 22d3a8eb8c49616697cd968ea66f4fead0bcd7d0403bf062fdd09432ef91b718
MD5 cc3f43df77d66ad0e1d1bf081c7babbe
BLAKE2b-256 05881e50c8756d99535c1dbcd871680a2829af8db8869c7d6fd6ca4d279c90ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.830-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.830-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22c088d692b3092306a6af04e3cc1efd1f835043b8cf830775941b49543a6e51
MD5 aba44e61c5ecbccbd098fb4e7a5c8ee2
BLAKE2b-256 ce15ff9391af9f3bbefec0609d6f716b2cc59998dffcadf23d55a385271f87d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.830-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd4d1635e792dd65d3df8061c394a3f0a02a36e28bebea997c22e5380ea9d108
MD5 78056ab79df867a900151a874261a4fa
BLAKE2b-256 9fbeda7e79a83593bc50405b81d86fe784786753846407f82f7ff49215b0a558

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