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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.745-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.745-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.745-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3b4c1372260246a0cfab8b52fcd9e22e3cb6f2eaf21e1737d10b68932494b369
MD5 1df710f75ec54bdcb187b03ab552bab5
BLAKE2b-256 dabcf68bc96f4fdb66d7b9b3b86298ecfbe12c338d671a7c97c6e2990b16c6b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f64ac09dd2767b11f319e6cafe3329b96a4dea1237d34bc4956d2afd6e206118
MD5 bd970b3eff111357ceee5c67660f41fa
BLAKE2b-256 552b333da5a73ef50b243d745f13de9e2463fb04784e52e139bdf57fe3e5d0d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.745-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.745-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c46d5e7e81186e5d41cbeb022eb63062f1c20be876fcfdfc1609b9d76335f14e
MD5 b4cc45e7aff34650958401fb1a23dfd3
BLAKE2b-256 f6d28ed3f1c7fa5bffcbacc3c96e3016c3ef8783cd4249c5bba637d6f8e348f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff645af05e85507bdde541a61a949b4f90b681d99a5a2272c017b6ce8dbb6a27
MD5 eb61af6f765cb52e3575d105dd8ec2aa
BLAKE2b-256 7f08e1aadf531434e3bd242b74b2b15ebd239a6c5c17a2bbf1ed3edb8a30305f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b4a11d2a071f917392c67ad11626af4ae3a1c20e77a810e13fd8694feac1cfa6
MD5 c041c57e73d2929942a8e5e3cf6893e8
BLAKE2b-256 cf069833b5b4603c96488a25343ccc0b46a6fb8094bcb2c2ca9a50767cc3740f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7cbaaf8cfd1b2bd43ce2b3b6841d592ecd337b5e1fab14860c6efc66fd3398de
MD5 adea83ceab71bbfcd50235bd94c9c563
BLAKE2b-256 5b0249559b6c6abe045417fa9a7bbfb91e2947d583337f2a63fd7ed38b222b04

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.745-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.745-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 38f9a0a92b9162b6942ac3ad002b7c7c9db061af9766dc4ae5a79f202464d41a
MD5 a7eaf8ec22554ba4cf81c5a6a79a5d99
BLAKE2b-256 1122a53134f984e795e6211be069c885dfa2ae5a74107756c4ccdf398e747fbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04dd0308d9a5a8b5adede41ffe1c0326d54348cc05f657822d4d07a02763ecf1
MD5 3ad5cb1f4bbf63eadef279624882ea6d
BLAKE2b-256 8db6623d2f928359a078440329c4b3113a40dcd99f41cd7a7d4ea3ac63981944

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 35f58427a977ca938c68fad9bb4f4a6e591638abcd0e2316a4121ecd0240624a
MD5 f7bfabbd5643e3fadac1d52acc8ea983
BLAKE2b-256 c4bd60dbc350bd10666da836b6178213a5e8850361b0e9df9ed960165399975b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 084cd9ac12b15d7d43ef88ba315fa7bbb94ac597f8bda6bc4b3008f185668df6
MD5 d95d23e57cf37ba5134476a891890184
BLAKE2b-256 f0bf6faa6ddc45fc227548151f5380f0e9ba43fe045a559eed7ed1d7e46e9431

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.745-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.745-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3834f2379943ca25f17b6e8750e14fa7daf317ae4b12917912e2fe22c8d52794
MD5 bfaa875c010a500274dbb1963dda02d5
BLAKE2b-256 0e02d0de78bec57ac9693b3aa97d7b8c2a0df0e2450ad0e08de01c8843f74801

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33e6b96027771f851c0432492dda906c76cd1efe8f4504afdd08e5e933992d4e
MD5 d332acd5738c9628dd663cf049349b46
BLAKE2b-256 3b923a32bbff35d5ba03d29bdddc3b798b7ac582371d45f05283aeda4ebed2e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 48a729196ad4c362d082f86ebb57009aa392c8bac406be5b9e3a082a02ba171e
MD5 6f543cd290fc2627b4408c224858a3a7
BLAKE2b-256 16cb4213ee6822682e7e166237f11277a3ac542a17152c46d834039465e74a03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6bad1d9b17e32be4375ba5433f8e931b94001fa63e355ef5099f02da794648c
MD5 34effddc666c55a4ef1f65cdf88aaf48
BLAKE2b-256 06f830c05994fcfa9bcbaaf6ae4b6a48390b4d7dae0c026d46d181871c45fa07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.745-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.745-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7fd194b59a79fd4774d7874f1010edde0483e0fbe699434537998d824bd5168a
MD5 5d841bbf9fa2c92dc063622e54318a37
BLAKE2b-256 1ce0223294a3f657e34a36988cd8a4455c90f917f99f3e5f5a77e237c7ebcd61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5fac04dffd269eb9a984eaf173a7a5c1547cb707a0031a8205093f1dadb2d1c
MD5 970354438b8eb8ea8d50af135b88325a
BLAKE2b-256 22068ddc09286a388f4847c54b4060f1b48f31d62fe953298fd22e8108d96e2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a187b65577cb9019ab4f65f0a51ccf59ce550c6c548b99c45dd00d9e93bec562
MD5 ab2ac345043fd3f340ea7da1fdc6ef78
BLAKE2b-256 92ac88cc5c2d518ef2d1b7d93b52b3dff38cbabc830ab67206da4ed6db0039d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.745-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.745-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 27b4cae7cbe90c0d497a97c57fd30fec4efaacfcdba1aa495c6c514031d7d4bc
MD5 331d06c9dafff01a9d8f2958e74d7020
BLAKE2b-256 b4ed0ceec86ed96e72b649f0d7300adb13e38d2d95868e1fe72504d5256def4a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.745-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.745-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b2cdd25585d746bed04c104daea36accdd1b7ece1d7d0cecd3c6f1a4de80cf7
MD5 50546cf6340b2497b470b7ec31e71d43
BLAKE2b-256 3a6d227433ac37677a7e133dc6956a6aa8867c1b5df26e231a371576ee71ee28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.745-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffe5d017d4e9423ad7a42c7130b2b6cea1a07aa391ed97bc6e7a4c3d817690c4
MD5 202e2058d66234ba49b860ef61e33cc4
BLAKE2b-256 8716e3fb7ab94f5767c495ecd9bc1a045aaad491f05880a7aa3e165b30cf85cd

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