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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.787-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.787-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.787-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 517caf5d2b8eaac82b2dc9cc932feabc1d6c77072f55346ae50357201a33809a
MD5 8b9d9cbe5902f99470f2347b95fbda05
BLAKE2b-256 604b180ff572d3dddc8015711c26c3b3f0b70213bc052afd4720cd32d1da79dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 28db8547441c18c9d8aa5197c586675f9956264026264f49e9230622fa57d90b
MD5 4fbea96985e9eb23b168321e28f2aa53
BLAKE2b-256 ffeb5f831a8091297d4bcf45a2abf8004d412432f13cb21dc4585de1e1b958c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.787-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.787-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e33de02bf83d43c8359081d455690d19d4d25c40abf9337d59b6b0aa3b6f5cc
MD5 cf91346a56224e8411409b14148b7e16
BLAKE2b-256 1da9b836c0110785fded602ef6fa099dd154d167e6128182fa015b0d505841e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0768162a044e3191a2fe3a8c7e0d5f6a28305f2a656056f1b06021f191ffd36b
MD5 0c81ec540183cd6bc45a5e99b7b4ebf0
BLAKE2b-256 920bdadeba80dc3fbd546c3cf5ec6007a45e97cdbf2b4d1391f5d02a1b5f6ed3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 799731784bd3ecc3680b9be318b8a12b6611d8b957ef61d5a37030cbddd14102
MD5 bfe01f29270a2712d87aa450da42a921
BLAKE2b-256 a70eafe8e6a2d6ed140af40fbadbcb6d251d6da007bd215e7c392fb4916e18ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f93093625fafbf612ef0552a1186f0a06c50e93c27735326ace76732fa66bff3
MD5 1d22856f1d055ac90811f8b2f1e364d0
BLAKE2b-256 171a5f6ed29fbe2ccecec4a31b581d5ce28f645b36edc6a571911a44914b916c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.787-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.787-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd81e0546aa08423da32cdf92e455dd12bf3fc2cd79ba480049d28bcad10022f
MD5 c5e3aca19e08af3de2fc4928307216d3
BLAKE2b-256 873ff2f2fb7edb2adc58b87144e741fb29594144e57f42bbecf80d6336d47fd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8667d7830fff75a5375a4a6690ca0b8c4f4a5c4cc64f11bb15823d22e80b5e7a
MD5 5cb94faf70235b0e14971f11d29ce4e4
BLAKE2b-256 aeb6d00f359bc9be1572cbf60c57fd7f0bb3fb04fb35d4cdd31b791bb6c3d7ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 22c9e12a4d16204dc3c992d0685c1b8796df91dff580b010f3a82cb984c71f4b
MD5 336f606a9ec17cf1afcf927691dd3c43
BLAKE2b-256 acbf03309712e5f5a287ca8a3a915535a21495e71cf4eff8b344ccebd8f8dac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e63fdaa28bd62917b44ef1d195bf470818dd8e1e5baf92e3e3489c49293ea56c
MD5 97eac8ecc51b16e5fe9e6d80d8635403
BLAKE2b-256 79c455c3938190b0099a980a6e5ae23a6048fe0e2a4306c3bde25982640214ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.787-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.787-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa8f0de6b0a5bc017d08f90cd744a1d0dfbf70a6b8ac2738998be03cc4202a6f
MD5 aafc9a2101a203278f1e6b7e2689bdf2
BLAKE2b-256 ca71f9fd73551f02d094bdcc6fa3a05fbc2ccded4e72763b8c66c7d5879c4e37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e5e45ea1d5a3c62e4e71583bcf82e2d50d2f6c24ec74bd2eacda7d30b697d37
MD5 70464e5fbf5e2d8824da8b297e636ffa
BLAKE2b-256 8f83b036a763f11112177ecf613b5ce5eecdbda04a3a8e43a6484fcbe000fe8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9bd26aed533a74cd4d8369ef33e1de3a46681b9e742dc63596758baef682cd28
MD5 c4b66b9c1c8bd77645811dcaf5ed3c8a
BLAKE2b-256 92d82df2ad73561e61205d0b77c8e1b66855a135bd901e7b9fc0cd07e8ce40be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7b640891203f87fd2ff51e1fc83ee9be00a2bf99e38e4a4b977da8566cb2db78
MD5 a390190c9eaef1a7242d9f2f9df224d1
BLAKE2b-256 55d0ea6e502311815605df8ffc81c0359d40e4b97101224abb39d653c1e09902

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.787-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.787-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ba924b21ac9839858924c1622177b5588fe504e46c80fcbae39d25c37bff9fb
MD5 95cab7a61a9ad3be3db6f66898625078
BLAKE2b-256 96885a102eb80435dfefab0e070958239ea4adf7410b431623c6dd466b3df0b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90f3ce41be507827cf1f589253a1175fef23ec1a99201f231e3f45e51648d903
MD5 b8a6f50d78a9669c6d633880c5680dbd
BLAKE2b-256 7d0b797c22d25b001e5c43796112a845a2b3757cf4e386c016ac3941fbf53a66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5aeba14e112915414f4df780efe3d0778be82aea96155ad5799e4e49fb6e589a
MD5 65b0256e95e7ce07be0d31e693cc98d6
BLAKE2b-256 e258a2453589400724e9de42735a29ba49cd4725f3787367ed1d0fc34107b30d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.787-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.787-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e08c34202c45c98db27007b70ce41cef020d427a59887b45f1f2a3d0c2f0210c
MD5 3f66d82d3329fe65dd8f9c9d4fcc1388
BLAKE2b-256 f46497a15135b5c949f1782edaba9c973ffc64a34251aa4cec18193e52706ad5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.787-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.787-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6cee468cadd2a66b0e149ed5339128f87d9491f1f20391d2698f26dccd5bb272
MD5 79fd5ff7da1820a46969c68bf73deb14
BLAKE2b-256 727923f37d08414eaaa2821db015cd65aec328ab4936a0c1858587bbe24b7c39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.787-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9333a6cc730197ed994fd67e5d7048627c96dd98e2aa3f640a2ade906506a542
MD5 e3155345cf60797ed0ae3de2c30f6f29
BLAKE2b-256 eb29863b3c34fb732baf09738a497540201d12fe29671fc5d0a4e1a3bfb8c9b1

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