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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.344-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.344-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.344-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 863555815a83c1023c80360840fb44c6186d181f69ac544b20e5788443267056
MD5 f1088e1ea4f49224808770f27996048d
BLAKE2b-256 7662940d7eaad71fa241eb2fe047b58487310cf1b29a08f530d89d348a5107d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 faec2ca8d92782512be5fc93be7f623c0bf2484ff703bf8388a2cfb1f7ccb2af
MD5 2f756afd93ff5314f6958e2b293daf77
BLAKE2b-256 1600dcca8acf25460db5447f1838a9a8394d38e9cb92f98d04ec43841d69e9db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.344-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.344-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8140d2fd8ac13abb88de2728fb84bf1870af388a519fd8bbe3c2f8f20ee84ec8
MD5 5badcaf3cd981e0ff3caf4568c654afc
BLAKE2b-256 e3c49849a8ce748642a4f2289a3c5972411dec256ccf7c49bda95c0b0c9341d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1dc5722861b7995426f0daf8ad35ac64f29a71cc71379e282c8fb7b77743a4b5
MD5 bb9b7f0808c75315db7772a9ff4fc3e7
BLAKE2b-256 28a9f80c3e1cfa64c9e4816535c7542ff7476d6ff9f97d29408b7199b7343e7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cf511118f4019b81368cf7279a931829dba1471b44a8cf05fb6fa43ea90bc097
MD5 adc1ebb509f883ef2cd4e3c0ea9234c9
BLAKE2b-256 e0e3c756f3be9cef883cdecb4b9cd580c6eb6b599a2f1cd278f57c1ada03bf8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 29f6913f620c3590b1e191cc66edf0f39faa83e260e6553e92027f67ebc435a1
MD5 67545b51f0995913659de0978db6748e
BLAKE2b-256 26279d077a3f25108ff18cf18c42553108d40bb276539e0e3cb6ee153c113f43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.344-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.344-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfa1ae08804ae95a6e739bdb3ff2ebd2f92fb5272f2a5bce5a281c79ae490b0f
MD5 eeaa49291a297d628e8b87e0d81d668b
BLAKE2b-256 5c5c50ddbbfa17d7e94e04fce268b7d303f948e32f4c7fbd0ae61e238041a95e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10b7fca71ce7324c92cebd6555c749e5f4f60b89c4a17dfec26dee2de2d03cb2
MD5 23228a57bf473195311e0dd172983633
BLAKE2b-256 19ef381531d7d07e58da28456783377b14762134db6b15bc56c7f2668ad50c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d53ef477b8dfcc153c93ae17b7c6ac5d53b2c7027a5c51f249ad7e6ecf045f4c
MD5 316bb1cb19b3314b7a9ae360d09d905d
BLAKE2b-256 f3388c1599d4958007e3534db4b4aebd95123bffada3a746474ba0eea744393d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7a805df199f403be1793b06f89efbe6c4561d06a293b2f937bf5a3f161b25e2c
MD5 b4e24a67f62228a87662e4293e114fe4
BLAKE2b-256 dbf22884e9f225bbfae72992961ad65d9f37b6b6b4f5c1d256bcab091e0244b0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.344-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.344-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b14a3e4097acdc7e39603c62d9b9e80a7d33a987e775566220f841795c81495
MD5 deae1b283bf2cc29a772dd60ae203143
BLAKE2b-256 7b7a0a0fb70f15dad5e466a0d10b43a85589317a973814997cf275f239f9d1e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 610d6b223bbc8470da2b9894b518e9403d289b67a04daa6a3b5a9351b4be7099
MD5 97b04b6b0d0ab1338e7ab0fa6ead6567
BLAKE2b-256 01c2c07e7c7279050a62513645732968af851428b8e57834a702df6e77c84dd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bd73d635bf67d1ddc430c607dda5e5f05426068424f2d35a9a5d061238bcc785
MD5 795349aaf4f22c21b462783e73240577
BLAKE2b-256 bd4be7c8254b86a0ab9f6d0a63c99b40abdc227f9f34f7835dc6a3ecc6e7e84b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bfcb8e08bcf4ee7f740b8b2b624c5cd1c2575ed196b88b682abf9e5f28d0034c
MD5 0f5d9269d78b193cb0317e8827c33fa9
BLAKE2b-256 75bdd0730707b68d4b6eb6afa87a806bfc5f1fed8ae03f53161739946689b99a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.344-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.344-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb9ef9f4e143130b5221ddea1d8cdeab8f0570d218dcadd5a016e5f5edba25ef
MD5 399dc7108e7285ff17c67710101d8d68
BLAKE2b-256 e609de8a26b5c7585440e142a0ef9159c2f3b2fb765d5807268e6aed3aee5fd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a0ce565da9fff7c6a0d9774de18f9cf645a3bc5c139a9095fd1476eb2c5bd64
MD5 067fa0257e6f5c93926989c78ed29d2c
BLAKE2b-256 ba018b9b2331235c8a01223a22826a02a0ada4836cfb376ec05cb09d9c1241f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ad8304c4df6c917667d5988ac0108a6d4178cd2f10cfa802875b966115d43f20
MD5 d764843541fa5dee77864c77d94b94b2
BLAKE2b-256 cffd14f6ff739ff5af5d85bdb2ee3536f1f3d0a1f1bc405a1dd696d3338f33c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.344-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.344-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 458cd648d49e8bf3b5bd81c1fe581a45735e36a7ec0229e48e6ad6ff4246d4f8
MD5 da9061042fe3f427c6dde1de75143613
BLAKE2b-256 8e5b2e53ce78bd888e926678703ac82d0e9e56add73d08b849af1bbc59d14a3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.344-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.344-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 918f3dc941e8007f8400c0293bf16b419f74d195db162fb0fa323127ece665ee
MD5 95aa387b2f87fa28ee31cd267c24f434
BLAKE2b-256 fe7020972dc7d034abec2ccb43afef29fea80b1045f9b128e0cd7eee5dc8e5e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.344-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58619cd7f260042279850fc4f55019bfb8db3030f12b99c9d5f4d6122a8eecda
MD5 d878402a064fd41906dca1d05d088051
BLAKE2b-256 b33ab0aa9db772936d721b87fdb234767b0df9540d6b2330bda4f0310b5eaf88

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