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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.384-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.384-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.384-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 926ea7b7d2134895eb32457944336a27a8f26893b0cfd2a57e8edb8c0d7b32a2
MD5 0da5ef063c2cf6e1e0f5736c32d8693d
BLAKE2b-256 46fd3514d8bda084aeaf65b5e9af4724d633da52180614e60acf566519c0332a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d07dae7c77705d27dec03dc65e6c5e0beb455711663eb6086c3fec5e7db5d11b
MD5 4aa0c615c2b1bfdf790e88601e8156b3
BLAKE2b-256 4054c5c5111deff29c1fcbf0350558592461bf3c289b218c4c5d22eb111c953f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.384-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.384-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c8d9bd469a2551cec04855d5346a5db46cfa08e1eeebc8ecc6a4ea1ffb5864b
MD5 b0dca5fe20bda7767d7fb040ba81e704
BLAKE2b-256 e0f7e42702bcbeb98fdacdf22ad3edbea87d9166490ecc3f7ce955bd437ba6b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b53d88a0f3f19b84875318c02363a6ded650f247ea767ebc626a9c3016659359
MD5 1553e39205a7fd58ffbdb1f1fb1375de
BLAKE2b-256 0ccf60cbc51be188cc281e5f5ddff02f289097903bc089c78efc6b9f75daaf13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c33f3644a8e1358b0ff3d9be1dc5827935befff4b9d18db031f0ad98472a8325
MD5 fc063eb654be7de957b26d4dc21d06e4
BLAKE2b-256 e68b205e01c8fca1022b00e85e228e4c16b727c0ff739246b3390ee27d5368e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6c59880509c9aa07dd32f76e5492e5a7a7a12305c8b618df99ea4c0262215de0
MD5 5def159f5f9d109466e361ea08217e21
BLAKE2b-256 8dbbcfe5a7847f63849cd662e4afb3a85d6a31a13816105421e2c7b2b7d62924

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.384-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.384-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2349d838ff8e5b884326eb0899ac9fe4a6e19cc09e5002c1ea478dc3b2d36d72
MD5 87779102e38c3dbb99d59415954d5cc6
BLAKE2b-256 32d426035517d71518f4008df85404d8b13f1b57127a441111752a2ef5979463

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aef06b594cbea1c069024dd3f15b9027ada8387dd70dd1bff15640f45c04d445
MD5 87ab32972493523e8106017016ad2882
BLAKE2b-256 db758c83cab6ce1921ac9252706c993c43e0eb51fe7ec3f98d7a770d23f0892b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9f24c90f2612416e05cb8e05b35d61acf0274040137715d42d0e197087e7bd81
MD5 8f8f1667e5fac5efa302461a4d226025
BLAKE2b-256 19381865577fa38b91b06600872b6b63143d083bed87673989f6c801aa17e199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 29a4f4b8749277651bbef1b5eb4cd83ebabffe4f9c0246acabb1026f990d4c26
MD5 28495d3a0f7dd85ab7aea46fa561f199
BLAKE2b-256 a255b145d53bc8e1139273533341a16e3f893c2f70ac4717e9c5a9e1c2b76282

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.384-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.384-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79880e45f195a1dadfdf2aa2f660a42e19b0180a178ddf68ef856a70dab4a156
MD5 1aea31e0fff505cc0a6124bb73716891
BLAKE2b-256 6236d5b12d69be1ab7eb271be9ba9100fc5f0aa6599dc4ea42b9378ef531e7a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81850ec3f7c465c1f4d7d4e3120c952ff4a4b8c1121d417f176e2c166f27f109
MD5 d4b1bdb660a0724a73f66f04c53a0b2e
BLAKE2b-256 f9fa4c3277afd2081dd7f9b77494e87f5cb4419db42f8a6cf90e86ae9d91966a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1d3f3bb7cc6f67c38009e3fc2c6433b7ac77da12c575614a77d1f99e094de46e
MD5 6daf412a161fa5893cfc00c6ed4db636
BLAKE2b-256 049b8477b484a25e9585ebf6aa28c1668f22153984341220e757b4a7ef8dff9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b6bb6d89dbfc96731783615967f192aa231b37d3c005acdec70864e9709b496d
MD5 5a1524139efc1ea4ca4e2bb16734c72a
BLAKE2b-256 0912e5757ff46ddaa2c6373fa090395e5f142e1b0f5898b043ac8c7bba708105

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.384-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.384-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 011cf8aa01de2e8409b36f670dc0d4f37f56f0bdc082f792049afd8697919244
MD5 02bf17a74c4a9f4e29b8af2fe3d0c627
BLAKE2b-256 69dcfb42d3294a5f0d85c74702f8b49465f89626fb458e0dfb80e89870abc9e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70ede91f5dddc70c8f0da23343e0dc08502cb647ae63465ff5e6b3179efb706b
MD5 8102d7d8380395dbca299023990e20ae
BLAKE2b-256 8cf6d48543cafe219fed3184fb6c3d6e2bee9ef077036fafd6c6954819311bfe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2820d73f7e14ec718d1a6ef4bc1b57011e172a74712cdbfbb21b2518da9ad638
MD5 dda48b835e93eca12d0abea78aa8373e
BLAKE2b-256 c470a00b97ddc11a2441f1fef3c89e5480f56e87c8c75cc948e5e28a154175bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.384-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.384-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7f14b9d9c483ccc1a65bc7feedb84d4850f66a1775a166412543b7117c014bc1
MD5 50c5d5903169f0bd71c7503463ec6338
BLAKE2b-256 07671d9462ea69414f414c83cd700d041b983bc7a80b05c0d009590a76edb7be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.384-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.384-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91b4939b88b9e3a5ddac471cc3b822af390c3b94d2b608fca4ffa1f2e01ad083
MD5 03a3589461b6d155a0d2bc711281a31b
BLAKE2b-256 b96973960e8fa7c88d0bb42fbf3491467c0c6bd43afc4c1fd9a8eaa86760a289

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.384-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ea13e28e3c5049b894999add04c0f8d5fd2930153ea16f3608453f9734ae28
MD5 13b965ec5c68e4e792a6d7ee7928d07e
BLAKE2b-256 cfe16e363ed93aa7a15c17ae12d7c160e9c9e21cb39f338fcbf1103c4355ccae

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