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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.784-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.784-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.784-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 777bfb2a682661b887a1c3f78288e5406a0f3db5100f75d8a428549af9b2ad27
MD5 ca943706513598f0b9e3cd19b1302978
BLAKE2b-256 689a1b53b7516647f958226a2da573ab07480a4de2cd572d3f1a051544f790ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b7ca76de9e02222ef2be73af8f94d5c46b3c6da53cf10d8a3f56dc5f291d4c8b
MD5 dbdc366cc461cd67879c3722028ebd94
BLAKE2b-256 a1ff6ec098eb0ab542ea46d77065d3e043678912a8602daa1b5c85f011fca78a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.784-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.784-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ef2f22d57831587433dc0f7e8455cb8a7b204824e4d282f116e1b2a2d7c0088
MD5 950589f5f627fdec62c9e36bff86a87f
BLAKE2b-256 7e8c98357a9043c956855d53d8defbea05ede4bb8d89fe38767f14f14604d2e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a30ea6d50df8e2386e06ce4955564964bfa067712b8311513dc1c3c7ec9e1d1
MD5 d92028d816c7b0f718d9ec02bd27fb01
BLAKE2b-256 f355df508ca825420e687746f52e74b6ef175fde4a2e2dadef57a632af0d0516

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 290956ffa02692377c432a1ef22fdf8581a305c037d805197f22a9db5fe0acfa
MD5 0b5ab79eeb2910e615e2a12ccb039424
BLAKE2b-256 c22647603edfef7eb447ba9a11f5909cd46c659a47de6173ca869faf9b0d82f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8a55d12d153807632a978d576347b86a03b5c9d3f68042dd9b53802584aed8d6
MD5 e2148c0f4d528f850bcdab5d2fb6c34b
BLAKE2b-256 03245783dea77a268da97edd841ece997bddb9fa5db03ee84fdb125693287798

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.784-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.784-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6743384f91a8c808dbd6e00d87102aadb48b1b182dd12b22c3e795e2e7b988f8
MD5 173166b20e7110624761da186421114f
BLAKE2b-256 b8ea004781796953dc470bb478cf67ba01b83a07a2fc69c87dcd1b672d7b96e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5db32a3d9fdc21e167e7b1fccec20251a675a4af85a8089992db43d1117a7a96
MD5 6ecb576fedf1e1f693d83f351855197c
BLAKE2b-256 84ea5a0fa1580bf293cd4aba78f70d2c05e4751579455dc67ee092a8add4a2b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8cefae7ab4fa48db8d056c2d78931eb004a4aa727383e88f0c23e5b025ec317f
MD5 c1018f743090f7b36ca170982a72ec70
BLAKE2b-256 f00f5d85b3c55dd963ec95757489662c3b1a709e264be8d73364cfa79dd8af99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c9266d0f8997f230a9b01debc55fcf0b7357b1e4cb98e1c2764232d22280317c
MD5 63cf84f9d2e14a2866197f6aa2f60038
BLAKE2b-256 20a7b35010aa675b3f1a28cafad90bdfd1e2ade291f8cb8d60914de26800eff7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.784-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.784-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 423bfaf2f671a75e09e611355a0e201d96dccd4a0af3dcc53c1a09ca7d4448a5
MD5 6b5e81653326884be655ce0253abd544
BLAKE2b-256 170c45af61ee1b745597e653c5d7375632e29388b4d2c94e35e65ac391544de2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4423e55d13459792673be6da06e0ca775e9107b281c289498525f128447e9dd7
MD5 62505311d64119bf78852bb52ba3639f
BLAKE2b-256 92465d3a2e631aa0723d77e39237005b84987ccb57e3ca14e212f64647f3e182

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 08b9fa055fd1f2c8582b4fd4819a8b8f0b8b6e65b9525d3ae139118008301d1b
MD5 a85bf4ba573b8c0808f51a399d24d17e
BLAKE2b-256 5e58059c820e2dc4efff6b8f1de1889a36a58613ec50e7b7bf6cdfc7c22b2f23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dbca34b25b0118e8e2c75e3c1b48beeadb9a44db5ae2f72ac4c987361c741b96
MD5 feea25b45e00f25fdb454373d4965020
BLAKE2b-256 541f083e94a88228ab539e8834d0ad40638371837b8bbb6f72e6d95cedc842c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.784-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.784-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0258075518995319aa12ceada159196fc6a42afac1a2d73d139e5a359eacc960
MD5 93a14583b1ba9dd68840968ee11954c1
BLAKE2b-256 e9c303b918663fa65ca98c9229f30c9a6aab082797a1c03e83643bddd4eba2be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 518fb28a60fd797d97ddca40056b172b4fc8ea5fae2397120af389f6509203a3
MD5 0115a08840604473a7faee4a3b97becf
BLAKE2b-256 24f52c769a6976f28511ef7c60a6d35a867957e9e514999901503d6f339635d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6ff761a30deef7336c4b381e6a4d679a4967e15e559eba973f49c5f18e28fbcd
MD5 4b6648a371010f76d1337bcbbe916163
BLAKE2b-256 05caa11fdd748131d71f147312d9e3efb123ddb193ce9f8a9d071de15dcd1655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.784-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.784-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c021ab4078ab1282cc0a3c759bf44e777f69b971a805f7a91f15efc7ec3b9699
MD5 23f8e95d78452a83893eb3f46e94eb32
BLAKE2b-256 e7618d22bf2992e008de947be52afc3ea6eb5e09caed10e00c70f7c7e45bcd99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.784-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.784-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec6170b0554fe6bad3b5683b7986627dc70f3842d8b18f760fe8d752580e9b46
MD5 d5a4aa7cd5d769638a72be09adbf78e0
BLAKE2b-256 6f9f176d079cda97872c05c53549f2a56ead736ac6aea8a1564116c4fb580c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.784-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98648d6bd2fdd6217c56f66be80dfd8d720a38832f6ff25f86bb2b5ecd4eab77
MD5 cf7cacd9fd746a6ec4cb9402910fc445
BLAKE2b-256 d947a3f179db3ba3425eab72a933405cb86c8390cbce90835023dac85beec1ec

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