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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.181-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.181-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.181-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7af837ad1f48c8dd80f9d9367e15776feedb531d0f423d7b1e89320b5ef8cc96
MD5 04e4b38be063e7054d2802536a6eb7b2
BLAKE2b-256 512f53e1b1da25b72905e348b8a87001cf6f6a2092885cd25b73a1d06876a397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3adcba950b3d03d8c64f8d27c010b5025966431714a565473648e7d8df87fdc2
MD5 28d1d20404ee063ae01a7762b27f97d1
BLAKE2b-256 6e058d484ab0486c9e2d0a0db457b1ec736554a46d936721b262ef3439ae4b79

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.181-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.181-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3d91567f14ce16b1a831eb676d530d993cde8299c5a50a476580a54c4e6b916
MD5 08f989e560b959312dd272ca9036fe78
BLAKE2b-256 be8254c90008b85e4988fc547aa7c08243098395cb15a4a3e7cf7d84e0ab118a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5610cfe5fcabf8a2b309ca4af6074d274ab2317bb0f2d0dba427ecb0928f08a4
MD5 d0ccca53bcc29a40c90fe912742a8089
BLAKE2b-256 02f2100f5a6aefe88be363d3047f8e9db106eeca5e79ff5acd3219072af10efb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf0e2e6c8fe8aa74a9ec8cfbfcc30e3e94429c1c08d92d08e3e20089087a8d66
MD5 75e3b00a7661bc3d2d28c72564b0c551
BLAKE2b-256 66ec1fff93f6898758ab06e85645b1dc0d28d8974953ee8f7ed644be13dc1891

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2d1646d08c95ae8f6105c5d1998e3ef76e5cf121aac9bbf29a203c09f5a4c16d
MD5 7b87657daee92bd54db19cefdb26290a
BLAKE2b-256 0be97a6e88485277b0b095a78e14baadc1d3867db6394db86a69e22e20d047fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.181-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.181-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df3a9042369de5f30fc42a446cd8b5b0e785bcfee4fdec3ac562a02bb9011433
MD5 01a347aabc4f839ac5e4247d03ac241b
BLAKE2b-256 bf2c2451eae7eeacc83d2eec2894b6b3bd73edc361bbeaebab895b43c657fe6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c889b90e3ae6096942f81a1d5472bc5cc3feb02da2aed44f4a875f2257c52d23
MD5 45232330418beb3616c0f110b8b84bc8
BLAKE2b-256 4bb26c76c27118decb68296af5ef4190ad6442263fd91e4af8ea98d71591823e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ac5dfec1f7757c0a6d3eea0f8894fc66666a32325eacc0957581e94bf4ec34da
MD5 78c9223e64f0f5930ade72b4926bbada
BLAKE2b-256 c4a79938778f1929c5e2d3f72a66996b24da23af2c58e2259ea3d1d7f300a6d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bc798223bba2385cebae3ef6316cfd1b1dc65901e4d903892d28639ee542d98c
MD5 31ef4c06fb077cd28bfc30c82199d6f7
BLAKE2b-256 1346704fcb239dbb1eef46c57be49b5a63598a1041bb22d69f25aec8a6cf3409

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.181-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.181-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2da0e0de32657c3c99584eb33f6b47a89a72462084bb5afaa3a0658f06fa8d71
MD5 b03700c538a43372d9f2bde097ed2cd9
BLAKE2b-256 399e9a3f97ac3c43bbab579161b28c073edda82122c85e18e7da7833aa56e935

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38040818074b553a3aa4de4cf8587328bf48b1c77530fe5b1c30c3407df419d7
MD5 dfcf4e3af515531f1bbba5feb2b48ee0
BLAKE2b-256 48554598255acd711f4954382087bedc10221ae10620dfb77ac2bbc42004bae3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea370f1f17673198d59ac7ccda0650d9c536558f0671308f809584e07c5096af
MD5 91de81c08e2cf2add42ac3ed8007e833
BLAKE2b-256 0fcc0973efe50ac30ef1c0fa2d4e45d2d9b4efcc50c2367c4843fa2dca6fe37c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8192ab8ea3c4923799adf825ef115de484982fe79159aab708db91dad323e623
MD5 0ad12324326abea5d92af9bb3ea20a36
BLAKE2b-256 3346f6fcf26c854c9cf8b2fd001bdec9af351f24cef36343934286cb9bda7e82

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.181-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.181-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fab6bf9635179daac43b47cab81e29baf2e309afab7ab2355c5b172572811803
MD5 610120257f202fdb5c97d86db95fdbb2
BLAKE2b-256 1f1e07c406b7e847a4f13d8d806664b775f975270045f70f03b148510f225971

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e4a2085a5f2df8b8abe1298db615b1915798dfe46d72ef27d4ae8dd6c3e70af
MD5 50e43768dd1b96c98587799cf0f2d321
BLAKE2b-256 5043049c01d3b4189669e47f86f469b724837d56f63a0cef101522acd75c3297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3cafffcc02f330e6b5f229c218b17c450664e1ce068b52bb5c9e72dd11ba526b
MD5 f948d9b2d6b26ec8d21c237cfa1f8579
BLAKE2b-256 c39c8ae64eb8cdef399b8678701eabac42dd611e6dca1509e540e5ccb8511d61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.181-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.181-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1ce69d23683e050a639fe2d6accf807ee9263cd516b2f5bac4dc283603f47f1e
MD5 74573f1bae1ddb4800c3912654ad57be
BLAKE2b-256 9e1437f312d1abc1a3f4f197eaa0819f67ecddcc8989c8d2b9a3dfeef666f85f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.181-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.181-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33cf8649822d22e65a541f03c06730f45df84e7d0ddde9f7e0da8d7592a6a880
MD5 ed0ad629b5f50bce0332f63ed45f8f11
BLAKE2b-256 e4b4fcb3d4c0c8ca5c2f994ed5e952d875e3b1b7d8f6d6ca96d6e59c07b8a26c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.181-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ade7d0a1e9f2f19d67f05c2cd66a2220d36f5be406fcdf9de4e8664758fba4d5
MD5 fae2a310b321056a6ddec079f6f90497
BLAKE2b-256 b423a8556ad776a3ff8035ddc33dcdf1bee0972bbe81a7b656ee93b8e24ba205

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