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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.897-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.897-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.897-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aafbd6047f517e9e1e79738dadcbd6f1930a722ba63825d5fa34317c6c30be34
MD5 46fecb494b9931a2172de90f9089ee00
BLAKE2b-256 cf75380cc719442fc67d546b6b661e0e635c0cbbbff17ad42fb57f1213cdc09a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3e8956a5de248d8cca6d0f15d58c7449d34751299431fbf4e5ae7b4f932fed9a
MD5 615151a7fa3d6424767185b85a6ec6a9
BLAKE2b-256 32bb63948c25feb36245464bdc008d1903b05dd4f7594e676fb0a8fa9a9cf742

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.897-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.897-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2872a99bc10910e49f86cc8c268095031af764b2a03b0e30fd374d8159389104
MD5 550aabb29455f6d7bc6c5e97a18bd6f3
BLAKE2b-256 c497416ccd9b22afaa321785d1dd483e1478813fa9cbe933bf4300d4d9e994ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e006e0b8c1c764bc365642f847acb7aeabddb5a592f6f36195459e6903180fd7
MD5 29aae6f439dce44c45d8e98be5bd7abd
BLAKE2b-256 874f3b9ce61229437acb23fe5ba9850f985020479c18011d305488f5c8b7dc0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 599bf6cc34d82ac6facf3bc05427b709794bd8a8a319b032976ded8960759e36
MD5 39f04343e5b62c6d0d8944ca5eb80336
BLAKE2b-256 0070534bac6e6e3e5743c033e710288572bed97f51707136710043d43b00c763

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5e28e8badef9188ae4931a3bd0abf3a9b23a643b0a96821c03e7a2e1fe2a9c99
MD5 3232f3b2819d470c32cdafc207fbc246
BLAKE2b-256 36af711a202dbba61edfd3ca019e37e7db192abb9517bc3b0f686af02a74752e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.897-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.897-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf5c41250aab50b64dd5e3776adeeb85eeb71d13fc64477f81d8f888125d0016
MD5 6b72d3087b08b11d170078d6e3d162c8
BLAKE2b-256 cb39b280dfc992974f864d5320bcb18803ea6a9a448396d825a675c28806ac74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7546d8d6ac21af2c226100fb57ded52902c2b360b7e18ef27e6656cb8efc549a
MD5 756e899ebb70899294925839218bd579
BLAKE2b-256 7ad909bb39b14bf7a0ec7fa7c3f8047827556ebe511859b7cc8464dcf75d2237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a52a065a9052c9e6c562ae408ea669abcd2d8899a0f50c2a37c73723e1e378f1
MD5 fd5bcfb0e81353030bedc1adb972d725
BLAKE2b-256 5d827d2cf135a4553105851ed9085e429a5c668cf837b0d0d93becce9c66dd71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 94509817cb67090b0207bbdae66fd7121db795bd98f38dcd173b218d101235bf
MD5 d2882a4ff45168fed665fbf25d45d2c6
BLAKE2b-256 68a8f23e98a7d01b0bc4940db5e31019871ca5b2ced764f8396f1e54ecb0e6f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.897-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.897-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ed42d08ac366d11d96c5863aea7892a712d3bc68f866248165a37b32b187f80
MD5 20a9049cef6a541a75d5af91af2bd7d5
BLAKE2b-256 33cccc2b7546f6691ef3741726874bc4029738968f39378cfa25cbdfb6eca9c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f0c3ff1cf3be2a4aa3590975ec633dbc5857e4fb2fe95374f11056c86e7e25f
MD5 8135d46463f7be0a2807e9254a77dd03
BLAKE2b-256 04edfb47cb3755ea3d9019f1857c6444964bed4d6254c4cc0790014acc90c2de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 469537637c9233010e236937d73f7202f489efb594eacbf6ac91725c1d5bb49e
MD5 3e98d5f44e97e26c471b4e9a85c25a6e
BLAKE2b-256 1fef3885087756b0e9fe83b0bb9c30e188c5d429c7e31ec2720d3d535e3f252f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e9d88047672e280487f03c6129a0cc6309ac1475bf1cf94e301c4061fcf6819f
MD5 def9bb5801cc3919b4394f2f429ab8dd
BLAKE2b-256 67f371ad071dc9c6b4f1da4bdcdd070d3401d5056bf8de6e8587c9fb84815d0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.897-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.897-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ec36dfb786671174073cc2eae6b20a2f56255bb688fe42a379dfc5ac01f27f9
MD5 b4cf44ded5a64e5d6d5728d9b86031cc
BLAKE2b-256 9b4bcb03f2ab995c0c7ffaabea8daa5bad3e3912f117dc49e1e00ee2d005bb86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9d16daf3b2b32f20823b7b3dd1610f6a292639962a2752434744ba1d3102cbb
MD5 46b7fd1680d08b4f275c15e0e803c046
BLAKE2b-256 cdfc8a029b3070b8ab5978c72ebdbc7e7be57e76bcd61b63b0b853e47dbdb179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8045186ca95fad54dcc63205ac419404220ca7c4c814f4c42fba35d2b6d360c7
MD5 88330121a07579a75af5ba430b6cdfc3
BLAKE2b-256 027541f7768280480ec5a8f109cd69e4987e3a3c7e67173e4541d52505c535cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.897-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.897-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 06e7a4c5b15f791c561cb3697c300129b9e1e432868189fdee0def418556f017
MD5 a6ce6575b32c39ab82cfb342130f2d34
BLAKE2b-256 3abf67318d68f0f948934f310f6963f40867315ecc0949ec9b377ad705afc072

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.897-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.897-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1675cffe464b4c9a97f7f997da90dbd11ac3d8a35532431588f62b2267f55be4
MD5 96703dfde0bf93cdce68eca02f8abecc
BLAKE2b-256 a8f69df1cf31fbf2b14d474b51d54bc2441eb70d814449e5f39b86a9c3bc9426

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.897-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7c37f25f629bc1bf89817713fb638af0d86302e1313a46fbd1203e3d90a8a6c
MD5 e8741345e0f91db901e13ceb7433aab9
BLAKE2b-256 8efe419778191aae038c9d547c91bf63737fd36c9934c9d224a934b842ae45f3

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