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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.464-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.464-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.464-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c525697fed40d160408b1396084f3d04934157c9c3ca9c29110d2e2341f4958e
MD5 9f27747ce486483b5290efc58791fd32
BLAKE2b-256 2cf9b2b88c7e6005c7780d50c685f0bc8d47c73e1bb35d1d1cf21ca8379186b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 71f5821e2430b0d27c0a09976d8ecd085ff183929b688ef442f505f609a5543d
MD5 195c35c91ddeebde76e9036cb51219c4
BLAKE2b-256 ef1079fdeaddd379be5cde9992507ad360511e807826700f445d302df24706a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.464-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.464-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54013878b8409194b47ebcb088b38d22ce57057accb06e8f3e9b22af3735fbb8
MD5 bd783a2657a2a2313b7bc42372b91502
BLAKE2b-256 28a09626523dab4dd549b71e06403880c98479f062697d97e0ac57ef24f96286

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb0667436da67bb889268622ee7a78bfcfdaa021addaab8ecd38fb272685962e
MD5 f6ca41ab8dec16b1bb1b6dbc0213135d
BLAKE2b-256 f56df43eabbdb72ef3931943847721ba635f0f80a3812497f546cee6aed8a802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a0d1d7261d9dddfa10ea9d5ca77616bec4aff6c17c810fcddae80b614bac5bc1
MD5 3a959e123558e8ff1f15ea4e3f0bcca5
BLAKE2b-256 8b6fb214b4f53699ca0dea50ddfa1ff4bc6d91472039857a609f8e2607a148ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f23ea272fa65a386f0a3b2cd78f66f5376af88e4ffe8695f6228d2ffcc0c34b8
MD5 068b7556414f54124d0eaa6bec308e50
BLAKE2b-256 553de35d73bec0954ebf94ffeb8b6ee0c4e081ee0ba1bdd7293e8d2bd9a08ab9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.464-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.464-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aedab6a4ea6ac9833bab911ec34f3d84f8e58de6bdf29ab7b543fa5afb72fa4e
MD5 0cf55598bc1289efa9ee5691a9ed1341
BLAKE2b-256 829f766501bbd0e97717e35ae8e0946e55ce952a1874961b117b2979872f50db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce9dc506ddaa6b5a37c67e14606c662499d2adfc5122fb45461f3204539a309b
MD5 48c5780aafa229cc2af6aa9b306d5497
BLAKE2b-256 b175114f54ff2ee5e7fa304b4ef282cb15847a6f7c356c14d5dec60937581a54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f84c73a3f72656d5e1de464379caf7486d645442bbc66535c98664cae40a81c1
MD5 9a16f8aa13d7a9096c7d67c107ae1e90
BLAKE2b-256 08d10feac8be4d922530f45a0a0690d2457b78b4bfcbd5faab198427ee9e3a8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6a361b4769666ddaa254d99add587c51afabc7fb1ace711b5b97571f9d033d5f
MD5 735f99054577bd17d3170dc81a4395f1
BLAKE2b-256 292f957ce1ea996abb112f42d9d2fc37a9878813801551e1bf68872a55728698

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.464-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.464-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3c80c0a5080eee4d24d35e4892a7721f7d4b16b5dc9d1683a3a4cae2a91f83d
MD5 8401ceff03db492d22693d1398b9b748
BLAKE2b-256 c3fccd245a6193174b767bcc81959d9a47297c6fbc9a95d40e295ebe92891345

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc997b696f4054b82ca856e112212be4f6300f71c38ab136c700988c1d849fa5
MD5 54b02399e0a9d7dd2ff9792c87e1f078
BLAKE2b-256 e8a1b7c5aeafda7ed9dcc5d3ace70040593e4367724b68a356a11191cca7ccd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 968a94b04700f8a78508f30f793e3289b00ac913fb62a3391ba35312a2728739
MD5 33476bd7a1b08d7fc2944d33e9f965ed
BLAKE2b-256 b09de8a0a84621f40c0eb5c4824074ebc6a838d4ce42079dfdb1566bd9d559d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 079877525645ddcc8cf3752a89245fd083b45bc7f38457700bd93f1d43d86236
MD5 4522bfbe0a421160abedcd3132747166
BLAKE2b-256 4a38ec7821684d6c82f2e0e0cf527e9237635970d8f1af861fda0134209f4c57

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.464-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.464-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe8e552695034b5d6ba55e2e8a40032a5f8a061194dd3d253bff916abf485d0a
MD5 9546529e27ae4e34f45b933ea00fa071
BLAKE2b-256 e6766e3f57ec64c65780a761e43dc8046b4be40dd0accb4751a611c3ee7a4a6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d959ae56b4ce1ae87552eab559d3b836a805a9cf7c16a77287fe79823e6ca6df
MD5 8640097161dbe9d4afce458219edc2fe
BLAKE2b-256 d85ec000f2695a12e5c374944d7f024f8cc2d58ad3e338fef3d592952857c331

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 26f9d1052d045d4ba2e3842df3061261c0c6c92f0f6ae8f736487b752cbfff3d
MD5 3bc906461a0acbaa243ec4e8612541d6
BLAKE2b-256 ea6e715453bb05154335768099fba19be6ffcd51afc7d4ab6e0871195e582603

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.464-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.464-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6aaeb9517792212b6da95b0d0fe8d108bba1ef79c797d8862701e40bf0ca242e
MD5 e6462d639d20731e1a765a96eab41653
BLAKE2b-256 02640713b45ba39c77d53a63c8bba8a801f3997ec2f2ddf6274e1c6dd82fd9b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.464-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.464-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 674dfc44c31ce4cb9d4c59eec9bf5d6fe934e629b637a27749721cd5aa4d421f
MD5 157ae38a965b6d36e65d2cf0ffdc00df
BLAKE2b-256 1b8d7471165ef120e7562a6fe214b94d66838961c73e5292261b24476f84b3bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.464-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 552c67e335611a9630630e8bde61d2aee0c35090e8897688174a34b0b7317753
MD5 d4c3075a0c26813be36559c0e85569d1
BLAKE2b-256 ee097af7fe7cfa836f1e6c6b60b799076e760087a71a2070e225f5379e614a15

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