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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.494-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.494-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.494-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5707cb88902d2a9e72c02e52371dfb89382c80e43ea8586f7f84b781c8a21b68
MD5 92f406f434d258ae2dc400edc4246562
BLAKE2b-256 e4e036ba02920b6b5d7c6ea42a87a2ab8a1dd042989825dd974ca5ab1d99efa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d8f0d775ee9131b4ec58e761fad81edea44f8c943fde496a09d2f94ee2f34217
MD5 3994f65b9ab7e86b9f784d4a4d393c69
BLAKE2b-256 8c020214c19574a4472d7730a99f37ccd5163693c981dbf3f4a5223766a15459

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.494-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.494-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f495d9d51473a27510e63fac8a01b6d127a616d13165c63bc07eb47bf7903d1
MD5 3f89752f3b0344f1dcbf87ffa5bcb759
BLAKE2b-256 4120e8bca62b3cb78c056bf029498b8266705b8a33a52595c254a39a491bfc1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdbce1af2dd8e4124d6e0183fab4be4bc20611ed9a9fac816d420e0ed6eadb1a
MD5 9be14edf5ee94d7446b3fd1099e6ffc5
BLAKE2b-256 519035621fee4445523ab4f1c80d8128557febf07a6b841088ff3424f51987ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6c5d532a16034c0e476f8680df0d115cbdd87ba32c46339ddb52a9debcc17af0
MD5 79fadbfd7979b07c433f2a40195e9ba8
BLAKE2b-256 fc1b1989f6482a4c7527178726e24b87d07ef236d2c9b108cef02f38f9e085de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 af6f1272c0e4c6c1e1779ab529641bede84a2c0e8b47df249491ff7aebd85a69
MD5 48e9ded911ec660fed7d325aeca2ce05
BLAKE2b-256 897ab15f13823f1f81df01811d7678d225e38f89bf75620eca778af94bfb61b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.494-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.494-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 543d646a9eb49915d5f0ea9a446a04af3cd89f191ed4abeed272779f8486316f
MD5 1e7d09d8a76359e90da5b574ac8527d4
BLAKE2b-256 5f6a6397ecac83a7f892b1ca80bce5bddd9161592c380ad767a317b6c786bbf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bcf89a664f193e094efd0bace81100dcb66ca4e090b9175d488d5404c04815a
MD5 28d1472e5d6aa19064ccee0e66000e32
BLAKE2b-256 077d06b920ad76089f19b831aee2bb0cd73079a3f403db8231f3617e3e206c05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8814b3ecf40418875a4cb2bd45f7cd94f7d4f89f09bfd2175e90a4527a719ea6
MD5 038c3ecfc58b515ca8db2d82cf34d25b
BLAKE2b-256 c13d422004ac51dd2cb1c36d2d94b2031ceb5aee61b18eb1bf56f876ae9b55cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d92c0114c461ba20ce2ed68ffac2cba77467737a5d537943fef8e85738a27cad
MD5 b76264ac69ae930ea1d359d8be449794
BLAKE2b-256 acded62be9bc754f0da225aaad0f536f082223b24df2fa64fd3bad5e0fb1ae6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.494-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.494-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e32b97bcb543f8054fce3e185e599182a2a6ae213385e89bb437825f7c3584d5
MD5 2ade3153c8ca0d8d9d01b7dd5511a598
BLAKE2b-256 1a34fa687b628dfb11827c41c87c5f7032fc09aaf94e258517f02d3b27e7a6d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b5f5e879ea55fff4e49da8bf1df754b961c9139401f9b119874444a63164dca
MD5 31cd0242653e5bf8d7ff0963e19b635f
BLAKE2b-256 b88c74b946226f7f75c9adf8d969f59d8e975a8e7f1c333b9e878e3ffcbb5f08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a5ef855f29b09de2569b867c8545efdc16670c201415dd04786f4d9b21cfbace
MD5 3d8d634e0027ffa22c8c38bdee11b443
BLAKE2b-256 1a61691d4c63941890ecea633baa10c1b7ba8c374b2518114df56805e8746015

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4a9db7f0432db5eb9fe011d5edfbc366e4311b0baa3df31caa7fb4eedc3cfc8f
MD5 81681c3f506a0332c2253f68fe5b1d1f
BLAKE2b-256 d8e8f6ec3360dd73c659a4487310a908d8cf8d8d156d33f376b9105980d2af2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.494-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.494-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 392c8aad1f35a5a21754968941cff8961f26083901c92ca928618aeb1b891bba
MD5 f90d51478e8bc69121ce39b1b3244567
BLAKE2b-256 ee55ab12fa4ef36d440239dabe63f55744a61f8a62ff6062ebdbe716e0e209b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84bd6a0ab97f3bbedcfb61f5f4f7623f199ea40bf8072c891b43ab06b1bd5abc
MD5 e8c81be25c2f7dd1c13eaa72a1231aec
BLAKE2b-256 bb3b16971f0081811f2783bfb99cf03a4a94b73a3e9938c77de4d746564f9b1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 05facad284906cbc78eece9c27fe4dae1f9e7c301fb884a597a941092a3da770
MD5 01cd56507f2adf07bb33664627d89396
BLAKE2b-256 8de791e86c696a5bea7fe74718c4e88b5fb7c913cfd6c1b0d3fbbc1bb60eab3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.494-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.494-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ad08e770be678dc5ec5a76afb5e103c668a868f0318d75ab3095fc4aac833996
MD5 5941e6ca8dabe491d3a2b694ae57922e
BLAKE2b-256 8efa3680a36ea91dc699bce012baa768da8aca9603b45ead75ffcb24a7ea0c5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.494-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.494-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2aad1f316d0ddaf1e2992414c4b91cbbe37eab26ea5a8edf88ba988ba7c24a2
MD5 a4b606fef62b5b642a083a915d542d42
BLAKE2b-256 fd7d0b08fefd6404193c30c459aa378c7580b11f313c688d64cf85ffb5654597

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.494-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 964bd5d2d219d2b4fa20fe62c03007722e3bd71308ed6f1db5dce01f749c2d64
MD5 894896ad952316a236a8ab42dbda862d
BLAKE2b-256 933c032e0ad2fc139e6dd3338833c64ede59302af8190078c63ced6891904c2c

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