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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.68-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.68-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.68-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.68-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.68-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.68-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.68-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6d149c3c858fcb596198613ae593cec733b7dab62b793dbf61cf8102af4e627f
MD5 5fe02c1a50cc15ae0ef5cc2d3b650967
BLAKE2b-256 19267847b8d4046c46c602cf300ed319065b802a7a1c16850871b336ed856628

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6169b5be70dd60ca665c548eb81762d09d9554ab3af93123abe252e16cbf4bd1
MD5 b89dc47aeb39781e042cf97953d48a11
BLAKE2b-256 3f87fc9c1b4e2b01f4bec2dc3642c66c108147d6c57da89c45f102aa37bc895f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.68-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.68-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5db64b41095da6b6a9e8c5123d79208062e2aa62eaeaf7463903e92bbdc6396d
MD5 f0a82cd338d8a71a8b03da5477f6c449
BLAKE2b-256 ff9ee75a3df17de22db7f603c15d4d920ef57d008d7778b3909e6a43d4bbaaab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.68-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42dd497392f8c85b2d3095423466c8d8334a1569c01a13db3a5393dedf33383b
MD5 35cff1f40f4d505f7f10856b75107644
BLAKE2b-256 cf87d549194d51acffbfc476383e9a2ca68e9f29792b2c0ee9f7da0c32f82879

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.68-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7e6c8c726901a46b3f02806131ef0f87e34c3ec4009ab84157757cf892be476a
MD5 e76391db5d6d81529167695d41d257ec
BLAKE2b-256 904504673354519285c1057d465e70606c21306e2f31b431b34de98a2716f0ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d39e8ac4139bd24a97188edd833e676e877fa5d49b35996360bdfb2dcc032285
MD5 bc7463a7b9d7473df7d988efd1bd9e6b
BLAKE2b-256 ba8bca5b8300543f09a66c77c658a69574e4b0a37f86aea224225958859bb098

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.68-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.68-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac2c68f9663d0ae70af7e7370d34f500117798e08838967e408f108ab17baeef
MD5 11fba54bdae0dd7b63b4fe66b20a81ca
BLAKE2b-256 d64d28cde0f2b23787b352b60d4f198be3d5c78e024bb897df6cdd3f5029b663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.68-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fd57f2fe902c81801a4ca627c72b8c1dad71a935abfb617229932c8bde13b71
MD5 ff3714dfeea7fde454fce18353e63aaf
BLAKE2b-256 d80aded378bf8d9a8546686791eacfd00ac636ae7c3d45fc0820206d48cdf781

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.68-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3f3f24797291fe6bbb63b4753da5b945a53c092c5559106a0eb202d4c4044042
MD5 93c5b0032f001f828242cd7339b842e8
BLAKE2b-256 54ee29597964016f86b80321e2e76d692f3530ece103bd49c574075733015cb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 806580baf6f9b1e171b7d709bcfc0bdcf0981ed187f0afc4baa3900a48dfb2d5
MD5 c1f3f4a50ae169389540a2e5c556b283
BLAKE2b-256 31fbc8dd3197e15c551cc24194091cce29758d905367f307efa2260c8caa9670

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.68-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.68-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c77f8c8242964ddd297f899ac83311d9514ac6003b33bf67b235913e0e5a020
MD5 3411a88e9892db38cfdfea9993ac3f06
BLAKE2b-256 780edf7a68868e1003956206b27cdcd2ca56358c93d5180dfdb0006110cec596

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.68-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f235074c1bcfaafba7c122737b16428f01c90f985af13ea8c94337be88aecef1
MD5 2ad2cc8aa9b092d13bc4e118ef629f3e
BLAKE2b-256 336732249a8a6699367df62282640657af51de02193a959235f7146c10d0d0fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7f39503275af1c11851e1416c29b1dd58de1a028cc17ad13601849af5346f96c
MD5 2c52837e0109ecef0a0033351db7abea
BLAKE2b-256 be26fb7eabf0a236ba76d36917392d9193a831419bd2d0b1eee1589b15cec4bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 38a1952bc74ade98cbc00a9adddef68d9dde8e3093780e44485617e12cedfdbc
MD5 8589ab92ea598b34fef6499bbb5c3964
BLAKE2b-256 444d0923cb0c2d791548c995e2d8227d45bba99118c860e1aae0ba6e7113920b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.68-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.68-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b01591019e0f504ea59ee793c04dc97442e0fc0c16b35a50eb3a4dbe43c8cdb8
MD5 35da63deaaea722919c3aba109dfd400
BLAKE2b-256 6f6a804f82e21a90a851f6246e47c59e757d53cf0d7b37d36964ea3f91d56d89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.68-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b04de1a3147e8c0105a64b69855829c20f1466d1ac8675149973f1e3de8a3589
MD5 f833a1a1086fe98cce1d42ad3c42ca3f
BLAKE2b-256 e0ca3ff7d3969a4d7136af5b5c72298bf4f8dc5fc1d8604b78af71fb0ff4086a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1477f9dba955133f475c6f181b0ca5dfded9b18fabef90b65d148cd8ae0a8996
MD5 cf784a111950276f24da9351d3a3d774
BLAKE2b-256 ff9f5e85abfee4545c2d927b72d3ae680c0e237458b0bed8b9ee6c3a20cdf477

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.68-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.68-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1ebbeec8e5522a5f12f328ec0142bebdde4fa5b6997808521fb50239b0b1867f
MD5 ea734d848afa3b8d979ad6307bc52c06
BLAKE2b-256 ea1b689d1ca7658942edb4cb8f815522c4260b60bd50d9634fc730390497a7f2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.68-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.68-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ff374cec1a512e57cfb68836fc4e1ff7269d4a463d06117c7ac765750b14617
MD5 b2bf332723d805fb0af59c9944d37db0
BLAKE2b-256 8602da8ab1343fb9ae82c9cf9a1a7a6f209d865e3e87b7192b9b82ce808b077c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.68-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4a3f4f607bade5ef862656196b4f36fdbd1936e5de9cb4645fa4c1c5d2841d8
MD5 f5be4d4d77c418b834c0a9b222ba663b
BLAKE2b-256 0667b77a97031f09ea88cd545ec0f01f31ff5860b5677f60272d33a311458af9

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