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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.11-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.11-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.11-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.11-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.11-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95b2ee7df4aef5fca625569d9edc9348f59c5d7db340fc6225f839d25547f1be
MD5 8ab0bfd9ea65a02696b44a55998c7ddf
BLAKE2b-256 a5e5c5d07ef95736d85e0d159573bc7c27fc7f62141eb641047b54d4703b0624

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b10396c3f9a6a9fcfef40a268de695718447c1f6eceb23449d40926a1f0b3ced
MD5 84c0452a1dd404678b23863f77d6f9e0
BLAKE2b-256 3e3d295a2f1de127198da969710b4f4568ef5680d5d8203a79ddacdf0e435f4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.11-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.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb6930044bb2f696cb4178654bdebd5a8125b89b82e5ee2345d023ed3efaae93
MD5 13697b1bdf1ab5242cc03268374cc7c3
BLAKE2b-256 26a199e9425446e7fc6f18045c4dcae7027a20ada6929ad223a64bdf7ec27b3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee764276fbf6b8ec0c20d5fa12f6f83bffaf788254ef0d80812609c938a2021e
MD5 13127c7cde4edf981246f582a1011c8c
BLAKE2b-256 1ead8664a22243170d9250d6ab597de6d7be008607b4041c2f33ccf7d48a8c12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d86655440b3e8c53a8906482ad7a0c744852aba0f17504a66ea9dcd98e4874de
MD5 675a32d344496b8fd3248cf33fa7c716
BLAKE2b-256 a9d12ca34270c07f3b9931dbbb02f2a2aeaaee6c5b466c7111576584c34e2ac0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 30bd18de5c189df4ba0f7374f84ecfdd69dd4ac49047fc0e22a60dffac1d449b
MD5 773a5def32f99325728297f6f591426d
BLAKE2b-256 ec00b598d4f9cc60c6a8003075d76f78be53be83d14eaf266912fdedd701cec6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.11-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.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 113b1f5045c64432fccf0610ddc85ead16a2699cf3c1be15ef8fb2cdaebca4ee
MD5 f57ca5cbca748a4fce152c1b7b850b26
BLAKE2b-256 faadc72dfe6b9f7497cfbcd33a5641b5c9addb1353bffbe4f33f3a7bb99b18d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99ebc7b40df142f45ee1065126bfcc408a331659fe5b709efb532b92554c228c
MD5 49c91b8db79d438c9c6cbe28b0011842
BLAKE2b-256 1b9b89f184b40095f4f105f479b074ba67860620e3d32139b5c47fe3343002db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af0427bb70ffbc1e62c2ebfbd321bbd75d7151cab76358c3be35c835c8781ec8
MD5 c5ad55fbc4573fcb6218a89155a201bc
BLAKE2b-256 ab64c595a88933c6a9d87e364e661b8713a99fec2358d884420a088ed3a841b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aa0833749f30a4c13f53e286f6452572e4b33ab005981ec832250908157344bb
MD5 2c00433820eed56b716f16652d2ec687
BLAKE2b-256 dadd77bc9f723d4a9882dccd498150030f10e48c79db7939f8f7d83ca97a3c3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.11-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.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb093c4a2a7c913c5b844139835f10141895621bdd1d6b52c781db9e1edc4b47
MD5 70fd96d57a3fb3801fc41378030d45d5
BLAKE2b-256 0193b0e1b1ccf996df3f4b28f490aa87e445e5cedaa6f58253d910990f22c599

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 110e3e03ae3f33291beed78922d45d04b2465a7c0a4d17812c87fb3fc4f516fb
MD5 b830886a591b176a8dd44a745b7352c8
BLAKE2b-256 f2ee408f08a6bb6f96b56fc5b265cf80123fd519a9de45aa71b5a2788cebe397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5ce70556579e842eef209a157d1b40a983bbb14e041ae4637ee82afcd9bfb6a5
MD5 390dd656a8f8c05d431944b247127865
BLAKE2b-256 5066799ea01d01f8a6c7a2c2e85600137b4e253ae7fe0e0be2a1c3b635d00353

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1477e7e0b713badf5962c979dfebf2ef41681069b3f711ae915fc9f5e056ebb0
MD5 837a933e089e4eca705937b22006b627
BLAKE2b-256 43470fd09133f08c29f33648289c52effabb32277741309a04290aa2217ef3e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.11-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.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5800a86be9b750140f2fc4093afbd713f38dd00fdaf4cee07ee382d42b37c1e
MD5 e6cafa305355ef7717de758b0025d22d
BLAKE2b-256 19ff5f63d23ba57290bcfc180b23bee604a349b7bd59a4c29f516c8e14dc29f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.11-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bd84abc81dddc81b4de5fe462550f60130e807ec39ee4e8cb48d94ff162482c
MD5 288a35f0c124526324c798c726a937b2
BLAKE2b-256 9bfc99deda26108a4a5ab019aa48915c5420a868d8fe0e4f18a1c08946f150a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fde382c7e2712fca9bc01649bb4138208e63baae828b5a944ee4432175810daf
MD5 d3555a438d3a83e161646f9f248ab994
BLAKE2b-256 b68782eb5d9eead26c31512b3e375d16dc884b605f43c3ad410b104149e2e40d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.11-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.11-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ceb3d801528a1cb3b388760ca0d325c48fcc6142e5ee5613b19dbef34ac73cf7
MD5 86ef4308ed3e95e35a5aec7fa8818712
BLAKE2b-256 0f372d19e40eb086e953b313ac170eb05e8d415a19a26f58d0dc3766b6a76b3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.11-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.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96fc52a5c15b77b78665b5681eb623175cb72e63369c9289876acfa2bb02210a
MD5 107eb1e538a013259a413a609e4bf2d0
BLAKE2b-256 4033b96927aa6f46c6d6a491ef6243f4263d0001f12181187df789982badfba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.11-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18a0d8fc6c55950a8cfd04bff41cc1d612dd96805c6b434e3078cca122c10f34
MD5 8c20904748c2b978f6487692347571f8
BLAKE2b-256 9bb814c686b54c380a6d6a56e1ae96cc5a4a36653f12accc8d7c189b989efeab

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