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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.318-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.318-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.318-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 30ffde7ef26da7f92562e57cc4cfc56a3c41cecc0e06217cd1f304bcedee5e16
MD5 55f20431b83867f7989d75d4aa72e5be
BLAKE2b-256 5867b1c63bf4871f67ff65593ff9e682c842076cd2fd6ce78cac6f223c673813

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1a21e6e1e62d440a29dec35d06031bd28d774135ce9f7de6c38d365aa30397ca
MD5 5d429b3527c366ed4bd27e2b906fafe6
BLAKE2b-256 3ab54485188389fed0212ddfa0ce8ef41494f7aa4daa050452c6b6ac648a612e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.318-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.318-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 590da5afb8ca4f4aa9de5f742e7af3b0a12e614aad94f0572d5b1949a658e508
MD5 2058eca90d20631d736b51454410f409
BLAKE2b-256 cafe9a2ccdf6b12f208d440f7f70cab2a6a2825a559c1663feb33d970638ef47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f92c27835dbaa77b6b318cd1420af5037c511e6d43005ccd362eaccfea68879
MD5 f2b9a5b1be4e3204f8dfd401ff9227c5
BLAKE2b-256 88c701ee5b489fd421b961dff84c8867e660f22f3a5ac5260831e70fecdf4702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c23e063027e7991d343e391c263b6faba546a1fe194cd49eac800c1ac1e5970
MD5 984c9227eabb92476498186196c16053
BLAKE2b-256 eb213b6ce699e11228a1be6ea384b2a2f8bf9c4f9f2dcbd91ab2eb38bf1d04e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ab5a8536c78e0d704b528e4820905dbe9cce45fdb2ad7ae3477d6d97fe5fe156
MD5 a77d66608b627ffbd8c5fc40fe5bd086
BLAKE2b-256 01bba5039375f12af1228f98dbff5ac671001052c1612596705624bd3827d9cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.318-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.318-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6cabd7dd272ebc442d17e2c3e151dca22a48143530125ee6ddeb72edcda5357
MD5 c1e39e4e9d1a6767384cdef5f5a4f6e3
BLAKE2b-256 6cd2f0f91a4e48c13d02fcaf87313d970aed0e14a075139c0cf18ec6e4896dff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cccfcd249c3ad8f5a070063931f9e0ce59689dd69a0b031e50b736d4da418838
MD5 c3254a9b80d27458fa2e540a6aa8051a
BLAKE2b-256 e4e1350191fc021306a0f1ffb369f3040a753fae08fd9e9d51c24442fed88549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aabc5fd944b640ffc321caf6bf58082b93ff53ee1f726c635a38ddf1962ed38b
MD5 1e334e041e34b9ff15d199d82df7d148
BLAKE2b-256 8caecde1c53da8ecb71c0bf5f653a50d76671fea6bebf5e3333103784f5fd8b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 77395cd890737efb5721cea5ef5cbae4d66affe684b3ea40af35d53bed17efda
MD5 955d5e15e9d766e852cc3abb4ec5efbb
BLAKE2b-256 65087f36444f5ce5280b2fe081b3a16b667cdced66ef0c81f1c1482236831971

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.318-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.318-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a94218fc147ebe49d5c8937c3b7dc630f1f83adb6a59774679357dceb0e86b8
MD5 8e22b384d187cb01ae1edebc5c876517
BLAKE2b-256 6e54c42f5e6138f1a52b45e206a3a6a19802b3cdda3352d530057ab4272ed750

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 724c3821c864294c872b3451f25b61685c396f2d9ecab746a26843247941604c
MD5 13cd3fa6726e8d23417f12ab7dc9c452
BLAKE2b-256 98017cd71804511734fdf3c52bfb553ea2d5dadd60a3ee232d2efe16da651eb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 28607fcfbf55ea3ebc11d68cde542a476c03a15960c9c4cad87a3a2a267819ba
MD5 59bccb8b76e4ab08818a745caa5a0bfd
BLAKE2b-256 113d459b5b7f273d1975109cb2b51df79631d05eeda212622b548a18915cc72e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a84552bb95ecb948824a5828000133b9011b0c2bca5a85b98c67dc6675f7239f
MD5 b720e66a923e46175fe8146d7f762692
BLAKE2b-256 5a0323c9cab25154c1aced90bc6f742594c66fd484c72cd0ef870fdf3a033e83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.318-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.318-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90f466cab1d07b2eee569124a62a3f7fe27f713e642818568f0bbf987b0df855
MD5 a70ae12a1a8800a61b257e85a9e37534
BLAKE2b-256 8e7fb7717772bccc45280f882995aa1f21076fa973f00aaa0f719ef829b5f616

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7e3ceb58329abb7e1de500171654951747c566320118defdb2b54340dadf045
MD5 1f1c6c231139cec74f9d86e129961273
BLAKE2b-256 1c3c6269fa256ee9bca7deed14324a77b1911d4e233e711b8e39b9bf1b227df2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b69d49e0fcb8dc297526fe5ac73a528298d6283fad5a0e80bc124180793ad257
MD5 0be0e6b42987006aabf16b9d1679b763
BLAKE2b-256 8fe6203ba190b2868573ddc0a37414a1ba627f6ca4a3485afa65bd0c553bbfcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.318-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.318-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f745061a81a42d1ad673531bfbdb25d480950c9700beb3b505d96dbf21e0f0cf
MD5 08bda392085c3248078eb0ec8e4309f8
BLAKE2b-256 c297be2692fc233eb3307f15d63ad0e99aa11fd3dd808d9d0dc8c89551903738

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.318-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.318-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 11cdaecf0e57ea07f3835cf1184334e35e49e9f06fe473a2fdf97d8fed97123e
MD5 e24f214c7e6f78d9f959ac8bd86638d8
BLAKE2b-256 4fba20fcb73f37ca357856d8a5988cae99d91e1630aa2e3fad24457c1baf2013

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.318-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c50f7e1d74e467e63993288e0343af0000a2169d57c5193c0a95f7275152be32
MD5 3883a6f69596baa1caa3bc6cc9e365e5
BLAKE2b-256 0e76452535dcc1fe87921b8f2f342e3102ea521deabc9b7f126291c2d6161e11

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