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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.18-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.18-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.18-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.18-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.18-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.18-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.18-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.18-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.18-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.18-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.18-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.18-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.18-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.18-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.18-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.18-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.18-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.18-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.18-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.18-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.18-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c2f7a20e29cc0fd89fec447c10667452d59e084f687f844e550e0abcf12c5f6
MD5 c80a9fd570695293d24651a0b2479499
BLAKE2b-256 4614d74ae255aed187234e8e97cb80cc07d04b3a8bd5c80897bb09c0ec883878

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.18-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e0ddeb07b4feefdc1f3a02f62cc2500cad1138e6c1cfba1a53d214a4ff44372b
MD5 17985223f42b9d4c3bc22da00f7b17c6
BLAKE2b-256 c8ede781e78b98d655147e8110ad033508e7f80bca54941e742d7a2335a7f95a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.18-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.2.18-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e50b8b245ba7b8238255ceb999dec98bc63cd34c2bd86f05cd6dca7c8a3f5f3
MD5 6fa68c7aac38e62ab5c9df7f696ead62
BLAKE2b-256 6ab41d0cc1456190b0df2e2238ae95fc44f6a1ecd1a855ae3a0d0b8562b64f82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b200b55ca7e3bbdcb79c21d5e6df96b90fa6debd7c2eac9109591bea6e6b0cb0
MD5 c2fdc3811075ed5eb31ddcf28e590a33
BLAKE2b-256 901cf4814fa20a90485c66f31f1a336aadee3269dacac9d3dfccaac85ad5c4d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 76fcc8722d81b38de0b1ddcc4dc1a4573bed6109143428b39635771c8c804160
MD5 0ad05525f4d1af4fdab6f2643d9b22b8
BLAKE2b-256 3e3107346414ec88f082f5678f0356531c8b21ec190ec4c10e533f736626df7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.18-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 618945fb5e4a43601551eabbd7ffa2187e721dd7278e83b02aba75a68dae5bfc
MD5 894b326a936a6152b07691777896da35
BLAKE2b-256 848d4ed7cac692e13bd3b716be96ba47f8dbb020426a832e74303e57817c0881

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.18-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.2.18-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7cf53c9153bc77f406855e373e0da3bd83bfc65ab1b1aeb5cd288936411d84bb
MD5 2b4f2f12a422db6f9b066f91cd0bc349
BLAKE2b-256 085bd81167a9a477782aaf5544a76ac4b4de1943e6caf590e498e15d5d605860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bb55261ca925276ce47e541f20bb537dcbfea42d4f6b3da8ab5826c666261b4
MD5 66dd48209c98b4ef2439ec7749f8da9c
BLAKE2b-256 fe1cfdd2119007c5ca86b23e5e66af3f686879ef2b98160b9bdc9a4319d30fda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 72f63351343e14524d09fad9843d403f020badad1cef522d522a841f071e2fa5
MD5 30cbf30407c71259ff50e8417f2d6880
BLAKE2b-256 e0e1960a40197798e26f935cd7f54ef23bbffa0dd6ff30c18845631c0df913a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.18-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 79f430dd2f6e51cbd8e651b645143ca32c1ff8aafd51fb77d8f96a0ce7161cb1
MD5 7d35e74c598d17a72a3c32cca11c6b87
BLAKE2b-256 47265cfaf632767eadc00afbb59412f0c714aa8484b3f92a4f989252866d4977

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.18-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.2.18-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a26898d6b7badd2b64e6a120491df9173d447738fca70b19d9b280d3aa9ef4a
MD5 1cbcf003eadbf869592128d865c8df3f
BLAKE2b-256 abc51f761718799245faed77299f791759f8425b5e8e9766571fd2ca40e96522

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8870ef0787eae4fe2f3e70604b001b3deb81c1517e702659041394579c0c05b
MD5 34f6760f9f5e28947647c586422fdae1
BLAKE2b-256 912e9260044ec0dcb235db9e4b647e5981d693c9e3be5376b7912186b0d54a43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1c38c434a206f12d80335acfa661b19908fd77e9a544981b3b89f86959258655
MD5 a339f7acf8ace9c32faaab33240753e1
BLAKE2b-256 bca52c7e22955449f7f50e1368e75420d236c1d1b6eac49f6dcfbab7dbb1ec80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.18-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8749ed1916239c4c7285d0efaeab59f013b62e566ee7e799023d644b848703d5
MD5 e778cb6c16d51362b42a53e692d0af90
BLAKE2b-256 1985baa25bf1d6753555ad625507e4d54e4ef8ae15ae36eb5e7fa42a113dda82

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.18-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.2.18-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80b8ee4100ee392d7a7d783bbf48274a666ae47fc546429d4a38e190a04436bf
MD5 e992b4ce80d32d55bdac95360b5fdd3a
BLAKE2b-256 1f219a6cec363e0764f81613fe7e0167bcef4bcc85c72e8b6c19b54a4e276ac8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.18-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a92d12cdcb076606da44e956ddbe3912bf80d27d753bbcb92a42fb0bade5c9fd
MD5 7a55386702c0f7e6113ba3ba53806d1c
BLAKE2b-256 46335c5dafd3b84230e3798c1da0987c7f6550558aa86f68303e79ff47d570d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.18-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7c477f311ea518e4f8db8bf9b50315e1298c0166dcce190c3762dd7647e53e5c
MD5 1ce59e76a6172e2461001680cea70896
BLAKE2b-256 d253a27f451df20256562cba00ba5aff8209ca20be8ec131ad22a0e42eadd15b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.18-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.18-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e442cfc7efb8b0eb67c15ae63c37c8409708415e3a875f3aac872d167a84c79c
MD5 1da76e9b008059a7323a000eb39d608a
BLAKE2b-256 05998cb82e96e491a1634dfa05ea5fe105f14020fb059e2d199112999e87cb2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.18-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.2.18-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a7cbe408198557132dba74ed421dfc3d345ece8c36851f64c0f497fab451a1c
MD5 fb48cd93e686d63d88eabd266f0fc149
BLAKE2b-256 b1b724fda8f239a6653140f13a9583742fb30dc9260bced85d97059ce2c52ffa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.18-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 528d91dfb2135a98ca2be8da4d6c1135b864c9008d0435fb121ec5e0afa6a1fb
MD5 d02e4202c2db7c212011ab8cc95050a1
BLAKE2b-256 df0b9e9741858d98f4b80da35d9e4ec2fd3db16175f1cc6e0aa47db56745e022

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