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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.129-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.129-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.129-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.129-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9de7ef0c91ecef190f7d7a62e82000bdce31dc2329f38a08921c2ccc63615df2
MD5 3e363c5e01869007f2240125d7cdd1e3
BLAKE2b-256 21bd9989e02b662809fff5825522c07167b38d8f9838110340f66d690c2b437c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-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.129-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 378182fca3830a2e42f99251ab4b0587ea929588a30baa97d4e40ad14c6cf362
MD5 fd39a90601e6b8017b33a5d3a87f3e51
BLAKE2b-256 7671b5a5a537be9d3139c1b0c04886584b71251d36ec21d451ce31272cd617fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.129-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.129-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94ad19155aee030ed889c0e154af81b30c1016b734c8a922fb27167d7a82963b
MD5 b5958c8b2069fcf1051eb9d430b1db82
BLAKE2b-256 6a53100521b5609a3674a1f6f106065300fdeb16fa6f395d0a10a8f6e9d7266a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f75e36b5f8c2e4a91c707293fbb162f43eb4434dbdf5dc4534dc6594bf5379a
MD5 6782b50b9ce82385f44feff5abb2c092
BLAKE2b-256 2cd4d27560af1be31e1bb433c4da66fc597876694e5f0a3edcea2e06d1d42a61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 263fff666e943671974f4b4eea2826f331bc347fb3450cae9b8f92213dc389e6
MD5 f4b031750095c3a48b25bb8125a932a8
BLAKE2b-256 658bb9f721b3e903cd633e2d9932483c816fba5fe239869dcb5c281ce14a8a9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-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.129-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2af80354975319f2f89e99c1f32276537e46e9f8c01462938f38949d10febfe8
MD5 318f2599c281a181be4ebf55fae37d64
BLAKE2b-256 db8cbd4180d8ed3ec939bf3cc9c4741681ea2585b34f55bb3bd2a811508766af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.129-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.129-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3e55fc3727caa59207655a18c47a3f3e2bc7609221f1a4097184c21a05010bb
MD5 58d5d4bb5980fe2cc7e5b2aba696cff2
BLAKE2b-256 6b4e66e1cbcc66b5de722a17e460a977ba3f450cd1788e3aa7b3b05b38389614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8dea896700406e8ae420b32a522c5dd67deee6f06c4d50cfabd6a84411f94527
MD5 6b1887fb4b4dd86c236f1cc26ebacdf3
BLAKE2b-256 37853fe91b9d601ead8bdc5756758c22e31bec03eb9fba170134626d33b21d29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b14af803cc21a1e8fba9094b3f85fcd60fa15c2a53a4959e9b45fa39e57c0411
MD5 23abb9830d30d83d52d9a1428beac580
BLAKE2b-256 3594d3c7735807e2801d6817a097f4619b660c715e52ea500ea6c2fcf9b2d623

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.129-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5c16fdc9975d187420e9128cafd8bc411ffeabfec5b9724b6909f6746ba8414e
MD5 91c611ec146e09ac3235f3c5f39519cd
BLAKE2b-256 afb063a4c5500446341c3888fc18695ac3f14947113342c13a1d11a4b560746d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.129-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.129-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 071f304a17fca0d770a382e6cb35b0f628d27a335ef66c73cb1dd865aa8fae78
MD5 6fc78de8325d5882c9fbf24f3cf2c0da
BLAKE2b-256 390f584cd372caed8422098ee929b30544eb9c9307b0e3a1546db61e2a4c2438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fbf65b3e7395a41b93d38c6aab852462fb328c03c7188c5b9ae29e1217dfbcb
MD5 fa922d2d4c5893e18bdffc651071df04
BLAKE2b-256 3dbf77208f8dc1eddac38e45d5ee8519bff5b00e464a16d1b7209d0c7b39d7cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-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.129-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 79ac90c06d1aa32b8f9623d10b21c50a21187f6fbd0f11078ceeb527a0d00f44
MD5 546ffd5f6d0a43db709bf328aa66d3b1
BLAKE2b-256 735d0db7e5ec07bf95ae2a2acd039067b769ce8514cd9195b765d5dd5e44df01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-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.129-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 81c849143d28fabd9d6f113eb8f14a4cd1fda6f2ffcaabb105159abe92f71cdf
MD5 6bb89fded077639bb8cdb7664ce38cbf
BLAKE2b-256 c5fcee786486ed97eddad6c22c5e20c6f3eae16e02da84f003336046559c6866

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.129-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.129-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83cf81a2a9ec604b0a253021fc474345336e10b91d18eb0b3ea994b6170f1bb7
MD5 a71421af67e51cace9a58d432ce475b8
BLAKE2b-256 d6dc8ea4e6c1f9b6523b7b981eebc10f068eebc37ff6518c491f349f37bc7477

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e2954ec120e9aa7c3ab9efed59bbee29b2065fa1dab167904b6708b9536c3f5
MD5 f20aeeccccb7588a1b5edd0fc4c61e21
BLAKE2b-256 9c1b90557136eb8b43f1abc5087cd59ac8b5794e66e9d80a1ed604baa41ec8a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-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.129-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1af8c157fd1bc833224844e3deda2f24a9906bac32a2c95a68acd8e993ef6168
MD5 38892425fb3b4c5759d8377e2f50f61d
BLAKE2b-256 167039378efd4b77fb372faa6d3326e47b48b6b4031b9617e805f7a343a26813

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.129-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.129-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7037ad2fd0cfa5f7bb9620aa9e0b90ab596416a605aa26a66c81799531d18fd1
MD5 e760d6ccdc4289b4d4cece89a7bdc45c
BLAKE2b-256 27ddc363c3887bf3036a8ba6e981e2728757600069b9b7c72821ad1ba701c20a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.129-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.129-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73f99841373db7cadfe52e95da467425747a6152ce23628f3a4a5b6388dada31
MD5 71cdb61a7a0dfebd099c402fb44195d1
BLAKE2b-256 6ac7010b6e003f81cedb20527947e3519ef6061509400b25eeb3cb60b8f06662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.129-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfcd84060a0424406d2a153d5569657db23b660dca0377702cd74666f6bab33d
MD5 4926b52841935c6c3849a1dec2595ad5
BLAKE2b-256 8088d17b98a8b13beaec0b9563cd720e7ef27e6cc955e70abf71ecd6cc0d6138

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