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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.553-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.553-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.553-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3f256efa6ff367e23fcbbb59d211a65bb70e9efe91d72e905f17d383c659a650
MD5 67d86b005218bd4247301fd8a0ed3e01
BLAKE2b-256 7f8a53c7e80d4d206df6bc69c291a8c8fcc5fa7511c978f4dcfe385a862ba752

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 983aee409204fa6ee85ead2015e9d36efc5607ee94540e9d1658e853f2310d8e
MD5 cbf8f8be16bbd6905c95631c7c895c2c
BLAKE2b-256 13ed4f74189f9e122fcd5c6559fb39664fafe57571468bc4de3511ba81734c9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.553-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.553-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af59202ff5f7c17bb4febb0548872fef827fd73e74b9de111071c5b14221d49e
MD5 2832cf8f3ffce98ae51c40e44938f9f4
BLAKE2b-256 78267b6a2db0388650d03dc3a5f8c6a3cc2c58898b8bbab9c1376ed5af6cf539

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73cc0771b917b08ea8d56417728803c0ae78ea2cfbbb97e9c43dd7a37be6d196
MD5 020962c6ae982560afe77c0d1ebabd3b
BLAKE2b-256 a3f701bd014431e8849b164780a8674e0fa63c5653102bade198d07234e56a79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d5cd7250c2ce89393479d2d24e7379fc06da6bd5b3a8b784b5aff34b7e74c19d
MD5 2fc4c0e9c2ea04751a298fc2c4660c70
BLAKE2b-256 42e8c5c473f2d717406f065a5e46a128c176a8cc527ec6ce0eae93b8520caff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eae16b68cf587caa2d61843a0b25e6a7e8732775bbf247e002188b8b9cacc4cd
MD5 5821e3fa62f0f9e3828a915dd71ce600
BLAKE2b-256 263e5629b40b9231dc7d96cafb1412dccdeb119f34f0da5f345dcef7e84809bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.553-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.553-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89efa44184d5ceb1247a760c633b278ec42fecf63f923ad8317efc272b33a065
MD5 ebdb3938748725bb72044158202c4a36
BLAKE2b-256 1c8d58322c7870098fa4ef221abf92311151332fe6a0d698212c735caf6b44d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34ad7bef9147447fe9affd28c23dbce797daa1e549ec0b152ea3cfc6b06e9814
MD5 14e7d8f20ab37bcf8b42b90e50ad02fb
BLAKE2b-256 b22fc97402ee3f3597c8eb80917f42490f1a18c6b432a9920909cf058003bcb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ce3cfedae703e804ac24bfc8812af32f77fb1680f531eb88b92efa0c2527475
MD5 10faec62b1cfb0c9c567f9fd93ba34c2
BLAKE2b-256 fdd7fe8b165b4162cd0e14f09c1eb1ad602dddfd8e3a12f268a886f2bd1bd64a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f2d6d7ec307eba9e368e544f852c5e8f9a98247e7680a263809464581c506181
MD5 2b5e1784797646d64f1ded8d1ca4cac2
BLAKE2b-256 25b0c62bbcd9ff9f69aa2c55f8dbd401a88d4f5be1bc7fca00427b3fddcb06af

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.553-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.553-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a8963dbf6c89b35cc2b2f8c8b37684e507ebe0d74d3562df3adc9c79dfa8c5f
MD5 bc911b50bb346ac2542ed7b001e56ef9
BLAKE2b-256 6bc28ab74be8bb14ae2d655d08da0a683e2fbed126ce85c43142722e91d6e78d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ad8034e5292f68dbe1a468aa612cabfd089d7bbeda3dc9f5d75ab776c37fbe7
MD5 ab6df62bfdba19b501e66b6d9a635277
BLAKE2b-256 e89a2a9ca180a35e6217ae20f39f1738ee505bd9fa21e26c6964bbafbb83681e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 51474bd755725af4c5bd712dd56e39f6b31e7b6942ebbc70b0c8e68e405828a8
MD5 1cdc6050328977686af42610d267f4df
BLAKE2b-256 06ef3a7a090e535449be70336081010009d3bbcb0807a573ea0b0a11a50bbc6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4807129fa30461542d6ecb26aaace4f08717a429597b1b51be66cbbb87e7ebe6
MD5 4086bff6bb7a86d3da9226e6ada72322
BLAKE2b-256 32ee2586c4d34f0856e3e5048a98eb8412fb540323660287307b8255ef2bdc16

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.553-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.553-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bfa01566c099e1192f222ae3b936fc7b44665b43982e9aeea6307cbd2e454006
MD5 75d27737a0721774135cc26eb238a170
BLAKE2b-256 f1192d3a18c78f1783a1f4051db7f23a00cf4eba1d8cdc4d8c79a2ce55312533

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee14e95c2058bb451ab3e273b5966f37f8377726f21d67c821b50a24ed3e9066
MD5 42f729a690041d4e999a6db48c6f8794
BLAKE2b-256 3102638e0002645ebfab5f85c1d69f1eea0a2d627d72391f603403fbe847cc4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 012c42efc06e431da6a54842776f376e93da56b4358b34bc29094528a9c74501
MD5 bef3da367c3e902e8c45035d833af0f6
BLAKE2b-256 3f6802aa09ea2ed37c0c110d0084386e43bef6eb57fb8033ac382d19ba2a88a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.553-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.553-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bff9e2923783fc119e2f5f57f31487d6e49c96dee21bce192f345339a8b9156c
MD5 afdd01fe0914b60b6dd79fb90d5c79c5
BLAKE2b-256 2bc136f33cf3dad90cb211b8ee5a24906cef8a7bbcd86b32bae5ebc24c0fb96d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.553-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.553-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1071c115d3b1619b8bae1e873efecb4bb8f1e29aec69205ec5db77dfaaee14f2
MD5 900e9a6ee869dc3c8972e5d582c8e5ff
BLAKE2b-256 f5af3eb668f591d049f5080eff91f60a37a5218df5a398c2b7aa04ab099a895a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.553-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9462127672c80b57114fdab15828cf9acf5387e6fe8942beb881b9c48fa85f63
MD5 182e9b7e85d72b1e8706df565c840c7b
BLAKE2b-256 77389e6355a8f0dbf2e45894bf0e2b221c308eac0e33551c2eb39cdd3b055603

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