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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.296-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.296-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.296-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 420b36ae8d82c508b432fdcd23f44b953595753f24b8e8972a187fbf4703ff6e
MD5 5b4439ad5e21d8de84c8b39ea232ba51
BLAKE2b-256 92f94ae2ddface1c582162bfb95e800c3b0edf87eeb8b8d8b6ac33a475c306ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 800a0a4c8581d0a65c13c7afb743d1b8ea8e290410e2dcbe80516d2220a3f7a8
MD5 5d59faa48229ad27ec3d1638b237a8af
BLAKE2b-256 a731e9858a16d195d50e93a10cb7e827a9f2d27fa49622b89940e98eae72eab1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.296-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.296-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3feb22a5a60f043be2e4bfddb9625db6a84461fe1dd2430dc272e378892a4540
MD5 08f75b996a78379c43de1c6925a2309d
BLAKE2b-256 aedb97d2be4aa6b1fee3890618a77696e898c6bfd53039111cd1c714456fa807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57b097d9acf5b00a1fb2677d8ff21fd0f978b146fa3c8c3aa3827c6e1d940d15
MD5 dc7afd3c699f5b6a4179e2ccf0cd9466
BLAKE2b-256 debe901c7bd5d7ce11726df5c49bb4cba71d64f15862e42bf27a8be1d49967fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 764187b14db9b0e00a0b5e0ccd5645dbf5bbcf5c8f459ab75b385c8469fae6cd
MD5 8e67c3acb6283ed07250c8429fe92bd5
BLAKE2b-256 e1c9d77bdde39b2fb8a74dd04b7f6e7a9b98c6d5f93901c49f3c255674cca9a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0ca3080ed641a3b7c648f506debc1ffb5980222c4a243cacd5f17319748a9584
MD5 6bb66366fb2c06f4a99b1b278f749c1c
BLAKE2b-256 9fdd98a6cdf238d4cd038ce4d377ddc10acc3ea4e218b13add8b998d59392967

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.296-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.296-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb79f00b5021e8be4eeb283e1d14cd7024120a1d30e10e84c878f6edc337a2bc
MD5 2ee253733f7204b2a2bf3cc5949fa8ce
BLAKE2b-256 2311b78c88356480e352c4edf50a27b4402db4491827b5aaaf7e5f1b7d376f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 136ff52a783fec6542c6e399f0aa4548d841761389612a68db32f4d79614752a
MD5 3d8c2a57c3a4b673b751a69ba232c4a1
BLAKE2b-256 29c05d189bd2a85357112340a584d07c96aed950420179bf13451f4d3270133a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e17dd0cfe46d570d3ec7f90d8c1c480d9bf588c70e760f7115bf1e0a1252173f
MD5 ae2a63d831bba93d4b61d5fdc4555595
BLAKE2b-256 c45728cf815cc89e4063703cf1b498b00953e376b83286c319fcf0230d7ccca3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3404140f32a95455e27a7167c959fb4cc1fd8000a933c6bbb7d96618f41a9895
MD5 50552ebb4ec2b22c853fda0d19c4658a
BLAKE2b-256 f40af67230dd00427e691cf61ca63b8f223f7656684117cb0cfcbc0753364932

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.296-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.296-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0163b9f29e0ea708031fefa34d0e8b52b13109d8dcf3668aedcc8d1bbb617eaf
MD5 7785115ff223caad5449c95c4b9b8206
BLAKE2b-256 4fc3f549a5c11eddcec894a3356289d8e1a084be690e42df60ddbad51aa5fd10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09d0d4cbca28158fd6260859dca5f473e32945f035f0035106cd1d4ba930a39a
MD5 186c33362ed96db9e699b37f7aaaf07e
BLAKE2b-256 a320bad679aa8e270660a146d6e0ef2fad700e69d776a2fa2516a2d3b9382835

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 acd6ea6b3b60c6b527bb4a24cb4886161246a0c1409c6bc6b836c86d0f758d20
MD5 8047879148419d7af21782dee294ad56
BLAKE2b-256 e5ab249d99a9117f7b1929f928b7018b5ca5bf4543fe45a12a49495c087232e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 82a900fbdcc5b8308961c19ce0c239e09c5ea9a4bd229420f99fac97cb2f5015
MD5 c07b0dcde84d06f348b0cf8688d9a91b
BLAKE2b-256 ac9b27a00ddd38566b2fb41c9ac9d7da601a6dc7eac0094ba9d9f45ac7d144cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.296-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.296-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1afb0804356446f2695b7e314394cf7eb035970ab2e7bb45291dffacd5c55ee3
MD5 27a8db9162ecc47b4f30793c08e51b73
BLAKE2b-256 8f2134b28b10aa03ac8af1d13b2cf258adca8bbad8ea1811ecd4ba721a6f0c1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4af4b03a5293efd5b7ffa512c909a0980c5a8dd9470b853c59b0dc2d2178d70
MD5 ef3c042820d3fb4bb377aa34612523ed
BLAKE2b-256 36d52636eca50c4b2b1da45d9e904d4c5fb557634af24c8e9023688120d24004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a66fff8df16c3d23a19215bd3424c332f5d1981db8ed842397dce89d1119c8c2
MD5 6f8841365ff1b37944f35497b8063bb8
BLAKE2b-256 a963a6e5fc1aae86346bb6fedc9dabea64c2c39d3ad2df3b289a927c0004028f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.296-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.296-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f1e4682708275f4dd131ef30056b7dca4110c7b93e19134d2745c79de4942909
MD5 a1c8ed8ee636a2b2f791a19c9fc6efc7
BLAKE2b-256 a4f6b55976152adaeaa79f5f9a43646d1436232c8cc2ba494789653f3ac02bac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.296-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.296-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76d2a04ada3af501568b490dcdab6c0acfcc50e2f7aedd773023792a49d7532d
MD5 e7d9f54c2726ed59687ac5710536b642
BLAKE2b-256 7070f351fffc022ce38854ed255eb3bf079a76f4ef0e6f3e2be56d250fb5a18b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.296-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 637039e29899bc20d76536f18d7d2165a73730154e913c420a8ffa6db55d4950
MD5 1e5e5fba5d717aea74e9ed965ab189f8
BLAKE2b-256 6e4f50fdfcac8e18d657d3c0d93b2d131b43af948b1e88b2d34e2f519280ffff

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