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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.756-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.756-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.756-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7404bd716d88b2068834de8974b4b5950f3807510294377547ab00066f67ad1c
MD5 86422f2b2ad6288fb31d6cc1d1f93205
BLAKE2b-256 fa7c86bb2a79298ab06a58731872d5cbe83e9f958889ff33db1937a2ecc1e647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 198d1a81f44a51ec985837fb0cc8d68b21e25f04c0a8244a1c87353a8f3f8a43
MD5 f2f8d281ee27457940e653cec4fc50cc
BLAKE2b-256 04932ff8d906b0358621e6c430c41c0a789f28f4b61d804c68177e4aff276415

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.756-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.756-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 379623906da58f63e45ba0b8c36bb14d7f55e450829c0748beed9f36d30c183b
MD5 bf279417322973e167a959e548b4768e
BLAKE2b-256 782e211f1097f56737227bca64c5466806ed80be912945aa5afcc7ca847f4e26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e6eade05a2b160d6d09233379ecd38ae1e538b1b9c4a76bc90828e0e3601ac0
MD5 49e59017fd16d916ee1046fbd0611b2c
BLAKE2b-256 6382b6b8d13aac08cd185ad51fefdd3d4f275f3d27914f0da385d21f83a541c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 489c1436cc2275af6dd720fc01d6a022bc36a188c78291c7a76e06189de877c3
MD5 2d957ed9bcdeb7fe7e80ab2109d90b04
BLAKE2b-256 9976f32c37f3b60d3e7dd1dac9537aeab1701a67bbf2da13396fcf840325f69c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c496fde8b79d8052b6725b6cb2f43497adf16ddd226e6504796915ecb5a0f5d7
MD5 a29b5c4dbc9b6281013cdf2062f65396
BLAKE2b-256 921cf68f33923808ff0bdaab2f4337d28494f159d131b676239cbdf7b2085d1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.756-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.756-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c855fc39fcdf2a0032720bf6ebcab9ea0253862e0cb393323208495c23c7e01c
MD5 74acee66211727c231fea75c0916fdf5
BLAKE2b-256 410056b07bb92cd9acad7af4696452674b549c6206f6216a8a690a8636ca0687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e01bf2eff583eca6193122957e949530b167fd0e80aff0bfbcad695fa20bafd
MD5 ff6703a0ac3cf0e0c00a6889664db5ea
BLAKE2b-256 6acf06b81d4442aefb2c67060d34fbb93283b6f7c93ccadf09ee12bc349f9aa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a7fd80e75c9438ee1ef7400e794d1ad41be76f977d676b289491c4b38671181a
MD5 2b163101e4368b3b35745f7797f51fa8
BLAKE2b-256 170d49913000fbf18ca282c34ee0d63621ccb70a00251bcc083a149d6de9fadf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 11184aca4e25cded970665d6883b77f35423b0428404822072a1b00fcc31069a
MD5 5c92284792f070772f24beeeec202ef7
BLAKE2b-256 797e441ea969edfce7bb63815a670f96ca73923f0ea58b2a22e1b23afc7f4d80

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.756-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.756-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae79bbadd6f6abe31dc9f54c980bf71a501eb65b2164f2e3ce400fab41194678
MD5 4bb63ceddbb2354b6e509ba72d83d339
BLAKE2b-256 4e813bc3fc7415bcfee815c5af079f9bbbf1cb10acc3128b7cdcdeae2cc901a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7919faf4d7926666ee421d682c496ff7d3c2cf71277013ff7cab41b35e3fe55a
MD5 3fb6d96e2478f61458464588ad535104
BLAKE2b-256 e26d6b2882437e9dfd3818be9e1460116da3307d3fb16665bb1770177dcc3b7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 88fa453f4c0b4728b6d7475c9ae81b28844f2a191ba8dbe8a0b0b04c713e345a
MD5 47f81c5694f4716673413899a9593f01
BLAKE2b-256 dfb91131969e106ae675bf20ce14b8b7347cb74ed64cf37a850aa6e6d0159083

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e0382bc418f3783a15c4d295aecd02465ebc18788b4d3a9b9b1950d4278fd18e
MD5 144a30d535fdbbe6b2bdcd97091d0a72
BLAKE2b-256 42254d588ac25a3804dd2fbaddbb4c934e0c89cd79dd721351cede8b30ff556d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.756-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.756-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a6b0d6c73d049d3d7bc0a1cc6f384fab0cc94c1f180b4a28fc4974f7c2aa92f
MD5 1312cdc9a668551fae8fcecd1291f4aa
BLAKE2b-256 03571695755366841c876e4432b66e11526133cfa9a7d8b4bcfb2bc81a541541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf10e13906a321d279a63cd34547192bf9038ae348328989a7583605a05e5dae
MD5 b1b46073b557d16a17fdaa2a73c841a6
BLAKE2b-256 e299e01e74d49d1d0b53846c2b3c75ae444554228144bb8ada24202dea365368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3f85a63f11c7f1b2ea3b1b4c35e900da7219482e98a248632ab7be0f82a5010b
MD5 8d9ff8189971dffd424a350b38142603
BLAKE2b-256 dc53626179242c349c81b30e51d82161afe267ee5a0b6c2f4d595c621be6172e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.756-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.756-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3a9b5240d27d1f37389f637fef1388872667134bb40fae878ff1e77e2748a007
MD5 728700dd3e4b931bfd9c8afc90004ded
BLAKE2b-256 b5c75eb9eaf9bcf61ec30e87e306fbdd5f6d91caf40142f4aaa9da79afd0af45

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.756-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.756-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ada7dd68b86f40622c36f430dcfef2eb7f452ddb7ed9cd01cfb2c71ab8f2239f
MD5 bb3f5512a546a9654fd47b53abd6b312
BLAKE2b-256 654aac86d8f33c8cbe69208d8e5564d0f3e8cf063774d166e836ec8c5564a942

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.756-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e63a5193d1b3c3f1831b76117643f068573153166f76d91459753f9490aa3d21
MD5 aeae0e55f4d0bde9e67210aa6151aea3
BLAKE2b-256 35b2835711f9c8d72eb7f370a0e4301a7b1e4b5b48d600fb21cf4aff1e79adf6

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