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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.430-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.430-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.430-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a215654add030c0d4a960b55148a186c3c88a20f60f72eb2e93270829dca757d
MD5 3a47ce552134d0d9fe9867d158651ddb
BLAKE2b-256 2743a71ce2131b5a1090716610f860e86733901a6adc3d9fc8a3cf20995cd0a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bbd1583b9e73f71ed3e1d9f0a66ea274cd15d7e178314e6aecfc22946fed9c3c
MD5 44c78146ce11c9dff767ae2a0cfda1fb
BLAKE2b-256 fad3843d46529ae35372093fb9644d655d32dfb45542b0d3d56fd778870d6ea1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.430-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.430-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88681ec3c84fdcfa7ede2e77fcda619ccf86c5b2705ddf31f0109019e0ebe9b8
MD5 185aafffa078dcbebcdda29f0ec7288c
BLAKE2b-256 add6a49b4e2d9d55a6cc0d3eef131a43bdecce190d47c9bcbb4e02f6716615e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 184d79b01c9edda4750d5ee0f322965a37501ee76170b2977ef019c82373dde0
MD5 9db77beee5b3cdea9e6ff3a02fa3bcb1
BLAKE2b-256 113c9b2cf2b90b125b2fac800dbe8153142b748c1c8d619f5a4769bfbc505799

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c55743683e34b7e25f1ed22348610d60a94864aa07bcd7e6dee6c1d07cb56504
MD5 c64c73765e49ec599f03e0eed350258f
BLAKE2b-256 05122aa6f54b523e2b68b17a1a3e3dd9de0cdc8841ebdee561a0e7b681d60ab8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8f8cc1271d404332b3998a2226ddcc74b95a4c1d27ca1affb72b78ba457b2006
MD5 76058ef8e4f9b3f6bacd6d80da37d666
BLAKE2b-256 439c6626d0775e5a552cdb947fbf472d2abf031e1848d4a1b7500d3ccf4dfdae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.430-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.430-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f6b0785ec32790db5bd17ff8b1e79afcd37e73bda7bba9a76c3419ab2fdea03
MD5 70dfba44601f955192f12d20a6b4ef3f
BLAKE2b-256 6749a691455b38525a844ef5a113dc19401e8ec52cfdd774614cfc98e1eabba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f420ba702e0666302854b02e05e25c5b6b126a2d36993e87ff91fcbd53a32774
MD5 742eb8e488958055636b3ccc3debd7f4
BLAKE2b-256 5ec030846d6bdffae9f9b94a5fafb9ac3dd29c3248a6bb8655faabbea4455964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1082704d8fb35588065287bd78b26533a48ffff16878124e67235b5b453f85f3
MD5 b343af6485b2cd65520d9beabd7a1ced
BLAKE2b-256 7104072ab53cb87f95b8803756f16f2502f3c2c72e481c2f13e784dd5b644674

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c72df694d8c0db89fb734f1544933c548b2aa376b0149071b794beaff3756878
MD5 34adabd829d72f7593fe1c9fb6f55165
BLAKE2b-256 2402c148ace5311739d821e17190063c55d4e72a29c69d4c73e32fbd6fb48023

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.430-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.430-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0e6d1cde1409fbb44aaf6175eecdec2e96680088674d5a83467114b49b2b8ae8
MD5 c627f5803eb40dc34c57014f2a1836ff
BLAKE2b-256 d1493c7fecd401709a65707a2a5a53defcf80c5d1102dbf7fe006a2002c803b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 928ae98541dc2d26748cceba8cf8d46959ff951f252c6987562ce34333cf4531
MD5 ca83a73dd04bebf37c1cff4f8339be35
BLAKE2b-256 1f6be959d558461ad1b2c0cd2a596c1ff0b1b0266434500c56404af5b360ffd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d41629afdcd9956f19d3d749e9106d6c49d04f5deaa623100dbec41f5ebd5bbe
MD5 a5261a68885c37285a505f1af78fcb5d
BLAKE2b-256 0e06daa05809bfcb270bb066bb3ac417d2323d6b8021ef208a199ffd8f7f3249

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a9a07fa56a1011828dc1aeb5c083d761cdd2cafd74542ec59365c3ae0633ca06
MD5 0ea96cd1d639bf956d01fba46c1bd4f1
BLAKE2b-256 e913f20f3793ab3c0600e3e9af7b99b5ac9b38314a7c486169be3ea8e154f1cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.430-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.430-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3febf4bd434f62edc862718e0d6693468eaa46d2048ae0fc7adb665237cb4cc3
MD5 d3972eb9a593572d8e6862f70cc70ef9
BLAKE2b-256 6bb1c609a9b8efa6bb26ea965d20ecfc1595e40310ab16168819e45d6b5ec21d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d4ee73be7d284f83027db6ef6a276120920af83a98995e0fd5494708249bcec
MD5 433b8974ddb99c43567eec8977d04c0b
BLAKE2b-256 1f12a2e0094abc366520f7445e2770ff464a2e0c3b784dbaefabf9133c0baa36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 950bf32531469720a9ea72fcaa4f76db11496effcd1973f0f3c14909e4932b9d
MD5 1cb6819d09c07de63a06fdc4d196007d
BLAKE2b-256 b4e343790271b2ac055782b586b351f6bfbdea721fa1fbefc47c9c921f1fa1b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.430-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.430-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a1ed98f1e33f84419e191e7a48eb3795313ee8eb5ebec109b66c70961d5d0883
MD5 273a72ec9cd1e0af46498cf605968559
BLAKE2b-256 d0d853b0f5a40588d176110595cbd9998b4ef563a6863ad75178e30860666eb3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.430-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.430-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 717b72748cc97ccea69ba5104a5bc1033aea1cea2b2c2715dc384233966f2f90
MD5 de977dd3ed03e04226a66a85cea1e919
BLAKE2b-256 c06507d133bdff98798c8661353f19111c657d1567f16fd96514587b150f58dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.430-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da744914c91e9e55cb6542246e72b5ab439047bf369ebc1a76956d5f6c9786b2
MD5 05acf972394e95864e009b76f46db4c5
BLAKE2b-256 2d7b3cdb54c43f65bd1f33f777040a433f78d67b4d97910e40aed61ab65bf3fa

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