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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.524-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.524-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.524-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 df68412dec5e54f7d58f2f2abfda9b6582eee7768d044fb6a388740fb979c72b
MD5 673dc05b5c79cc9018b23d0dbb89969d
BLAKE2b-256 79db10c7e15c9f5677cfcaadf60edfc4e6e678fbe1c4a6fa82f412c362e801dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e09172ef3d39e0741bf4765642a4cfac73f70c9df1773c8b755e360cda7c278d
MD5 93c1ef021dc15e5b5628c53f2cd5b99e
BLAKE2b-256 5f32e6249b96f3194a338f8a8695ffc06f15107fe315b1858a712a2084544bfe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.524-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.524-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7b949153cb736090bf56c6f1c401579d90494a39063c6e524e645e105684a38
MD5 1e24f37212e7293f15805fbb20cf8ba6
BLAKE2b-256 cc76349c0e8062778dbd6e23f14e1c3cf8941b75048b20a62141e9a08facb35e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c592eb52ad9b6557701c2616c08a6928a9a549f7549a301b5d072ce51887a68f
MD5 c919e288dcbe8e5a8e71d466a17529b4
BLAKE2b-256 675b9bb4335ab045cb921e4d147289483f471afee639fb97f7b69e0424c83b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 44b2a538d4256318fa848867fcf683500b134a2f2eb75ab9a079753044e0ee20
MD5 8ea49e4dfd7c2ece081d764e4f3ae028
BLAKE2b-256 b32a824472be95d64b8c9f5b9980afdc2efdbb683ba7cf0badc68d540a844502

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f8502e1cbd3b25bf1e97fb32aeb75ed87d498df771d8ede5b8f33694b49b3464
MD5 baa151686a6f39eba3ba1ca9047a6f55
BLAKE2b-256 1de5e22b222507010f6b8f80b4af4186547c09b84910c7702c62d01de781df60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.524-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.524-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4e59834cb232cf71e3f3bc7857de007946a4413bac77aeadbb9ac37069be074
MD5 2f8724ec602a8b0057d09da22762a0ae
BLAKE2b-256 64929b7a77f596522e537c3ac6454a4cf99917085d416a35c341016dda93b18c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4176f93c520e4240e3e9d93bf148ded48f410edfab4d25cc45c8e8f0986b1eaf
MD5 bfd30f1a688931c869c2651a43084fdd
BLAKE2b-256 c6f0c7154e8470438980c40f70df5a50497a98361fdb8c6b09ee7030f36d50d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 61463e7c2bccffde23333a6da3e0455c4fc3a9e53669f130d8286d2df0d6a0b8
MD5 5b2a04402b5fe7fbbaef65596c9d4818
BLAKE2b-256 c7e0c0a5e89789e1523606d065cfc205ec75aedc11d080cd25d58ec73c4328be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e788acc9f88e3121427b68b21e12f86052925c92149bcaa52707e8427116bb71
MD5 e206ba90b20a0217a008e72328989574
BLAKE2b-256 da4f7a018d08da392995933670f1253cdd28c0992e07bd24273583fafcf79875

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.524-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.524-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cc4c82d732e72cb53f8171e7a291e66d7798f3682585a0c27d5f9649236623f
MD5 9c7179b427105c60c5b65ed4880253e2
BLAKE2b-256 abd72700d2382a47e0cd8d341a4dd5973bcd9ff9ea978a9fe20d59ae7cdc2e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f83f540cbf5cc6de2761d8d44a9a22049aa404cbcc0dc71d6c4c4cf9cbda3516
MD5 3534d9f1ea292cfe39949e8afe96f9a3
BLAKE2b-256 8fb3effdb93fba15154a0ad86a2c60d4484da006a42a1b1320be168937590864

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 72d80f36e4b9b6b2c6f1172e0b53f2282b66b2c96a920a9b333061fff47d8d3a
MD5 81698fe26fd83a75774a6916f12f99a2
BLAKE2b-256 af9fe3cdfe9db844599489b7c69091835dee8619158e21d451ff1177f1812849

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a0239c5958205f0b8ba2b4f68c1bf48792309b52be42746e79f92335e1f2268c
MD5 87e35a99054f9f50b5c0d3cda85c3303
BLAKE2b-256 c764b330c87ec858a604ce5b4a306140aec222f267dfeb88256bc386777a684b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.524-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.524-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55ec63f94076a0a6c00cb826d5662ce26cd2e11d631afafc5288702aa52e5437
MD5 adb02f0d3e06a7d6ac8f174e8caf48a1
BLAKE2b-256 7281327cd0f7b850f9eb73695064f59a4994dda17f72c84cdbd9a987d617903d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d2aa0a77eac1f1369c6bf6cf6d02ff3c932e43fa42a0a5dcd080a4d2d0c3e52
MD5 8eeb5cd86cac49846cef67dee37b8239
BLAKE2b-256 9085800fb187384184d2474fdcbdc4360d42695a16afe7798acfeefccce01aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7f001d81dd0c3e7305289453129333dadcd596487dc5e93e8dda24cd0f7d9d0b
MD5 e3f89fce3b8299156da59654a83a31e0
BLAKE2b-256 dc9d5d2d40219dd09cb73bcd5bf2c853a07ca0959bcb17255ab87768a5ce3353

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.524-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.524-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bbaf498cb2c8af8117528292d12d7f9fbfecdf8531cbb85e67f9e1a6f1a53608
MD5 7653a239cc1b081bbe9955db928c8d11
BLAKE2b-256 2fb597d153c746fb0f5adc1a4a4101ad666b2fb13f6acd1e66f18ab8b0297f1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.524-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.524-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 788976ed64c01323422359e728496e56bbac5b2b86f7cbfe03b79ca04c6cf71e
MD5 6b27b67279a75ffb5bf9222a7a0f453d
BLAKE2b-256 ab846b4174f764377b0a3801a2985f55a1e5d56ea3bd8718199bd939483f272d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.524-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a719874381ccc5bb6b697f259faee37208149c06597a0c5a67466ce8f7a3ae2
MD5 423ed45c53ad160842eacdf644fe308a
BLAKE2b-256 1a5bfbd30326e7d6c441f479a86db771680981a18f1fc4dac3dc8f8f885d9eb3

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