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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.959-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.959-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.959-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 94e2e63c7a22e0888cc0b092b66b0dcb83e7166db148b0c8a9728b90ce0c02ce
MD5 1ab263eb117aff6bcd7a5e2f1a8b2561
BLAKE2b-256 3e316975f9f7642accc8802de094cdff9325056461aed56b0334aa0b20837292

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b2a1c94be21079e0e1f44ec72cd4ee7d849781ef656bdc40b8a5476af0bd1630
MD5 454e47abce9be92de7285e8f11cbf1c5
BLAKE2b-256 0c138f7fdcae6d508826fa34039996b9b58d11dd99751fd52ca8a23a4c8ab1bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.959-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.959-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f048efbc46128faeca351eb96e8262fee9bd7d765e99efb99e087774917fea4
MD5 434d026205ec186a509ec6c2f52957f3
BLAKE2b-256 b5e24dc258897f6a1bd7618aa532410abe341a218dfad9a709d666b7ffec679e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03daa5ae51dd2792450a922c545178df3d9eb16ba06d9b66347325b6f445168e
MD5 d9a210b001de49cfd93d6ae0e91f6fc4
BLAKE2b-256 a424a3814ab61489b440f32f21cff3e05b4266725ab883143cc4ebe7c5d9cf06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3d292567fc94dacc0b842c752bde38ffd550543e786ffdd77556244620efccc7
MD5 c232450354662b5dc45dca2948649e3a
BLAKE2b-256 f863fd49faf091d2ebb28c20b539b68c1673e44a06066a891867d427fc4e9251

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fc0dd77c9cba36d98f5577bcc8b3d655aaa69caf6b802ce39569f2fa1ddcee21
MD5 1d41606eaedf99e13ed375ffc2745ff4
BLAKE2b-256 a70417ad24bcf39bbde718dac669c56a3cde59dce8255c25cfe697caee5df442

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.959-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.959-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6935f6713392c8f8b40399069989aba3ac341d947d152e43c0de448db39e4ead
MD5 8c6f92b88a9034e6eed5ae101425d40e
BLAKE2b-256 14a7034cdcecc0e36510e446b53eb9086f6fd4b9c0a1b25da4aae2b93d0fcf72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a7456df2752e4f81c8011d76268832209d4c5d96b6b1be873fa625cc7912ec6
MD5 3bd45042f0fe6968f512e616972d9c3c
BLAKE2b-256 bd6ade6d5375093e9a3270ed8f9f0e8bb8abc5cd70de7f3470102537bedf555c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1b2cd591d06fba3084eb642f64c9013190aa3b0af28e6f86d2dc5bcbcca0becb
MD5 c8871718e399551955829651970ded63
BLAKE2b-256 47efec65a55b453af8fd72ca2237a70d8d6a9a40786e026f87f158f6c0d006bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 753b0f13cec0657d8eda0a8e36c03b458124aaa61be665b27cd42adf3aad0377
MD5 3fd5687570f81a7be6ea96f3f701a1b8
BLAKE2b-256 b8226dc9b80b1ba9e7a24d031248c76a2bdece77b0540b85fbdf8245638b7576

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.959-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.959-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09982da951b0591236a4910d5cefa7bec3ee73c449b9fe81db7330d0815b746b
MD5 e4aefddc82b9401bf349112918932e82
BLAKE2b-256 40a1bf09f5cedce82095e0fdbcb59e06b6ac29efd15879b1f06dcc6b3c49e034

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a223c508683c8459cb11e114b841058a17fc7ecbaa56d7138e2cc1e00b3965b
MD5 9f746dc09475a34f5b8ecfba86bdaaee
BLAKE2b-256 8884f1846c504471853d2ba51eaee9c7f49d9631ec57e9e8160de122e202db3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cba44cf8db16744e75ca4c2a50a1944378e389db07ec3c0657958456f8bbbbbf
MD5 bd0a3ac41cd389a92225f508b1984cb0
BLAKE2b-256 7b17834c20a7b2a2e00a9495826e2018c143ad3ea9d7eade3af1ed4784efed30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 09ca98b8561a523bd3357168592e091ecb31ca1cf01afe5101782232c7686239
MD5 f3a7886324d4837c91d066551c725c34
BLAKE2b-256 c97f63591884d8ca55e0ea99b52d12bae8219b8057a3ae929ec9eefa7db3b942

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.959-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.959-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3010befb7fb9f7bb15ca7a7644aecd6dc4c3f24b6b6ca2bcca789a8545c52d38
MD5 220db6a51e9ae299e571b905986a716f
BLAKE2b-256 9f9dabf5470933498f935ba78953a5d21ada6b9ccd936ebd04f627e89fbc783d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 849c9878d9fcd3cb09b102d8f8f95813a696ec6c37a7255b1fc2b645d3852238
MD5 e58c2a35cd6e3cd7fb227b274db8ff83
BLAKE2b-256 2b542f9bfd0de01a887d1fa955cce0828b1d8948a9855140df4e99912192e7b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5725ffa8266f4d6e74ea019540c8716ca76dc04eef61475216decce538a68014
MD5 09152478426827c59cd148503e802fbd
BLAKE2b-256 86d00e28af80875e4bbf6924edf9729682f9579a5cc2ead4c49bb808aebdf7b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.959-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.959-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5f54bc5425e3e426b9b9e31147a7d386f7c3786a97cd4ffaf1a882189d65832d
MD5 65bcc3a8103b20d651085b7d98fada12
BLAKE2b-256 914786f777e2fb499c83d667bc07d051df746c59e3d216916518d19f95d1d438

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.959-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.959-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b35f61c7d9c0a4d54efb39066ccccb22c320f77d3e46ecc33fbddfec1d2adda
MD5 f3b6de205ccee4ec03c0942e3740b254
BLAKE2b-256 f6e1cde174b64568e3b2845293223c13596321e0829a21dbd3c263a5d31dc629

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.959-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1656c35214e7f9e09b8344b4418b7bb24f841235bfe61c686d83ca6b23de1cb9
MD5 9bbbb8a221edcc6a3f3e96a5693c3ec3
BLAKE2b-256 bc92e077d65379aa228a4574ecd60325d805938644a4f6b0dd50685a82fbd3d1

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