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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.612-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.612-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.612-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ca393d4a5f992ef43cda6b05ac643a1b7862e4df20869e475d65d63d17453ce2
MD5 745de5886d918f031b69e4c5911bceaf
BLAKE2b-256 abf29b12869d5276c1412e55e8c2972a87168e9f872f94ce2249f3c081d71024

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 771bce9c5f791aeb5af26963a63bc1150743029a4b80a3e6b3b7bb20eb6d64f4
MD5 a6bb0474faba04c51624e43415ececa5
BLAKE2b-256 c433724bf5933f90351708542fc078f9d86fc9bd008b499995386bba69d09634

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.612-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.612-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f52f0f174d6f30966bd199114482dc957cfb34b7b0d00902b3352d12e3162219
MD5 02ea19037f9527bad1f755c8ae762f2b
BLAKE2b-256 f3258efd4bdbc239c0f95a0988006ddfcca5dea57db4e54b59d2ecc597fbc1a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 671c61f90ced51246a262572ae7462cd09dacd52dd4d18fa3fba394d9abf5fee
MD5 eaa59cd0b6b10025eecb75f44418a11a
BLAKE2b-256 8c785908d04eb79921518910a3ecc0a8810196244aec9f9ab68ed29114b61d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 72dbab882a473bdc11d63ce99c93d3e0def37c7227e8c177c6416dbf9191a350
MD5 7a7c61b46751a80432185c25549ce255
BLAKE2b-256 2e5c04fe9b13de84f8318b3d4aa0bfa00f3b98c93b65e93977f87b6c627278ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 750664a099f8e5dc97c4ecdd9c32ba004025099502956c4e1e859a3edb46384f
MD5 1b8fc7995e2d39e71491eaf262f576cc
BLAKE2b-256 d2b356ecf71dbb1757a2bccf0ccfb67c05a8c8ddb818ec5598ceef3135c15298

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.612-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.612-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c81ce9f53e3da7170abce949299d7afff946d90f8817c49244f3b7719c0df77
MD5 64ac4907697d9a86d79d59ff6d77df74
BLAKE2b-256 abdfe12fdad2316a95ab246e6bd5ac54169cc4293dc4fc4f5563f14b3301a6cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ac1335ec2b5a60f7dcd7e06e57b92c5f13ef3dc1c32ad3fcc6ba61177499261
MD5 3a62e31c2e73a24ad05f71bfb0916a5b
BLAKE2b-256 c4aca8e5755b6bbe20088e6e769243d0199de94b8e5adeaea44feae9d623d5bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 06a70c48e78ae83c8868aa00cae2f9aeec4718e2aa6fe31410ae1c9a37faaa30
MD5 04ccb4f61ee372233e94298c395a49b3
BLAKE2b-256 08a1e42774d3ab5fc19b938f7a30a96344174a3d604338d3d51dd55bb47715be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c63b8c9cfa779c935b4463c1cf2bd3bc191618d81386853e600cd1bb84596d84
MD5 99bede0363a431f6350a332bbfa9bc08
BLAKE2b-256 5988292241e3b56abab16712f1107d5b3865b4817e59c3889dffded5d7908017

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.612-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.612-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ada7186040ce40b00606a3daafa28ac5e423d093f6cd5e1c689d09ac2c4ac58
MD5 d185a590a1290b60d55f24d747a9e1fc
BLAKE2b-256 4d5c5dc359b7e5dbb0ddd47e0f1afc2d96fca91ea6820dad487b6a8b6ef61b63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4168000c461a6346442e958028381319d59ac67affb0fc5b5dc4f76e00ff40a2
MD5 89d64ba782e161a3b8c8d4839e3934ef
BLAKE2b-256 9d09a300ea5caeae1c59e2a7f62dafd94aa789eb9e5fa400c44296543f8690ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6d150139279e514881aa8d41588626720026a330127232e9f6088ecc5169b024
MD5 a658e5934107ce3a58a28b5386096295
BLAKE2b-256 bb2c026a8c474a83d1dbd034b6dc821f16ba23ef0f3da2bdc473ffdc9cf2a917

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6eb75fa22fa40a08297340886bf298182ba9b09366819b5ceea01b660740663
MD5 6e74d3f29b5641a5fb48f8ff12a25228
BLAKE2b-256 640c84272256ee4b1e45e689d3b33ab3f8eb54967534958c0d0ac82d4b8cbe14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.612-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.612-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56fc255e59b2bcfeb52c4fa597131063f9a665b15d58ffa3b0c2143fed0825b2
MD5 aabab443fb543c7d05425bc2c368c1da
BLAKE2b-256 c44cf69c424472bb47d888b701f079ea674b2936e18ef721fec1e1b2a8842967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98a5ecb80b23eeffe373ae60bdb4e51543916e633339543e3ec6e68d38c6e9dc
MD5 e55e8cdb283f5f181eff08d065b35765
BLAKE2b-256 711121b675a85657dd3feb8cc8b1a4384793937b8a887b8d2fc2d46d5357c9ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e041beaa825bb9b76c39173067dc0f1449fb68dee3464d23d1a0d13c5b61fe8c
MD5 8bdab57df37e3c9bb896ec3634702305
BLAKE2b-256 e4503c121b166c957afd6529c0b00e7484d7a97394224b604cdb4836000cdea1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.612-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.612-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f02897ce09f1067d626201f1ec0aba8be9ab22fbe3d78943959ad65e0a44d356
MD5 05f2cb5ba0a86f50af98cbb68c5929b7
BLAKE2b-256 f30d19b4247f4d9b7a579d1488fbda8b70e7bf4692bc0615ac131c32bf413671

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.612-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.612-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 307f697156261e82651f6848e93ba3addfb12e8a09f683a96024da52980ec789
MD5 2ef3056b1fe45c720db0c50863bf468c
BLAKE2b-256 701fc087854d4620c23b813ce66bb6bbaadb134379d95f02b4dc0c2cd0f8ec7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.612-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 391b3039db5f92cb78e0e5590782a17b2d5043f3d0226892b2f242bb93c87349
MD5 0215b46f33e20c45b55f5e59f3c07237
BLAKE2b-256 73be600ae4267a592057fb94d49486a1c5e1acef90592d999df670dd17ba68c8

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