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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.596-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.596-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.596-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.596-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.596-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 401f1d9dac10179f298978eaf0bb73787b25c23b316229680ef5618b7edded27
MD5 8b35278afce7b198fe77f98523d35845
BLAKE2b-256 ac2d6f43744dcade7e6cf1559b69fe6c5ef69d351935782b57ef2fb27a35d17a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-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.596-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 992277d8fecae0f0bed5611eab173750ba7d53baac07d89592493fb2854fca65
MD5 9e5c155a78088692c30188241d7c4307
BLAKE2b-256 2bd706c5f50bbba538e6f5c3becd3912df78da2cd59bef59ae87a57b83741723

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.596-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.596-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60157fd13a86e196dd3ba72f9f8bde318d94ab9b9b5b453f62dcb3dbc19ce61e
MD5 18df9a20cdb91386089571246b9d455a
BLAKE2b-256 3879375a2165d5c2469eaa74c543d6b47d1f7aaf2c5634b8b6e9220f37a44c74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6930591fbf47c3d53f3553ca033dbeff15ecc98a02879a064ab44dc1bd3df4f9
MD5 e94c3cc2084df69fc6171d25bdbb6da9
BLAKE2b-256 b620612ab08e2d4a745f64aeae48e60b6c7b4c6469d14a37012d32b90da68076

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9dd2fb65af362119c725aa86f104200b30f5a1ab4040efbcdfc8007a9bd81d77
MD5 90b26904b19c2991e4822c52d179720d
BLAKE2b-256 59ad87994dcfb03f2a2eef7e10dbfced69fba0ba52948bff84f2e526feaebe61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-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.596-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d3b968232a946da8a41c1c4662f38c2ea7134f27f3d254979c6ec41ce65423d6
MD5 beb7b6484c6878a7f88d2fb1a057005c
BLAKE2b-256 a42f968bcb4459576dee6a5f8cc09765a3fec8af6ffcc8b85efb7fcdd5c1e898

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.596-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.596-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e534943f089782031cf7b3b1fb34a0381f0d3a4252a44d5ae4dc2389a7bebe61
MD5 4b7a06f6ccabc23ad0c32ccddd14e2c0
BLAKE2b-256 25acc180a78de0b2b646935871d4c42986b62be5adfc4f89ab7fea8a3599e19f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45d3a79938409aaf7c4688145619c561a1eec0ec5b803b455f93d1406a85a3e4
MD5 ffaf2ecdb83aaa446bd97953e2439096
BLAKE2b-256 de0f9e632e4677966905464b3f4a2072e5fb44f22d880a8595c51ae082319d1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f46a4d62c066fd686ecc84bf4ffd67d47b749e01747fffa16e0ae27045af124f
MD5 d6afc2878e80913ca087f804fc658e10
BLAKE2b-256 c8887c8399b2223ad45925e963240fa330a7512bee7a5f05c746b5b6ac52a137

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.596-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aebcdf43bc3b54d6c8b6859c19244ecb81f3441e2ffbe59c74f5af2d43abd325
MD5 c0ebe80bb4a01d3c22c5faf6f01a06b5
BLAKE2b-256 7ac13600fc40957a3fcaac3d5904c6ca9e3d6afecc6ad84a750c1c47ff029190

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.596-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.596-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4583c09793a123cee9e6286bf3e0ef41a474cb1a133b96ba0da5001eee2dfa98
MD5 0b084698826e9325191657eaf007799d
BLAKE2b-256 93c9d7a69c117353800c840eb5e493949ddcc296e3e0530399cd7feb5411737e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84d7731c03af873909f9fe419903c651024c6fcc515f74b9ae9e7b926c8eaa2f
MD5 6bdf76905a584dab66734e219fc2b4f1
BLAKE2b-256 f9b29556f2728149a5cbabc7f4b25736b51c064fefab3630d1b365451b70755e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-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.596-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9d489eac17c25020f0584d309b53a3498935fd8df40d4b01ea822885f0983cd0
MD5 ee31c855e681d4fc5bdd64c1405f609a
BLAKE2b-256 ecf2c0ef51d849338d088810d7a6b502941bda42865cfe5435b7a6303222884d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.596-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1fa2ae0ee0c25b480d86340516c6b1aa31e87cf2549858b2bd7254930894fafa
MD5 b43a4842698fd0c0ab574e125df295e8
BLAKE2b-256 0d9ee684c80d7e6c56bed6e6900c3e70af45dc1347ee30c3b053914dc328fb88

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.596-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.596-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7bbf60f6d72f7379677933e4a3bd5fe17ea137bd26cfc2e5653dc0f3e727a6b
MD5 67097c0e7d6b5d7d0b50c59cbf44231a
BLAKE2b-256 0340d6b3f258698d0f50cc584edc584a2df7a7e3a5697a7e6236f7b8eb1ff719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bf1c280c63a94fa1ca0b5d4b43af63743151c063fccafffb0798e429bfab162
MD5 a856f40f65ffb0d29c578ceff1420c46
BLAKE2b-256 4e034f95034c2a9bf0d0c5fe9110fcd6e03df9dfa303677c59463595de3fb0df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-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.596-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 389a65f26e00c42ca9d81b6d9cca00ceed84668adc4a7cfa97812dfcf527c013
MD5 0bd05cc2ded8d5028f0cebec8cab9e5f
BLAKE2b-256 b7862b29fc2635d31d3605764528cf305bf92429cbdea5e001c11b1d72da740b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.596-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.596-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 250059c9f2368d8548b2e7863090389e1f288783eb00d07e21d411574b6850d1
MD5 31113b9c6f508106ee49a05c91a8f4c4
BLAKE2b-256 2e1b1a447961b0761cadb5cc7f02df868309ab501ce73a38c0430755e43b0074

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.596-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.596-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef67daf9dfcd5f60afb997371e022c64ca25bfea2a1a0d81ce93abd5846f6789
MD5 931502ddb857e610e5c5be5b6269a0f9
BLAKE2b-256 75a84f6a24c1d4fda4ad3a8307fb16cf3fc9b7dd458b629d1f976e9f0ae0990f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.596-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 550fa58920c618e4985806c9c563515e06898c188c7cd391f5c41c7302349d72
MD5 4188662d9d9e2ad50cc5f0ff39acc4dc
BLAKE2b-256 41a1dd77c7ce45131e57aa4524de9fc79305c4e0966ed81e9a5e240c46016337

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