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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.819-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.819-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.819-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ba20b19208529a5f0f3a2fcc49ca860edebaaf0f7c33f739aeca9830944b2abf
MD5 62313feeecaed4bad1e5b4a106f06f2c
BLAKE2b-256 d21637ce27877a2fd7d9f2ec5dccf2b6fc5b576cdc6ba47e61971f31fc5a0dbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b86efa232b7f0f47ffbd379be12fbad9ab88a6118b9c97b126b0541e4ed3bdf6
MD5 a440eee97edac67bb993746aafaaba95
BLAKE2b-256 4aca7d74c889a542cd6a9e5eed099b826cdcd34fee1615d9d509a64a91f94583

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.819-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.819-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12dff1b77976a5bcbddaf53b8ecc41311a96ae8741e3d8bbc206f88300bb4245
MD5 bbcef30f4d149d94e21129c7dff7f79b
BLAKE2b-256 6f563c759ecab0a47ec91e92ed899ece904cca300ad640ede47c450228251f40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b8829ac17094fba7a23b2da77c25a3283c449d32fcd75f01ce4598d4155016c
MD5 059f07c34b47954755f9eaefcecb36e2
BLAKE2b-256 13f8fbd940295dff551c995eff89177212548d8bf49baa7865e30f6870d7b7e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fa07a882a423f2a23f6b36dd0f25e403bffc6915dbdb8a9dd0b783a4237f1621
MD5 0d3c7950c569c55c30b4c670215cd3fb
BLAKE2b-256 2686a1e1dfd41b2cbacc9d8abe64ed3705e06ad06f33b29a9ca7b3e7cd967d4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5cebf64e3305db546a6fca1f9e8e46f94847774457b4601d089d745e8b5f5613
MD5 3cd12a99b8349a76010b6669f944ae62
BLAKE2b-256 8f8cd64a6008043dbbf3d1fe50afcc9effa004424461e46e8f54a6a52991857e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.819-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.819-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c27a63ce65883be09308ab5a4c1aefa309ed6d206f7f304e6e379d9dc9c81853
MD5 6a003871e50970be0b984ffbdde98943
BLAKE2b-256 b7bfc656447b61da8bb9f31611bb063854c1534cfd79b0ca3e8242791ea8364d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d01207194b7b1d3a7827cf8025ec9ed91995f25628bb02f22efa8376873ac3a9
MD5 5c3b342b544bc386fe21b1be5e9efc08
BLAKE2b-256 c49b9be5ebb12a80180bd1023872fa3a7cdd624eaafb1a43fbce4e0b7f7aa8b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e9a8fae7bb3813cf698fc3ad81c29cdf091d26b8fed83d34fd89a30776f4853c
MD5 46b39cf486d1a9e663333187b65ad13c
BLAKE2b-256 91c1a20871e083a52b40251a09b63ba0c077fc403eea27475c70d084b4bc3398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c13c5c61c5b9e8cd021be6a489454efe499a2b774edbdef23e4b47853aceb8cb
MD5 f54517bdd26ff9b96c6a27ba3b57d714
BLAKE2b-256 fe904247bde65fb4bca841d6c19d8649163dbb08ca0b64a14d51dd45e2bf077b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.819-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.819-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d36efd7b1d086b8b0117e4a4d275f78ef4cd63f0aa7460a1ba3c2b39eadaa608
MD5 3eb578cd1aa9041c8d2553abfd833732
BLAKE2b-256 da79ab0669ea73cc9319a997abe85a2bea16b3001f173b437d8c168b1b3df0a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b391866380f95577cbc1d272697a1d7a55c8ab42374d77414148db57c4c62bee
MD5 82b4cce17c07c55eeb84de71a6bbcfec
BLAKE2b-256 4c8a8f5c04626a372fd1f45d013a56b61b714fce18762f88848c44d03e730f88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 452e30e2f1d6d0387eefd39ea10b2445476a91b3e007bc936d745d581e85adf6
MD5 5ca54df24dfc15340b146ee6be42c939
BLAKE2b-256 8e54835220db7eb3b5600c2e9a19cc052a2238ddda64a8ea06956de66d0236a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a1f1eb32648aa02ce80fdcc821f513b13fcf51941653c7ae1b56a2db17fe86f1
MD5 b1b626079adad42a32a7eca875fad587
BLAKE2b-256 b2216fb9a0527b8f6c4f83a7257a53630a2a3f8e709adfbda4c81ae03b3e3005

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.819-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.819-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef3622c0f8ac522e89e166ad11cd338ff43066523f1b29ec766246d2ce4460a4
MD5 48940d72a2e6dbcb65e2fbc7a03db197
BLAKE2b-256 5e42236ddbf8ce65ea4b75155556c63483a0212a724593fa061d447d2ab3f393

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7b2aef08c1f4ad33a0809d8c84cd79b6dbf2b0242f72ae836e1e67c4890c3c5
MD5 c83715180828e032e6ccbf1685540c28
BLAKE2b-256 5e23abdf46fec04c44371cf04585b458025cc2e6bb4032b1fd84039d26ffe203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 02eefdb64bd016be1334103d5587cdb1a9b03e9402628765d27007f5ae45d82c
MD5 055030e9ca41fe63362be7b29989ce6e
BLAKE2b-256 e4c887970f12a8490bbbd489424bf0363046b117c45287305627cd45ef730ed2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.819-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.819-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1029d13250551ebd04a87614872f2049da9f021c49bf7fb6b634e95a0ed256a6
MD5 4c66723f14ab1a40f5107550f598340c
BLAKE2b-256 b0951f4ed659995f4c3f1e30c782a77eb898214f82965b475967d419c0790cbd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.819-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.819-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c4bbc29eedc4ec24b5007d71d119c3c8c5e33e952c6e54450dd49e76846d441
MD5 7fa4076ac58559302812dd02e7e13bbf
BLAKE2b-256 2d5d7333b9c5965352dccbad06e301d8d5030a68fe66e852d95ac3b3c2618225

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.819-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bb1c2780744beb502c83353fe0d8ca2f9916dfb503adce3f2fe4973ba9c74e6
MD5 046fecfe2116d2995d7cdd39534b0ce4
BLAKE2b-256 046a60b9262e7f8755d7c361500952b0a6910bd74c719c909438f5bf01d0beb1

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