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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.888-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.888-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.888-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 55b642d01cd693c27dac290b6bde09e813c19c9a81ec128ab2bb114360c93ac5
MD5 34e680ee84ad25804fb1ea4a251dd5cb
BLAKE2b-256 6d2981d88cf20452ff37362a3cd49296db4d8c41f21eff7913701e1e09865fb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8b2133be86a54aec42b6a1185ca38d94fe01aee15ab02bcc472f29dc7b8f4df
MD5 d777a7c3f15eee637a9e8f1d227bf6fe
BLAKE2b-256 b1c10a59148ba8ce74762d20455983ee9be7af81d75a0a8d3886f219034247b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.888-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.888-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7f799617346df6bf6048e92abc7eb4f54af2eccad5117bbfecfdfb88dd4ac3c
MD5 e82344a7bd9719a6e9d45f0cbdf7a9ae
BLAKE2b-256 be1770b65b7e8439b0faaabd7d935ae2ff7d56ccc4bf060b7d2d7e41197cba83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afbf58a732fd50dcccd700434f4f63aff69c5c317cd4ae8fef75f7cb346baad4
MD5 d8d76b3f78d2ded4671385f63943ae8d
BLAKE2b-256 a08723c4d1fa7d9cf11daf5b2f76efbbd90dabadac9287c8e6e97e6aac835299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5dde375e12e952bdefb9ecc7767836925ed2d10be03f51836fcfe54721f371b3
MD5 fd9fda0102e676cf2298ecdf5db439b2
BLAKE2b-256 efc273593695a0fda0f0145f7daab1a4c5e39f21c6b405a927c887c5c64af342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d0da3a5834da31c76fd8443eb634183e4addb9e05ac3056d75b077cbff4c014e
MD5 322c74a9327ef7373c35820e82a6447b
BLAKE2b-256 d963f201622d032d8cfa48b28ce82f994944b31ed963944bfe0353cc6ec42023

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.888-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.888-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 068be899b46b0ff08a8bbdd1ede3162078f490a57f12d0d58bdbdcc73ba2e943
MD5 16219ab2d04b6ec57caa9ad99bf6665a
BLAKE2b-256 ee562474abacab0d61bcfab71591136183f6adfff91cd7a9c367336da83b2fa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d4d8a011dbf356cd76f8dbf3cb864fe1416edf69b1aef8e9a22680698a10e2e
MD5 82ce95dc73c0fab757412224dd3d2a0e
BLAKE2b-256 958bdd3559749a51cd9475ca267ddc684fce6a6414112fa9517ab443c4855a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 861c95a80b9ad3b7dc8c90c4d1d45c555495ca5a55c1e09e06852d91eae2bb8f
MD5 0a77f71ee31f69647212ca0d6a62d733
BLAKE2b-256 e347db1ec82527064c218e2b8be6e12483b53c8b9022d0238f2d216c44ae4581

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fe17e4704cbbe43c788ae6060202cd9e4af51dd845b5f8c16f6a188ec258caed
MD5 f1fab2100efe459ab8f83105bf8b151e
BLAKE2b-256 fef0cdec12abfaf529953c8f06e57f6fa7840d15c0ea4efe9a064b6cf6203296

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.888-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.888-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad7fd8653e14db14937fb8228b69fe0b0ce2603e36961bbde0bad3abcc109d2d
MD5 77aa5cf76c8cc3576e7152528b3570bf
BLAKE2b-256 c9df1c82e8d8526d72533bd266c81ec96154eff135d33d71f1372429e0092fcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c69556d5316722235415b232725c38c32c154207850a578391cfd9c73551ffa
MD5 7647466ed458fcd048dff46bd39a0a1b
BLAKE2b-256 2233f3481c34008e9dca383145e2d92ce6a7887f1f42135979bd09a43de8b11b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4680c2071f9e60de93082a58301474b779abfc14c7c904583fe250b6088c6dc8
MD5 48e92f634b95433f246416cacf4d6dc5
BLAKE2b-256 795763d6101a5647a49434ee850c5f1097aabd2fd548cd318bd2ade7b5ce4126

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b9e7601ef8359690e36f5640ce96b61b1a32b0207e90e373371bf6577174bea8
MD5 4716b5be5d4bec9770db9890c914fecb
BLAKE2b-256 838e5139201cbc5bfccb1ee65dd2e650b0b71facb65dc3c8f86baa94ae40b04d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.888-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.888-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4dc8a2188ae108b791347cc45a1bf4974951bfb5b797b685ba3eadb5444b219
MD5 d4abdda64a2cefdc5131e79647e7e046
BLAKE2b-256 90d5c1958e0f4caf91308ef02bf4dce02fe1634722b0446f32caa299811245ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e08b568978ab83d7594c3c58da5a949c4d4523da4fdc81c1e49c9fa354968d2d
MD5 30ad8598d293d079cfbe406a93e90a1e
BLAKE2b-256 d68d89f2a47e399cccacae10bf7c669c11ecef6a1e42618dfbe1eb9f27a80143

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 94655afdbcb6714e87f2b37b8ab1825dfd49591f754f39178e95c57a19405a52
MD5 749bf10628ffbe8c052d684db7403562
BLAKE2b-256 47093b27065e0f9a99831ff949636a97c0442d635ab38235cff80e0f5471b079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.888-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.888-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c30adb57c105f30447df0d0124bbeb17382fdccfe912baefc4b5621380533e4e
MD5 8729bd4147bc88a126e7c2ed228e89d5
BLAKE2b-256 9c969b8b7fef13fa61a4dfa11ce4ebfaad2a6c50795565be7185021498f14ee3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.888-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.888-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa69e61f810479d20cd20794b1c6ce8f0753fea843665db947b8fab04d8a311a
MD5 fa39d7d8e4316d228e8b3973ed549977
BLAKE2b-256 a8a6c7cf75fafd981a09f0082bf04cc0f20f3f2267b7c4f4c0b781bd9eb4799c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.888-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acc5d2bcc088755ae822845aff2319fd24de880c21d47787e37f76041cdd542c
MD5 f8fa772ccdeb58cfe4980e3969bdf4ed
BLAKE2b-256 b89198907e37d6027f05ddd5f30b03201e07cb8ee5bc55873592b78e116fc88b

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