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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.136-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.136-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.136-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2859c38d437ef34ad70404b5d029c16825a857fc149612a1125e28a25903b5f5
MD5 ac8cd02544e391a08c1de62c0aa88475
BLAKE2b-256 13109ae0bacda4b71ddb18b675a29c5737637219ab4635cebbe0272f9de0c4cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b958a1ffa3c699f9bdd104480c290899006d2cfde1c925de315dd9b6d6f4b429
MD5 6b6eb95a8e421c25b2e2219ca045cf17
BLAKE2b-256 15bcd184e5fe99271f85a351867023c65ccaf0a6b73a5b81aea6e3cf5170da54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.136-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.136-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 435621e2861b0e3b84c282dad958430218a9d292368d14eafd75aeb733f99270
MD5 7ccc054dca792e4e1d3ba0759abb55b1
BLAKE2b-256 67f99d4ee13ebd601dbcffd0413433e9243a55544e453eebd120b7507a4a0c3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6c71ebc1d8c253ceb962bed8e945f798abb54115d9f147ad67e378451d2ee8f
MD5 f7fce1ce4b99d4baf529e40ce30b7890
BLAKE2b-256 cdbd96815dc4cbe8b4125183426e50f8f3752073fb5a7453746da7be24ed2cd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60ebd015f6e6ae44d890054e5eec2dab4e9cacd7afebc83c6d269bfcc9e69857
MD5 82e9fcaab13a9d73079b4029fbb7084f
BLAKE2b-256 ffe565e3bc644bf3cf679598bf92e8686b06713d703284ad7e807d137c3129e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3d5f9e84f708447180eb2c06349cb62d6ee176832485edc00706a90b791e9222
MD5 9a4343ea6e29543bd3adc99f1a87ddf6
BLAKE2b-256 0dabfb187b05bb067742f1fe92073ed7561aaedf08e7bb33026e6269ccada73e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.136-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.136-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baf7e9e1708830c3b5c46637158000756cb18a063b88186a7a7d123b261af161
MD5 55bbba952c89018787fcb248dbf4d4e4
BLAKE2b-256 234a4958019ead2ce4c4c84958c35cc13626af69dd61c775038eaffc68d62137

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9300a68fc4f5d66ba32b6faf171af58c1bc2c007fae4a27d5d165e47dc9f3223
MD5 0b576db9867fc77186535a0480db8b8a
BLAKE2b-256 2e7caad02612b3435867d4a2df04ca97389b79246fac49fd12284e955e33222b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bb90c18c6c178ae3675caa957bac0026c5ef2d00f8a8d6503f8dd2fe398764d6
MD5 d80bd3fe01603473554bd88d06792d6b
BLAKE2b-256 28b17f8ac73fdcb1c43c96052e02a381ccb4091765693a920ccf56ff75ebac77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 981d2185642cfced0e2cc94d06035cea1dc55a38c25ad5e533ad3353fa6eaca5
MD5 ab6b25a0352711039530f14d2d4ce4d1
BLAKE2b-256 f4cc0a8c92a62f937c9d097a16c99bd11040bdd31c79d087a12331c53dc7a91e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.136-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.136-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cfccd9003424ff9f6b6479f0d71db514e665547019b01cde6a554b52b1a84e02
MD5 c5ece807c0646c985444c1edc94e439b
BLAKE2b-256 de787dfd5eac1177adf99e78889ad5887bd668be928a3e38b73c1aee797d8e4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 983fa317c6259d522715410e2c1fba1f635f15caa90fce4b27b37fbd8f93fed5
MD5 9557bd7ed5187f6f6bc7f0065f782f85
BLAKE2b-256 6e7a341b1a857aa26a2c4395dc65c9da53c8844dae323e03465138ad03b5b5cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 140d537a65986d5568991001bde5a97958ec7e643875a4b3bb32e3863520cd9a
MD5 08724777c03074e572b9bee23be50c5b
BLAKE2b-256 d1978c3f9463921f6eeb1674ccaaf357a0c431ea0a905fe0904095b7ed3aea4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b6d47710ccce38fb7a530ac2a7007dada5430aca459dd2ad7d3da82316b5efad
MD5 46a711585f2cf32084337b58b557983e
BLAKE2b-256 d9cc61554169d908f79a10f6a4223cf42b5091629c608249001894e576e0a840

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.136-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.136-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4cd8c44d0dd5f95b8574ffd74822dac50016b3b2243a7743717a73002530f33e
MD5 695cba6155d4d45ec69bc9857856a84a
BLAKE2b-256 029d36f1ba93ba55c0c0cad12ec324965248edc296c3c08682cff176ef949d86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4046893725f793e8b4876a7c1e6a37a61e2b8ed346cbf79f3d5115c49b23eee
MD5 df45a4a92fd06b0550b321f50680b763
BLAKE2b-256 1aefbb5a8fdc4bddf5a83cb17db5829ea5e077a060ac3f91731cd2c98ff95326

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d31cb7b521b20e42cd27a026cec474058a0256e33215fc77bec16baefc700839
MD5 c7fa45d7cff148a450d2410bc23c568e
BLAKE2b-256 2962d03a1a148903363dde8d9412fbc79a47f4d9b1332287384bea9d6fabb798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.136-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.136-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 38f244d71f626f2ba05e8a6fb7d7accb068d56f3cca83ffcc516bec5bb5f7bfc
MD5 a89fc97f1e7b37a3116a945d29782fc2
BLAKE2b-256 0a7c629a2092daf468490a1457b2e3fbaece1f7954f53811669fc9129cf485af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.136-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.136-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 519f7b8719695603f3b295ab962b7f3b8e4766c7aea895654d797a98a34bc398
MD5 975fe4f145a04308e7a876ddb1761f68
BLAKE2b-256 270a5f486fdff68ace6de2568e6ec525d81ee418a8a507602de496d52b38ee82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.136-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dbfbb1a5ea0807e0ba60afe53ecbc7f7b50b126f8c19257d368da09ea7ae7afe
MD5 22ae38d0c74e814a70b352fab32712af
BLAKE2b-256 8ffe7be00a0c0ddc2d1ebc6b2f5e60b63b4b92c24ea83ee54f90017a8f45d584

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