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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.967-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.967-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.967-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6cbe99536f23dc297cf1a7e4d6275781001f38f495cef7e85881d1f97422c7ed
MD5 5c96df6e889d8015bf50d7e0450fa787
BLAKE2b-256 c2aa3e9899c9fe86b57d7cc71ee770efaf885fc70d904f8caddd1e3159b0b786

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ac698fc6b2a755754b87a16f06f1fdf6e635898226d7598c2485ceffbd59f9a5
MD5 16696f17e785f31f0d62df89f075b918
BLAKE2b-256 fccad71e7d96a4672cbe4371f5a016aa837c93ce2c9b6dfc4b2b054391b31a3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.967-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.967-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f640b723110b0e5b709a4756e2390fb62de85c67467a98660de27c60e77d9daf
MD5 e3f6ffc2f9e4812bba0abe8901cf274f
BLAKE2b-256 4e007f7282fde14559982091c2f095c543e90bb9377f4cb0bc1a6a64fc161fb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24b97558b1fc45e3d9d4f6ccc5c69c350c48262a2d518bd608140a9d864b69fb
MD5 17c74dd12faea6f7c9b9fc6ac32279e8
BLAKE2b-256 80d3ff4f043852b2afd34555e3691601d8061b2a786ea22160ec7af78601e7bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49e50953e62677c988e8586994b7dd9169275d78cbd8725fbb4b5b3a46e5f20d
MD5 1e75c392a9e704b9785f331fb1f3ed43
BLAKE2b-256 624e3111816df755aada737dc2c70261d6426f3bf8dd0a83c7ff3044d17da899

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cf08fb901ee599c63e56ac2f3e87f887743b5bbebd7ba57d6f6ffaad07ddae2a
MD5 257b4dad3ddd37c3fa3c14e7cd27f1ca
BLAKE2b-256 504fefa66482b8bf91aaf054849c467c1752621fb5908fdb64a7524b2228df7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.967-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.967-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2fe33b9ae729863be73e193e13058d924b87468f1787f968ceb297544836257
MD5 dfedd64927237c95a62371ada5ead291
BLAKE2b-256 6c8492ceeb5e5a1eba62ba1a77596cf16ac74117621f00cfb73dc262675490eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac99c6c6ee5d1593b7c2165bde4a2b5718a9c80160926b3fccf2b5ce5e012a02
MD5 7bc8c8d27ef11d070958ba9dcca56526
BLAKE2b-256 62e1b5077f1eb10053b2343963842e7ff0eb32b032e8adf27ebf7d2059314a52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 acfe867219970fb55e292521c7d181d1753bf48ec77461899b3a73213b2b7e03
MD5 a291836185622321e5fed1dce2804990
BLAKE2b-256 906fdbb42aadb0fbd354097b417d73e64b331ea47c0a7e877022fde1b886d831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a9236d398fdf73cc58d24cccb6cdb33da8e2fe99c7223a9c9ae7f8d723475f8a
MD5 6bc4afc847d72d769cdbf8e85c575eb9
BLAKE2b-256 abd8d14211c117b716247da553e57ff0017a359a6c782eb37bef840c1ece2c25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.967-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.967-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90bc62349c2698c71a8ac252ade5268c9e653d4e197c1173ab663da23d454040
MD5 329c4776a1854728097f7e1aa917a34d
BLAKE2b-256 c35fb5c0be8fc765e8180a893c6c3127cff0f757d2d94e06d28010ae8b390bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5c4da73192de55e9736204520d583880e2e354a6a5a1f9addaee086a8a7b6f2
MD5 2147aa8a0567785bd7d01d7b0e72173e
BLAKE2b-256 684463cb85de93908ccd53a12850cb253943ec53f2dd7412a3fa8905a85f021a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 265fb59f24996eec38b3b880ac4926e30b1179e94749d35bb95ee856177edbca
MD5 6b20186fc75b65aff6baa908deafe613
BLAKE2b-256 d01e937e5077f8a642c9fd1fd60d0254e6553b91745c2f157948d4ea9e336a9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dd9ff866a14068364db7ccd6ba03495068ecff524b135a1d7832348732e827c8
MD5 af0fa2f962639da6068cff66cd1ed62c
BLAKE2b-256 f658373753b6fcb5df5d39df56b533554aa7403413566d087b5b2b85c2ad3704

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.967-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.967-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a06a598db7dccce3d6a0398e8da60b207ddddc6b9033d1908b6f1cb1b4b8de2
MD5 67b1df5e06963b260eb3988bbbf32b44
BLAKE2b-256 0111c44c3b2d7a8a05bf38642e3aa60de1a75fb2feb424b7d3eb2a61a71f3899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb87966434d49d6257688f3cc4f0b7b014fcc5b5bcccf52b11c45e3664bd9b18
MD5 fa0675b3e9eac89c410894e642626e81
BLAKE2b-256 7485c02867e0ef49d6109d3ecc2b6f34d6baaf88899e3caed076a398cd83c14e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fcb2487d418db89cafa36ff41fec76c8f441c3a8c566a4e40ffc35727f19c643
MD5 116c9f214bb88765abc89f3f5bfe0004
BLAKE2b-256 ccdbf9588bfcf8fa8e0fe3317d70ad16589582b03f158ba65e5062711ac044d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.967-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.967-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 abe6e7be890b295065207fded3bc2ff740d89660feb04012faf37b034b5d0f78
MD5 140e35e9089c2ecf57ca61dd807e606d
BLAKE2b-256 83a42c96a74936bfb6373e79522b024f3a8fb08e53ec33147325246426cf9880

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.967-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.967-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe80ba8124568449f6264390be24952f42bb6540044d441368b903d103ab734d
MD5 7613be1dc64bea0e4c584bf02d364769
BLAKE2b-256 cbc31bf983aff0bf2ed41360d9578e9d9e82db7439d3839902649483c1e410bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.967-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2081949a4ff20da5dbd00c031cbc8b36406c546ff2b8bebb71bc1cef8077a50a
MD5 69c7a74f5ace737b21a486ecfa179b53
BLAKE2b-256 7bb816cbede9e8f9e3ba1fc6c4bb079f4b64aed8e08c68e960e34171acd73475

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