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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.484-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.484-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.484-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d62730c33e82d754b830b56cd9547b3f164c7dace12c0842de77153888e051db
MD5 cfccde39892e92adc5bd9bf6eaf9b906
BLAKE2b-256 0adbfa6985f5ace7ff1521f46ea10df58f5a577e8d5e640a694f56acb32fdea3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9543fbb85a91b1fe31a593ad715749e2666d4f72152aec393661ef4e45250d9d
MD5 4e4db876988679d57637f1ffcfff9bee
BLAKE2b-256 4286238c2c553703164249d894b39a4120e43fbfd52e0be2b109852977a29af9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.484-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.484-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f23e2ee297281bead75128e3e44dc1e1c2bdb378244e20130db00dc43cf8541
MD5 19156cb2b2f1269a5adc7a7cfb994dc7
BLAKE2b-256 994dd56c2e3fce916eb33ca13564af4c2ec2472afd83dcf571ad298d03418ed8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e843014bc11ef8952e16cd779ab96319f94e458c002ef5d726e674f88140492a
MD5 3c16a50ca9df46ab21f8973e7b4cd8d9
BLAKE2b-256 a8ab981a8751694f9eaf637d2e078b43b5d4481544b8c6ff0988388c83db8ed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1077e818b83e1dbed6ec3787e37a60c0a983a5915742fdf89a63af67b49cc26c
MD5 4c78f5cf3bc8533ff7b2c25bc67d63a7
BLAKE2b-256 938144a9d79ae4b7639980bb5eebc012db8e756430689935593aca5980b3b463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cd177b628c0911f83db992aa5fdb8f1c7ac38eba9f772b5a766ba770cb4f0190
MD5 6d6337ddbb8b375a10891f6ab4dfbe1c
BLAKE2b-256 50eeecd39666e58f7de4874ff4983406e06d3e17be7083f0eea638cae31ffa72

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.484-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.484-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c05ae35ce6c4f5daf9c85cb2ed273a3b0e8ece57a067df66aece9c7f63a8434
MD5 968cd403481ef728ca0a6e11974fd1aa
BLAKE2b-256 77e058fa489155099770733cc70a052b738d29e0ce97d329df41eb1951969875

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1d4f3ceacedc4b6c704e5a8e6f211d8bc6bc272c4ea5d5f3ac643ca8fd39de5
MD5 2e820cebdb533554c9f2a18959d60a5d
BLAKE2b-256 c8db9a551f54120ef2643b312f82233fdad2fdc03fb2bee8755244b16dc71537

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 68b8ea404f259e2ce88d1d1bb5b79ea9ee91a92440b8c346e4eb2795dc086ee8
MD5 3474c3dedb404a6aa9421830d332e503
BLAKE2b-256 33bd188a4bd41c7b72310953958c08d265f13a6c50a232f8c9149c01cf1f5c26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 13a1478525a69d84b7d6a4439825b874e1e6ae7740a33d28ebf1ddb5e064dcd7
MD5 a7475e89578d0aa28c2cdda60a357ce3
BLAKE2b-256 6e925c6b6dcff5ce4ffe0e08b917f2391f401e3d81783ca42d4586bd245aabd9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.484-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.484-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 34601211e97b19accd85c089c88f21e23c82f0b850105d20de763ea9bfb21e3a
MD5 25dc9f3ecbb9fc0bc69877decfaa7240
BLAKE2b-256 53a8150c0d05db59db40f3684fe75502bd3aa2e3bc1dd95d7f5693f1c5eae3fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7802192ed9806a41c473477f7fb631516f0017c09eb1ba05aa0735de160d72b
MD5 f9ea7b065eb2ce34edc9095f49c7d0af
BLAKE2b-256 fc22884fcc923eaa8a48fca6c651f44596c5e892810c764aab768398ebaea9d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0bfef5781d5cdf6080ca44bf8fd4cd1536563dfc9aa4458f4f8e1283dc5615cf
MD5 6c5b761ed50ddd7ce714b24ef2fae950
BLAKE2b-256 1c105ddcb5b4b7e2ce14914ae8f8ea3f67ee91d39422b190904b1972ffe6c0d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 678f512a5b85a771731edb70af3cb389a053b2ba9ea7bff79b1bf88211d699ff
MD5 5f8aafbaaf4610ce73cc5f510f0384c2
BLAKE2b-256 c2c0647bc27138af6659f8afb4a6f4b17d1f76d4f2d40e1a749dc961d9bd6e87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.484-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.484-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15818ea0852c9e5d5981e23d46cb767c6c7b21cafc4634f643b87c77f12dd887
MD5 9e75208fbfe9335db96d657e982ca374
BLAKE2b-256 2e45d4eead5f24e7a9667bae36520ac572e3cea1da3bac8e949f6a8fe029932c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 243ad48ab0b94398d6aa822b71db2ffebcc182f35965aeaf17d7a592ded4d53f
MD5 b072319b985031db7898bbdb7486f254
BLAKE2b-256 6a997a1d9743d10a0144f36e83d8dbbecc05769653f19d87bc7972b12f25c881

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0ab0a7b1112bb9cdd62e640a3caf73f9cd59e127a8ccd70f41c2c6c88b8d97a4
MD5 519273737df8d630a014d5e381e6489f
BLAKE2b-256 4ee2999023a5b326d267ff62755e9635cb460d99fbec98f70eb2760809b847ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.484-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.484-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9f5aaef76a589a7a78b7de5921e55ad382104c3884d2743222e2c71c89a3b157
MD5 5cad278deef86f8b48877d25f9b9d2a9
BLAKE2b-256 f6ad4df9e204a240c40040c65bccd372ff1512d42438cf6008c1637734c8a05b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.484-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.484-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 030c23291d058414db5fa7127b372188315e2dd29061b00b450378f599f6ec39
MD5 7753484ffb01d2ea38a032b259cd3f25
BLAKE2b-256 c35d046e4f36454f1fbc519fef2326b30778e1de4f11d95cbc2f7055e203f6e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.484-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01d7372806c49a6de9a339a0495ebf8c6696c7ce993118d53969a9b51c46b24d
MD5 f035b3026b8ada8a8579c81d28fb983c
BLAKE2b-256 f85382c561a5d91b933e225772dd855255e020fface9685154e43b23caaf45d4

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