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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.279-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.279-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.279-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 06793e70f9db2515b38ac5915a75bf65238d019e712c945abfe3acd5a39d17ff
MD5 897d60bd4c83f3a4e2e5f8645018782b
BLAKE2b-256 e48850d279b1764d8fe0d3a4e2cba3b0d1337809e8034c3b26eba5f72c89def5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 99dc7944a11a0947e53c6884adafd292ca4720ed8c8be04f577446f2958bbe61
MD5 1349bdb86eab529c87c5739b34b750f6
BLAKE2b-256 cbdbfbd8fd34d81847ddcaefc60546f255e76eeaf3854994f3b1c77c15ac2301

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.279-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.279-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40ab70c1ebe79571efde84c0f8f0b8afbda96bb9b864053afa2bbb2ba6ef5ce4
MD5 163964bc7f00e829e57b92fadf013d3f
BLAKE2b-256 ba31f6cf173cc68ebafd3273d1c46a73bfda62e864f7b52c7c2795e582c58efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 983d56811ce4644d110ce4befa2091efbf368630aa549d4865676912116b4a2b
MD5 5b12f6836b2d6d5c84217454157eb6a7
BLAKE2b-256 b8a6a775110f8a894ed5017ed65d5a5d086b4b633739d683be8cbd89c49cb0cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b5708472c2c2e521d94588dc9cca0e3600d07bf5db043693549aba1ec72f1818
MD5 a6f240eaf1482cedc1b78c20c8569818
BLAKE2b-256 9d0eddaff3e93ccb151d9af42eb78ed739bd729b0adc99f49a9e32847a776304

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e1f53ac32792a8f3cff1b95134349ab87463c062004dd7ce2eb958b25c9eecf0
MD5 595e43e9cceb70d7700b3105ce067d9a
BLAKE2b-256 02c095460e186b709385d40b25e35b9b64e9b1ffeffedd841a46935d801fef55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.279-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.279-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9af2992426ae5bae0c15d9062b3bf836fb056e7bff392a5a001746682218cb58
MD5 ca120f84eb576fec7804e486325bba12
BLAKE2b-256 1a9bd04089bd645d9f190c00646eccc6c9ac2c6d9c9ef320acbddf6f700137a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 830c4c05b78974475b99fc5c025eabec0ce89c57a492d18a684e75842c49568b
MD5 f2bc2329672f99da5935a00323e8d403
BLAKE2b-256 eeb44771a4aa6e1f1ad3729d9bb3a863ea48e35095a9a956401752849e006488

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e74dfdc0a92d603fa389ed53d64ae399c774036f3184df01364e0b8d47d037b0
MD5 8b1dbd7eb1c53d2c1af028a8a8d7d322
BLAKE2b-256 0872ee19f4130a389d3ddcb6d1c5aef32ca7df5950f8614cb0c48e6f6d5d809c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6bad391de2f2d1ddc070a33c498923677bd854240a662c4a30c57f6c06512752
MD5 2f390786c84b7acb59324bf02141bddc
BLAKE2b-256 2ac479e2624c821d273581b1a79b9baf821600a0195ec5b6cd3e72eb16907981

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.279-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.279-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5352c9af1e49fcdd9672d5597174e34d96d62658f34c22466fdb37ce8684ce47
MD5 bf0407baba95dc5562235501d3503f94
BLAKE2b-256 79b1d88dbca0188993cae8b12345eeaa1bc86a3424fa88cd455037228dbd8200

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc90787991d33b9eac4cec678b1ec4bc85ffc2139e5555b3f182d5e1ab9f08ff
MD5 398a80cbdea7cf1c5a1d59767bcc43ee
BLAKE2b-256 9a3508205055267de8531a59a3e38e51f84fb7cb0887c1ca54c16477bf6eb7cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 39a486baeb3d1212ecd66f7dcd4ca5a905506a39d24fcf8b1eb4ce93add65dbf
MD5 9366ecc2ad2a77ac0b124cb78278ecd4
BLAKE2b-256 84df0c1c990d84b5d8d08b21b11691f4510ea207e3cc9bf909fb5798bf1ea6e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 732a3e93bd6c08a816a4262c9dfdde657b30327cc2d8406cc98aa86cd7acdb70
MD5 ad969208b9b81ef5e1e0985964fcdd91
BLAKE2b-256 0e3a1ba794752916e74ab7975482d05b4069834c055e569c315225cf447f21e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.279-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.279-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ab1c56dde52d4ecbd865fba36ba41a1ed20ff085b71c368ca7a7ce76a4fab43
MD5 ab49e1b7e6b5573c47fe82909f2eaeda
BLAKE2b-256 6a7d3379beb0611283cc6bf61bda74cb0714e390c0e3c6343d152c2495e4a1d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05c8dab2c555537f11fc528b05ad82a4009fe14d33ba42f0b68dcb4a751982af
MD5 dc77c6a3988feb728856ee8e98096255
BLAKE2b-256 e8d72e50385ab5a57e6b41807b3cf840944690714e500fcbd57c59781bbc3e7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5c5ba87b64c49a14265093b84699cc4776f3889fae5024a2ca88587c02f2bebc
MD5 48b2992a340e71b254243d6bb3d49af3
BLAKE2b-256 998fa439a3aa0b0862092bc4552d384860fdda54f5fc47bc3bb3583b8430fc01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.279-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.279-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8873bfbbb9abea6a09870324b0cf5f21114c6257436f653d4308f64801849157
MD5 d9c39b03010bc9ff4127ecc27cbf5047
BLAKE2b-256 dd64465288c1d8dbf3adcd89dc8294e580aa2a530d2e1ac9c20b99d0bf8510d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.279-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.279-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e3620eecc3e3462873c6926a6ee1e09474ded242fe67d295d534a87c3b8c491
MD5 42eb43ca28cd0bc51ffb86b4b483ceca
BLAKE2b-256 e5996ad13e8e71af5cf1d52f1ac7054d776fc43c3cd8709d794e7d85d3376376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.279-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05c6d2b20e01f8649f782b40374da9ab60a17d5f9d046db37b90dd2c71125900
MD5 25d9535a302ce1bca3d6041631afc979
BLAKE2b-256 d9457435cf3a8f1ba2a46292208ccbf39ee172c7f72cac2d5b46c1a306534047

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