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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.163-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.163-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.163-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3fe281246b42ab440cf9e3220c75ea67f78199e542c0e93bb4503744727bb46d
MD5 c0a460fb463329cd141f9bdfdf1e06e1
BLAKE2b-256 972b74d2dc985c33a38f1fdaf6963c499f7a1e3de75898c9cfced6b5f0283b1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3ca3b1760e81fff22f3b90a5ac7da58566ba9c1c13fa80adbc995fc539b73488
MD5 99d4a9a5182486f00bda36722c477773
BLAKE2b-256 dce984b28b2a208bcf7ba579d495b4925438611363e3a79bcc56251dca0c757d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.163-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.163-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f136cae6264093bc9baf4f0d0f1c75208bfd4488b69436dbd2e2641814d318e
MD5 aa8a8870610c9050c0a028f5e59b52f4
BLAKE2b-256 84fd0abd5cff6c37df4f048cafefc78f4387fd5de786f59c26512a74f069e433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46af065eafa131bf9831fa67c85eeb3a03b251dda9f35b520416927fd535bdca
MD5 1f01e04c172ec665488aa9e5db9c6db5
BLAKE2b-256 05cd1bd992a13d913dab04e390e957c3bf4824d17b95662c3f5a654bb44e7305

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8f62c882efaaab766db1a66e76cae54f243ef50e3fb5e7e4351fbac88c9f8ada
MD5 63a31fad55f5b9b874fb84f533632e47
BLAKE2b-256 e9b2978c873aa4da3e15a4b25d8db71a59b8a55a3fa01d441444204b95030961

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8d9895637cf94269bdc92020e1c0d24114af5b3f4e0d235b5a375718b4bd5350
MD5 f2839acbf74c626e66d0e5381a4a5930
BLAKE2b-256 70d8125826ac0a22cac1b422e211a1b910268107fbcbd08ef949fef8ab8c0a19

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.163-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.163-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbb6368d71ab0f7cc456bc15277009b10dd5f3890608087dca0ca2df87b3c59e
MD5 ad47bf2740d582526deb603f6566c83f
BLAKE2b-256 75d82830bcda821e32f4f631cc2191dd4b9412c18db6d90449757dc213ab8632

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4e498507b848cdf9ad1dd6288e264fafe8de5e884283313c65db397d9391151
MD5 3f0f2f3f59925358c54f30d65ba49ad2
BLAKE2b-256 6005f5cf28aa6f2d526c375d0e7543c43175cc3f0bc4446c366b4150248cdc3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 95f5f9bd3f81b6304f82c5378a884475acc040f76a7d263330c79966ef7fafe9
MD5 9247b20f3e708a51363af6f76df7e96a
BLAKE2b-256 f4060fb5d968dfafe4166d03c3b1236f08d4d9d67f2be4a552d1f265e9b638a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b96b4298cb0b3054eb7baa23ee4721f256c5daded25e662edffd1a7d6c3392e7
MD5 5be9bbc559384a75418cb59ed9c85add
BLAKE2b-256 abd3bddde0ab501b145b798ad019acf0ad31c2ff4a22d02df4b5e2cbb81ad3a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.163-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.163-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bfec4c3db092e1c6651d76cc89b77df1cb241da3f2b04814e6585a80c7ddc01
MD5 a38fc531bbf6b64e14e85ad2ac232e73
BLAKE2b-256 662bd7c4ae82569918c1648b959a93ff37cd12c7bb044d7e3ae5379b122d0a26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f04bf1dd0879c7c4b53d9b21185038207177d9106fce9775910385121372e044
MD5 41f4acae0b7722cc068516b8d9ab5590
BLAKE2b-256 184da053e68e8964b4f373c78df596edf951daf231e6af59ffa7a4b0a7dc82bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0aa92d23234971fe641b8eb3bf56e8d3fe8ea6b447b38a166ef5e289dc1f05cd
MD5 4d140932f68f8017fca7dfa9a342b137
BLAKE2b-256 6da10fadc572597623c1c606ecf8f58e4642d5352b0095048c6065ade70c40ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 937dc2188357ec41cdaee0fabde03e8bb9c5d79d73cb7d6775e0c384c64acee5
MD5 9c1b1b7ceb437ce73c92673068f5aa4d
BLAKE2b-256 8369f62b03aed2ee8528b11893d253fa4b0282b056207237dc1e005b5c913c2f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.163-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.163-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 890e8973330e89fd302b35dff6338145b94f8344ef17bb9e49376f596482053a
MD5 49807d771ac605c73d254db02ca166f0
BLAKE2b-256 7369a8b520fde91e10d11676699357d962c18090cba7053317ea586cf84adca6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 074829ef82729a37da798659e64461f2fcf5cb8a131804185bce3603f2d0acdd
MD5 29f6313a9c4020f3b591bdbc31f7e2c9
BLAKE2b-256 fd094adb9421144da0d63818d4a8843e8996f217430587f8a037f0a55e85f660

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2654b3646f884e84735cd150aeb1d2ea53ec43ab92495a82fece2196a925e795
MD5 28b0c4728a1ecb96e2bac9cc5562ed3f
BLAKE2b-256 0a66eb0c3ef033c455527793cc568211bdc094514c113c1d8b13ae178d44d364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.163-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.163-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 276996eaa80f1e0492c58953afb9d8dcc76c0d41bc6e7d96304c3dcdfda4e1ac
MD5 4d64be1632405ca1c704b6b3415488de
BLAKE2b-256 93cf7d630afd9687f52692ddb8e294a244b27b76763c0dd78dc1dc2038397860

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.163-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.163-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed0d32fa31a03c947dfb1b4e468737f33311df77d450b7b163c28ce71512c4c0
MD5 cbdf621f7adba355cf091abf7ef3bc1e
BLAKE2b-256 93fbb05fcc867bcb1bc7954a18519a8e088071bceeaa3c3f025259335ca99e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.163-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d8921107486fed0637bc4d473e90486a00d3e6d552b99ee81df6c9b2919a1d9
MD5 ede98752b04ac8f8dc032403d8502a54
BLAKE2b-256 2e5e3c0944904bbb3e88ebe46092875536cf40fcdd10d89010b6f78b8ae34f82

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