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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.125-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.125-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.125-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d51220da40081a44a55db0fc5437c0e3aa192841126d47ad99517a57800dee10
MD5 b8578a8b3b18f889efd6e38d91d9cf5c
BLAKE2b-256 8c71ce06b26bfd2694bc64fa67b38081cb50eb8959134e28aba95b6838ddea30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8328e6ca34e3c9526147f883fdb61d099fbe7608131cb43c5a942c013d304916
MD5 755d8edbbfb06fc834dddd5bbeada0eb
BLAKE2b-256 9d4979a0a8b6da6db83243acf7b68c8ee842e253417057174c9399d7384a3b8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.125-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.125-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d93649a0862a21ce536a82956ced9fcd2cb5671356f02180a0e3a8affdc1daff
MD5 f73db9b1eac40c8f892572702578715c
BLAKE2b-256 25c54801de6668a677331626094b6f6d326a7b47681ba4881a7d5c141cee5b61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce8589bab76795e94f0e264ed0c3de153545948d7de08e46126414abeda20016
MD5 6e2fb91b30402e9dbe4287cb108cb0c0
BLAKE2b-256 dc29049eb268c57505da5fdc0488b0002e6ad20ffeb00e561cc881b8faef30e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d57b12b7df9adcfcffe14676a991ec2b105c0eb26991dab69ccbfbb5b3e69a37
MD5 bc6278b9aeeea3e633a179d77494a028
BLAKE2b-256 9f88ee631a89755bc93199a0f9a11334b4f0e541a74353672f4849e3af0aecfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 660472edad72068e185120fb1f83b4f0c5bc3d0169773b8dda5b5fb7b98e9563
MD5 5355b86d7464b4ebf925859253c4e108
BLAKE2b-256 e82f2e48e8c059de8fafc73c1f96b9643c7a0493c907974f92322cbf2e931b92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.125-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.125-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e12fb7b87ef90844323c6894cfa99716a10bcb16e8cdc54a8594fdf69ed9292f
MD5 67fc4924fcb8cfd302369dc0854f9321
BLAKE2b-256 b42d33b508eac7d4be1f0e6edc89050ddd78b0bb96040ece76812e3e3d962813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d348b4f9fdd219574c8fde0d4d3ffd15dccbfae514b38ec1582df18f0d81c05
MD5 0d1b249c1f70be374c995afe9de535f0
BLAKE2b-256 6734e38e9a80b5d59f771334e5ec3acbcf35816136c5f4a6dcc171dfeb33fc34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 92bf536e9ffc7059cd125ec3179ed095061c3bde936ce7bfd4a3ff184b51faeb
MD5 db63de1bb6451f61296d6bd2674b9aae
BLAKE2b-256 8961dde7a3cc232b83a535fa8fa0a7fc029e48c75f2827ccbc4ae68ba795f828

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 edcbc84760bdf824b1b382770bf36b2c950551e4a6b90aa6972e6e0554d472df
MD5 c1b22d55cb2cf2979a3018fe861dc72d
BLAKE2b-256 beae03f6a08194f4dd87c03c954baa3876cad00718d9e49b3e60784998e5d2b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.125-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.125-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5ad6c6c886c1567ba8a09d3550fe641075edd04e3eb7e4a82741c9a843c49d1
MD5 d367a30186222dfec1e303db4124de0d
BLAKE2b-256 588eb851adf8010fdc8326ae2deed504c07ce5449c959087b3158d7ca52d2868

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9424d4f8fddc99b4095071fcdb062529dee9399f57116eee435cd550b54632e5
MD5 9c6583bb96f16e19bf7869e52a20a08b
BLAKE2b-256 81ee224f88e13315d7e7fe02cf675a8f4b9d5c8e25257b78175c790eb191c751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 df6ad94edbf7d791e30720b9a62eaa8511980bfa0930899a0f49aa613f6284b6
MD5 39c1ce7515fc5fc66b2f337f8d71de58
BLAKE2b-256 7a901d2545d6b694581ed34059a3976a951511a812e9c3466ac73c7b31270ebd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 784853c077b6b5b11398e3b6b7ae77cacb5b2c97d223a5f54e7497531700ccbc
MD5 783bbd870e4bd1553c278fb9b7c3b0bb
BLAKE2b-256 352d0e11de152746b3fecea4566a2e89def52bfee570837dc68ca13d144fba13

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.125-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.125-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcac36481444910d02d6d6cbc8e8e12f0dc4b0013b6910ff5da5f0cf3c3d51b8
MD5 3e83845e83d1edbf59ccc53767411b7f
BLAKE2b-256 77990c8dd556643bd0190274f001673cacfcdec325fd1ffdcd4c6a3d9078eaf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3d3e401374d7327a481061610e2048a3ee169b627a48813300e103b76b853fd
MD5 c3e876abc58983600261f9f6e06cd4a0
BLAKE2b-256 c4d6f568f284f442606c0b5015b10213657a2be7b114e232cff8b1267c26ffbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 80a55b8ba3b9a363a2475c443747a03b795254f820610f8876657ef15a2ba87e
MD5 87fe3a457bb44ed460595af60d62afd7
BLAKE2b-256 b6dd2d9b62c831175652176ae74fa82af2b2a42bcfd62f61cc53216fb15de69c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.125-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.125-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 336b6ab7099ec8f5e342597ad96b2a1f7325d904c2c20cc76f1fa483c0ca4096
MD5 5ceff05aa8ad18da935143f46bc1258b
BLAKE2b-256 02f80ab406d182d1a10e70a9ac03166a63740a6bfabeb0d2675cbc2fda7632ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.125-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.125-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0869e8d978aac9ac0932152f66cb9b1facad29f54fd291348e0fb3a9ab613c5
MD5 750d04721284fc836b066f038807636d
BLAKE2b-256 116d1b28a8b41672fb51568e0531e320fa0c92be3d4fb595a3d61d4ece58b3d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.125-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d86147af16abd8149af239c2bb4001fa76038caa43436a19c90018de1db997c
MD5 eed13443da00ec154e9a1c8d9cddfbe7
BLAKE2b-256 4eb0ac667c29ebf57f99f41e32b1982e07fe1d3f4c68f3176e91360cbf605dba

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