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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.337-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.337-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.337-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b46efcd3e550391c75961ce0aef3ac224941aa15428376264e6a28af6ce649e3
MD5 f3c1039f2ca7a4d4c58e1b0608d5881f
BLAKE2b-256 420ccea6f79191ea56dbe92987fa2a335de6689892aa4b4de79e7411a2e49e42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9855b9d554b67702702e703c56a1b356ce0a498b92c0e27612616d330c485d00
MD5 5225d9b326d9eb618adf46e07b6d77b1
BLAKE2b-256 651c58111fdde86c6a93380658f3b1640f5ff65edf402258b3b6ee4874be1261

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.337-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.337-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18378eb0c11d1feef911d1c156ca00f5831dfabbd8ca2e21205e617b6004a768
MD5 590a82dd1502ceea4fd3aae9f8991036
BLAKE2b-256 6472150c7c390afb25836c3a601aff55808b183dd1864394f3990e9153145aa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e46d5c047d449a889d5c4fcc6d0eea966c43ae801829e049f4647735c89b529f
MD5 bf805968a73984e8df3db3ea71a562df
BLAKE2b-256 10342c6309c22f9ed3372aed2b833ba8cf2e71d27f22805f339f901a38bc688b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 34b6763a8e0a8e2ffdf8a78178d9ae586d04a68636a86ca4813f23ff7689ec2e
MD5 3fe55c6df7e8ff2302f4376b8bd10f9d
BLAKE2b-256 d1d9e5c08e0b05fcf0c26970701bf30a50d75d65992ab3c309eb899ed22ed105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 36d5b13a41741d0c4174e62bda6fc9434cf42b3690ccd9f2b192cc14303b4a31
MD5 93b20deb6f1a6ceaf41945a1364812b4
BLAKE2b-256 d5a185deae5ac93d1e27c9b448c12292565023b5df28b62a9b97a70243b93d99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.337-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.337-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3d24dac16dff93e5994767fcc64e2313e372f02c2237c157c8682f3c790990e
MD5 2373384117a0929c7ca10783612eefd0
BLAKE2b-256 f4f9a249d4d6dd2131b2e7c5ed0627783e7b3805bfac622e450f6fbe252f5ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d0e8df5bb82ea6167e6a41c95c222f91b79e04bb62d63489a7f06036490aaea
MD5 50c43a9f36e1705d1c76153e0a14539d
BLAKE2b-256 bab921c42395aee9b31432359bd769e3f5c70c8d43f620742b97a68f839a67e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 85427b12a764eeb9adfef5bb2234fc46590b96f746a16c6c5545d29227523fd4
MD5 5d5513ee403420485cbf7fd03b8307f8
BLAKE2b-256 382f72d3a42a72f4463be0dd81fd23dc8bf1cb1cbf3c918f8b0a60ceb6faaede

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4ce390199d5139fb3aed9aac4fc5b0d1189fa6a5d10b2452ef741f9dd262453a
MD5 9c9a1fa29719e6da048a6fde9bca891f
BLAKE2b-256 9ac87a44d6b39d10bcdc5b9fa7d066c242a77ad9e20b38450b7cd99b2875fd63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.337-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.337-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c8a0b003a7f01d8d355ae14dd3fd9197bb59a0ec18e57522b869312785f11db
MD5 15c8a3a1a92609d687a514d74b741477
BLAKE2b-256 e87af7a680c72f203debf21d6384f1905ba75ec0ff4d9b495827c4ad49a6b4f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec444f9540de83ec9f8ec0d701a4cfbb470c4588e14c2574c8659f5a2a0f422b
MD5 e1ed95221cfcfb69f64266b8fa0c8853
BLAKE2b-256 64d3a02464358a733d023a383aef4f67dc57a64c4dade4406a8987d534b7fe5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9c67987b2bb51aa914bc8296c5b9408a1dc5e5de4674b954bb6e19d2c2d582e0
MD5 5ecc2f8ce1b1e9c49bc8a84bcfb8c6e1
BLAKE2b-256 b0d5e703355f831a3c4b99bed9ae6f4db9430ff0b96e234394598881b928b691

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6cf7a2e986779c3ed26d8a4808890e603b2183b57a42ad07bf763beb77e4f13
MD5 3cb60f13852b6205c9296e533c1b9844
BLAKE2b-256 2aff9b4bb2700d7ec7861cf76aa67de89c8c11c8e0ad6ee81a5a3b8741c34a94

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.337-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.337-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b57f0eef9f23d1025f33d83d3b5784d0736b6df894a25feb8d16b987e5499a8
MD5 27e13152cf80fdd618e9474909868ec3
BLAKE2b-256 336df656cdac72b597e3580b7a4453143d22d9e13dcc286793f126c9b83b23e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2af355578172a3eded8c7d11823315276be2c8acffc1baf6f3cb7e9647c5682f
MD5 b2d37371246495904a1f3c56910ad4a6
BLAKE2b-256 b896dd5a99e54185e5302bc3e3aea85b1a030a306adcd6137266823be4732bb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9a2421f7d294b0d8be26c7a649ed11246627cf2f72fc62a5997ace16a54bb1af
MD5 0d9164adb62285ef7ed0c4369182390a
BLAKE2b-256 e9d7ea299e77476f38d0722735388a8b2cc23cca49d07ea0e2b996726c24b1df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.337-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.337-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c4934a2410ab35d4b0728ddc1fa3a0acbe7c6e20072fd6ace8c7b5fd10e1aa4f
MD5 a5bab850661a993f6ac049a558f06e30
BLAKE2b-256 adb305940d9c208d16a56fe2d639f6205e38c4a77d48e28ba19dab1e17326f8e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.337-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.337-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99a9172c3839bdaa8b1b365d60618ba19a818c65262d1821971fad7f47f031ca
MD5 dcd7c7c121659db2d91624bc3b1d849d
BLAKE2b-256 b332aba35c8e6d6857a88d625afe7b85b3c1c77a9bf615136d90ff9d3850c504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.337-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89286966d476b0e875c747b1946ad0770a28840c30997d09cbe9c3f13eb4d7b8
MD5 02e4e418bcfca98e2b8b3975d24f6be1
BLAKE2b-256 ce64c641dead45561f87abaece51b36dc57b7a5ccd3520526109677a88985b71

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