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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.558-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.558-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.558-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 947bf07886901b68536019a1b92435056be80513e6d78433a1c01319b5dd7378
MD5 72d918afe84384605f70ab5efbd476a9
BLAKE2b-256 93c808afaf0ee6a821ab4914ba8fcddda81103cf934d60efdfd4d3e0ab3c59a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6fe309a26ecc2a2c8c7b3fe7ea0dd44a5052f1ce3f25c56d35c8baa821b9a0ee
MD5 1a3fc5e0771446c0fac36f37cd6335ec
BLAKE2b-256 8d7eeaffae7e80413ca593391df4bd6135e9bb40bc120f417fd1927edfbe50d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.558-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.558-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04834990beefe69f1e30d88b90585d1f21eb12480f1a4af5600bd2388f375304
MD5 f7d92ab3f1b5c2bd7517c31d71fe9b12
BLAKE2b-256 981acb8fc06c26b420c6bcae5494d36a4370286e24817d808748742e6d86afb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d9f2ed83f2e4e666ba9d01d75ad46c456704c691fc98688603b3b744d8ad113
MD5 a3819ade3f81b123da93a52bb39edc07
BLAKE2b-256 34d3487c3153d5f964028ba31a4a88543ef4e290c29837ed70644fe37239c43f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f1e414ca6886443dc64fe1d5f5a1177e7b81e98c0ce2e5544b7880d02bd881f
MD5 fc757c1d4e30a31d8257f205ce24cb46
BLAKE2b-256 ce631c32a205f1e35b66c86d5d3e237d708cd6954826929d92a24296b569b02c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0b090e0f2a34cdb9003cdb280c32fe0088c0ff121dcebf5b00aac9e1c82d2a78
MD5 7bfbf9aa87f78c76dd26f44033f6eb6e
BLAKE2b-256 3192d55b1d8c99db35a4df5fa5cf5325fd2259a3dc4affcbc4c162ff7aaa82ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.558-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.558-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17ea2855444d3d391f815eb941d7fc1fefbc42dc54d27f850d4d8275386b8601
MD5 cd6024647fdb0e20a570131b2bd89bee
BLAKE2b-256 4d77c41fcb85843814c1a0710c1d57bdcdb5e6ed62c78a0e57b3ec718d8ba261

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8674683054b85698f021feee5f180f646ac32be23e02352fba52208b8e3bafca
MD5 7bd0b955d5e4743a6e907ca5f0afa7fc
BLAKE2b-256 dc19a142c14f2dc12e128aabf29647c4cdf6998ac02d7b68fb919c6127f34a05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 612a5e90dae58997c0be008c496d8e5ff5051178ba69a11ea78916f2a73a06c0
MD5 0521ac588f964a96025a1ba5e160852d
BLAKE2b-256 c7e1d888b8492a8b3eae81a508aa77a11084b9ba740cd2ca60c27b09931a0f63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7004f38bb662fd8c4585da7e6b56165b23d13679f814d2cf5ad8e3a4e6593ba7
MD5 3864378d4426e5b772d32afe306b66c2
BLAKE2b-256 bbff5a91ce45fed806fd5be7ac4b5b4a7dc59ce3fbc672e213fabad13dba6db5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.558-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.558-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ee0529f71e78d8bdc4b5a385db539ac6e6f1eddefbfff40a56fec274e7aa845
MD5 94ff56cf8cda26a6411800358200cf68
BLAKE2b-256 d2d1af0b0247c0dd3c210e1077a86d77460bd32a412fc1fc16d974caaf0d36fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ff53bd17c2d3284dbdc6c128e398dc0732954d75eb5bf848f27498958c7ddb5
MD5 2eace74ec4af1cce50bec23ec9e81435
BLAKE2b-256 e7014c00ee2f906bdcc2b833d1197ca30d2d0998e5571eed342b541bd18f6599

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1d6225b2a2c9716090fdd4af8b0b6dea8f8f10d1f57c6bd11790ec29291ecc56
MD5 27de4ce79d863efd2eba25ccf7f0d1dc
BLAKE2b-256 c2f66945f2490048cadc2789a15b32bc3aea6ac631e4be725b15f78422204b99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cbca977e3adb4b8a6a6a81384c396d6e5ee086ca7638df81954e21599a85bd44
MD5 690104ed3cfea85b7a118591b55b5048
BLAKE2b-256 b2927539c45513ff8c68a14e2886dc5059d49c6f6977d8c1ef4ac86631bbe44d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.558-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.558-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d297015ca6be3d29d6794f7dc4cfd94876078a86c7abb441144ac1d9d219ce13
MD5 dbd5fa71de0e6384d11a216e462dcd2b
BLAKE2b-256 bc0c087d19aedda3439af3b9718a5413dcce5713b7b6128cf487896140935507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4841c008ea2528fab4871bac54834056f872bfadb7d72937010744404c53070b
MD5 318c70d16f51439e0a37b4f0ea24bdad
BLAKE2b-256 c811e824a7814ab342f3383b904bc248ecd7ee699fca53fb054d68c911a6480d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d9a52bde26b2383a052d297d274158d0d84ba4ec558016f9aa1d84f422f2cbbc
MD5 bb522cef256190f2143a0b3acf02fd4f
BLAKE2b-256 b6645e888b5841155f196744f90a9f026ea7dca59d63a65e51334e8ae2b769e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.558-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.558-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d08177a6423d140dedbfdc185e9df81e1e444713a3808507e713ab58a4348371
MD5 16e11666767762efe570e160d884f310
BLAKE2b-256 d548d004da0847b81d35e69277ca58fc8667a543ef10d9e5a102889b888af9d8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.558-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.558-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40fa16e8011fd441c9e75208637668864f38a2838830e041457d1efdffae21be
MD5 8af4fc6391c8687af60e57f9f5939fa9
BLAKE2b-256 8f8a668e925dd5393bf24cbe87fa52711ea39b0c983f43a356111fef81b21588

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.558-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6778c1f2bc8ad85c6bdfb3c268dd78e3a1ee7497e4f3a949a829a75e45c61085
MD5 2191b5b79cd22bdd366fb80cf8afc5ad
BLAKE2b-256 0d604e11f8c0bc67aaca14f2cf4eb00d98cbb1df084d51d1e39a4c435488127d

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