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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.658-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.658-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.658-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c28955af8423ff7dd3e15ac94f787687e7d3fb58b5f49c352fdee00749901c85
MD5 e833f3535dfaf56d516c1bbc5b3bfaa4
BLAKE2b-256 6a0874824ec2001bafb16b7c28386c2d76ebdbde08a0b6ea9ef7950660938048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85c1ef2d6b1f4f88aba84ca9b477ca2a1f4783c13f33c68d761a6bf785d47a06
MD5 7af95da6cfa36ca159ac7f7ef1ffabe3
BLAKE2b-256 3f7928fce5ba58ba88d345b6feb5f78bf7260022a4f7886df4827f2d6410cb55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.658-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.658-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d1d39f85ee0b19b7c9799acd137e27f589694bfa3d333036d3986854c750c08d
MD5 1b7c55a32c3831a6efef61dc5c81478f
BLAKE2b-256 bd63e820cb8cd75e11bedf1ff907dc02cdb2f067f866ddfe67e112410fa38de7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c7d4e39cb63c3c4eaa3f2ed19ded3abd6083926f5be7da86308f93bae074982
MD5 eabe48bd8760414c2d7dddd1e4851740
BLAKE2b-256 163850eaced723f249578e78b0fa5b05026cd32d88a54453ae2c97998e983422

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66ca3d9f3a2fb3219c85e6795b64b9e33d1d3de21df352368ec088f10c746611
MD5 7296f83ed9c115891444e420b83d114d
BLAKE2b-256 0b1cdc1614e75b8763cebc7a2e42ada14161e6a3eab8374735aefeaee322354f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 02277e2a73a73527d4aedd9aba65439af80e0fbf1ff0e438acace890ca9085c3
MD5 44ddaf91f1b2b3894a5609c63ffa7df0
BLAKE2b-256 1d2d30b29a2f4a5e6c9856bf540f457669ac4991ebf17ef9eb1d47dedf0205db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.658-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.658-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fda2ee156296f556ec424767ec27d25579b69534552c05d9715034d9514830fc
MD5 64cfb0b10ac0f3ab1f8b8ad897a20799
BLAKE2b-256 d5f74b3d60726be103e25fccb8080df4b0dc35aa08d5b10e950c7470b58efad2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8afd3719daa7d40bc6cfd5ab1772565f331dfef2a199c04d8b8761d2c3667f15
MD5 d86117b983b20759d86c26222ca374d0
BLAKE2b-256 04347d591a6a62c14e77cbfd5ccda9603081ae58c8fe7e9104e2ef58711ffb35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7e9551e9ce5335ec8f90523ec3c5f26930b2a026078fc37b6e1eb85fb39a2a18
MD5 b516a90511d3280fb699ee8eaf352fc1
BLAKE2b-256 4fadac7069603f70afab81894a5dac8191c968ba32766456a8f91cd4d5b8b030

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0221a1d926e88c3992ec30ae6186e9f5ce15249e6b4e2bc9983a525966c55e0e
MD5 eb744df761f508ab11897cb587513085
BLAKE2b-256 8e3b4306e3e98c771b83b997a2b58db79543cb5f720996fbe46c44c4d37f032d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.658-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.658-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a27edaff75405c67f0f5f2f5c62505cc247ae993831b466c2cf0672702eef50d
MD5 89aae700675ad5ab40881f649b695cad
BLAKE2b-256 3eb57b9247207dfd5764609d29edb97f528abbb4515806f65a44c8eeb49d18e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e144f01372365537a7d4f90a7571d406192c63554007164271ec010ad1353558
MD5 82d0385c7bdcb95715b8bba873644501
BLAKE2b-256 bc225b7a33c877750db1696c29d9dd97bfd53e3c48b6a5114e548d1b299735b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a7544e925baf9abc2dc703156f18440de3867f50c1679c2f06b4cb8ed275f26c
MD5 40930b92390aa96f4e28627e3729e3cd
BLAKE2b-256 4784ce1ce99f2f25b8cc3b3c31520fd52eff96edb3d1af500aa438b671a2612e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ce8c02f4b6528717e42db063adc30d50e508e3bdb3f386baf1de0e6d8f07b7da
MD5 bc7976cafc5e4a663a6cf7aba0e19ecc
BLAKE2b-256 f0682df5ff0b9bebadcbd5a44696e9e0c2dab7c8b112c6565796080db86455dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.658-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.658-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77487fb550981854844940e13fc25c30821743bdeb98a0e7899b048a6b8599fe
MD5 f3112f5e0e7f6af49d0a1f50a6b15864
BLAKE2b-256 73c3cea25b4a6848ea623e923bcc054ba21f7c426703a44499aaf707b7408873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28708057b55821635daf8bea220bdfe654998cc4b2e53c253822fa3b8dd21228
MD5 80f504214b79066394c69fb219fcc9f0
BLAKE2b-256 0c1127c224529b0acffe30f04ea2b9a34c82cdae0afa0815a92da61d8fa05333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 795435aadc0b6bac773250c06f2cf3369c35c6c4e19ecf232daaf95442040e9a
MD5 92d88cd70c13972b295bb950237c94b0
BLAKE2b-256 bfcac0cac12846eab411dbf7d9f362b31e6ac87c1e31d795d5713949c98f9c1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.658-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.658-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5bb9660cb3287393b2916c77e68004e8d916183257cdcc378e5c06d5adbeb205
MD5 0f499db9bd9f0252544fac78f7b2295e
BLAKE2b-256 f1afceaf3a849c4345668ffca7fa11f2a675d6a7660ae106acd3146550ecd956

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.658-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.658-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32807575ec2e921eae681960a1ef5b3fc8dd282acb244411b540b88f6b184ec1
MD5 d0de48791fdcf579044a3eddd2fb196b
BLAKE2b-256 b34b40d7aff54e1ca56637627109d75b1ab7b771084e4d35e51013d4cdb9b369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.658-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69646aa9030c617cfd5b2b1e3107f7ea662299471ece4193124b7ae0e06c4c20
MD5 d540538919032acd9d574f3090a7314b
BLAKE2b-256 bec469a3ab9c7f425f623e630fe80c12c977326fb2361d2e741ec61a2be61046

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