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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.706-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.706-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.706-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cc6b387ba8ba558bb6ac4290fcc779d4b16329371b0d90f178e794b789255296
MD5 e6d75d06f9adf90f063b190cf366e382
BLAKE2b-256 78cb54d8680ddf2d3b51d31e94c00e7c087d96615dec664bd4ca4d7a470f6aea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1f7a57dda871f419bfef3a8974ed8be69c825daa9c37e2e3f5a98b8c6c620b7c
MD5 103ccdc27a69f0f93ff41be8346bb7dc
BLAKE2b-256 d8e34e5d38a9d490c95159ed7208930cf70ed35db9a92a20b729ea12732673ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.706-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.706-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4519435386c0b39207d1eb973670f5559f6358c474d7b43c1685061b68b36f58
MD5 89d5b119b6d199c0785cc058a18c6499
BLAKE2b-256 ed21b357bbe55742759ff926eee5549753a04c89986339373deac3835fa6a8bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feedcb8bee34bfa3c8b4da7c930634cc9c4a1b1ff3eae54bf286cd660700acbb
MD5 f628fef19e6a717ef8a577598c123b80
BLAKE2b-256 e4d4bd881f39be36a440a179a8a2dae9fa7ce38aff47d8ed6febfbd317612704

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f5abc24b5276b5af09ab9e5c176ffbf71a1210bb945471ce310ed3b103f7a0d
MD5 523cece62c0d225ff066d781577bffb8
BLAKE2b-256 c9621cd87f3462246bf60c59b3e9e487ff865a1709bdbfef18f1ef76b4ec55d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 541ea8825c7b0597077aa38a18598e14f9800e3f7d9eb388d3d87508933f6995
MD5 abfee1814fa1da78431eadbb331e5567
BLAKE2b-256 d31f134866398ae7376908b13c97a3fbd7bf78afb8b38977f566f96273c1e14f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.706-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.706-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2d378cd5f5e87bc6ffd8bc684c0893d3b8639c218bcfa797d0f4562856f4b58
MD5 9ab6ef3b724d86b5be0100d6eda20ceb
BLAKE2b-256 dca40411398f0ce2d2a3661766d13824c44c55e5f4425dce8e1019052f0afb50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0293a54c08df55db6dc7d2ef3d12d1db328ec0c9fde108026df30d3812706c3f
MD5 7c349b257b97a257fc4eb96fcbb50615
BLAKE2b-256 f06addd150fd9f7d104efa4f96a2323654eb6eb5c5e0eaeb0eae8bfd67acdbe4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f686e807074240a23bb34dd35d81ce3947c60e55b44ab0402efaeb8d4aa24618
MD5 d057f5958f9806d46905101ea6fa22c1
BLAKE2b-256 47f81573abd9c319fb6cce5f6aac55affd15df590b27dc56ecbb3b12b7d8edf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 38a5a693114ae76ac0c22e767da8e7281cbfc83be9ade710c10d6537ddeae4e3
MD5 398b5eb8931445380ac463a9a0445b3f
BLAKE2b-256 6e193124c22582ac7512bc1664beb2d3c1b64feb29e9ef7588eacb9219f0a3e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.706-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.706-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17aa39f2645e444188f55d379048878588465d520814e97ede1c3564a7149ff0
MD5 709ae9cce0cb51e8365dc671fb823062
BLAKE2b-256 c8c3312aaec49e67f2f73e62f2332912f8c963da71578415c6f172b65744bf12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa135f3719c573074dff70e12e5b431bc87ad7f892875dc4c64c8a45086cd6d6
MD5 9407c2e4b04e465767d7bed76be67d03
BLAKE2b-256 002686097f0be7818ae525615efd573da6db2bc8740da3041e2fc252532b8105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bfb86506794ca08e0ee920c2bce62ba102148bd6d613e7c9bc2993f46d796162
MD5 e0b96125158eaee521ac054b5cab01b9
BLAKE2b-256 ff23d307f5db424d645edfd32b557c25b9bc9bbf41346267834f42ebe4be1d04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ce6e85ba1ec719f8459bacc4ea522adbec2e7ff132ac904fab753ad7aece199a
MD5 c03fb56e7f953489b14186fd4d503c31
BLAKE2b-256 e9fe5ea192f6285a65a7f507f6db3f1106a4f81f17e934c8baaeecb5ca1ba215

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.706-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.706-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19f7b1e533643c726cf97428e3da5c88bc12af1f9380e4d683f1050b9320ef3c
MD5 aa4ea94c10ca8a697fb35517977b7c00
BLAKE2b-256 2115fecb4dbffb0bffeaa0c477832b8f9100e6d574279a1e4b6dbf4343e9f5c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ff8e4cd48aee50af9b7e7631632e8b03cb89a04904cfce9c495f71cecbab117
MD5 a5755fc9d30dbb0ad82ace5045a61167
BLAKE2b-256 11ebb9965e4b47b600c0b4d5686d0f3cda4b3e3b469ef0ffae1569a982189223

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f331e6a25ed03cfb84b781729fbd79c64a40a661896c5f99dfe987642d4bb2c4
MD5 f356d22a76e74b7ef1d5848ed11d84d0
BLAKE2b-256 72ec00fa75b0285540708b309b89830f5f0609ce223ee2a8d410cb8a47e75874

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.706-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.706-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0dbdd760598a7fc3e9d7e0f924f611a1ff1f3d3fae0ca0efcd9c3ae58bbf8d8c
MD5 f45bbe059cd0816e7efcf51208fa72c0
BLAKE2b-256 081095fca90b445c9643820ed77ca083e175a407897ee1b1c6377de309715f43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.706-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.706-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 441232bd037f7d7d213ee9381341d97cc3b47585eee51f81f90e58e2ebc108b9
MD5 b896fb316eca5289a8438418c75991e9
BLAKE2b-256 9720321c8a7c43e76553d0b41d550e97877a4e5ee3127e9da385ceb5c5f219b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.706-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb46a4dd0c1693cf100728c3fd3a2c4b79a8e4df8c55e5cfbe3cd2402bf4ff85
MD5 4fe6e35b7809637b124871bf5e2d661c
BLAKE2b-256 4c876639066f7756da0f6412ad8de9a63e5779e010fbacdb9751167ec55a3b5f

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