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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.495-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.495-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.495-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 219dd6020cfbc5dbe99f30ec90a5397fe57104e8e2f2799ddab4b9c0d8489341
MD5 8b0af488fb7188de2558eca43dd6dff8
BLAKE2b-256 f7b11439917cf2b6c9690c1745f1f344af63bdd29697565131299b336ce70329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 38478c40e28e59489efe3c50f94399431995bb0ddd13bd02e093a84afd1d74f9
MD5 c0772b06fee82595e983f708b2e24a0f
BLAKE2b-256 9e8e7db4a6bc7226f1d55207be32d933645f0571b5bd9d9f0dfc3d020553094a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.495-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.495-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3097f3a0947d1654c339c637f88bc4c21a6e2e35c42c078e2d89421a9919921
MD5 628f5c4a1ce07703094ca652927500cb
BLAKE2b-256 d39c96ef088e72868131c2e9e0708520f2c649c1acc1408698df17bfad3e7e53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31d2253dacb6dced0667b9ba84281e7c0bdc5a2d8ed3a5553e6fefe8137e1c25
MD5 eae131003c46ae35b90836468c540163
BLAKE2b-256 cc048d92da7adc09e0bdf521359195ce827fdd531cf4e7df3526a88a649d71ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 945187269d07c9de5e7c0caed40b3ebf614f09f6d6b48b583d0abbf1a86f5175
MD5 e2c64cb5e7f38fd42a6f33784f33319c
BLAKE2b-256 5791dad3d0c2ec1b1e1acddc3e9b12b31fb3fedf1abe839d79c2239f1ca8f40a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ddac0816ba8957869e57a14234fdb356c919b8730161aa192ade4d65e21c1616
MD5 14a9dba38260eae85445a64db611f765
BLAKE2b-256 66dcd03823a163cff910a414aad7ed733780c08f11fda103066f894f87fc59c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.495-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.495-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bda63e0f998fc4a9a89791183f295392f419fa5621f9fa08a7077d0763804a7a
MD5 97d57264db4d135d439dfca0be12a0ce
BLAKE2b-256 c86d4fb537046a6bac50d76119ce1e17bd83a4469f6b78cc2b4ab4e71e28c3e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bc06b919b654436cb5698be858a2a89b1a40016be6438235bb339fdc6e9ef31
MD5 c4d3f4db124e9b02464400e7c5f06b5f
BLAKE2b-256 270289ff8dc2e5db56206bf1d1cb57077ee719dc9c2baed9bc54ae5b1540b8c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f60815160bf87eec74ba55d876b910773e32d8802562257878ea4020388d3342
MD5 47cbdd38238f9757bc2ca7b1f21e94a8
BLAKE2b-256 e45e108e2d8e1b6a75d85d8959790470fc85049ae3a84e4a1bf0b6414a82f21e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2512058fb928df36bd789333d8136122a9c438a4198480eb95766691118e4666
MD5 f937931b812866062e34ed7af1d62433
BLAKE2b-256 252bc155166b1639fb1a772ea3178c2f30103a1ce82e0b65d30213e99ce070e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.495-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.495-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d399c0790be293b173eb66de4ca2c4e2f79ded4fd53b063e731211731e3dd59b
MD5 c305ba73536ad11df748f579c0f82d0e
BLAKE2b-256 af4989f41ef9080c35efed8775bd0d2da5a2b8bc029057f2b2024e7ceb14c86f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bdebbc471ae7c6a7ee049123efffa6da8edef2b021c427002632dbf125d8f42
MD5 86545c204846ebc43656105e74d6a281
BLAKE2b-256 a4439809714ff35968f5bac207b5e92c1adba308c625456bbd0ad6275d980e96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 602c44b25d7cca878b58c5a2e5a380e02221992323c662d3de069294360a634d
MD5 95ad10155f04e7a0443bcee077ae0ab9
BLAKE2b-256 5300e585f0bfcc38b1f4f5b8c0cd8f907ff382d5569e72a678431f4a05c2fc1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 59e0c07bb2f6ecf1428ca7d094338bbacfb335b65c2f01648ced0ef7c1a24cfd
MD5 1b9ede76ed8b0fc0100a0711a8d7f417
BLAKE2b-256 1f4bf576603463e0a247e53386d341e1edc642349e0f1788cb076ca8bea43621

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.495-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.495-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 266081c0e99f9d399fab7d28906d7a731cfb927604794c3fb680f59601a88825
MD5 82c3cbe4b50a4306b019fba15f204701
BLAKE2b-256 06b55fb712b2d6accca039c659d4f40cbc161b8737765867216acf00d63b1fdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e459a60b523e6549ee6d55311df9f9206273870859c5b4e5e4c9bdb1a4f84155
MD5 6dddea95349cf08cb927e3abb29ff62a
BLAKE2b-256 bb41c42b8ffa8e876010c6eccc27e1f3c5356cefdcf6e2b3ea3cc88561875f52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3969e860db8bbe0b7ef25a2874a1598304d5ecb95fd11cac2222787cdf645be1
MD5 e45c0febe50ee8954cd5b8beb8471b94
BLAKE2b-256 3a760cf5ab3ca178d6773654b9740a68ea7537da478047724aed1d093f045591

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.495-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.495-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e2ee2b31f44d4d87cd5122e5e7156b0e8f959126645fd2bced3de92e6ef5bdd8
MD5 be9162e8db5988601cf3ede850d9424f
BLAKE2b-256 ca7db34083ed84bcbbba211690b26555d52f7f49e53c861c46ee02c1e5fbbc89

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.495-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.495-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31ca7a922310c44c365b348c8da2723fad4ee2ea4a323d2fa1845f40c33a5315
MD5 1b666f74a2472016c484a10ed1ba891c
BLAKE2b-256 202cb968c9d9ec42906aea48d8a3f185c7fe048cf0c940300f9ed93134eb69dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.495-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75f7a4b652644f65d6ea37029a83d7781f15990063bf12eee789b41e6d7cd73b
MD5 4e86c49c250bd6246020e3591d424b61
BLAKE2b-256 194739f8301f726626fa5a793508d3091c3faeb2f8932b27a8157986b56513d3

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