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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.107-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.107-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.107-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aa53f7295f4a6cdb0ae12734c44ac9a65696656e89d85135355941615f88d933
MD5 783c34288579f7990e93b0be0685dbb8
BLAKE2b-256 7f1f1f1dc2088218d89048f634d83d3727cd404744c56d742982aa0a7161bec2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9cc56f8b0300e2fc47965111d02040390dab5206f56af350861381624a76e3e5
MD5 fde76bf4a5ac3ff90fdd644afeedf07d
BLAKE2b-256 92ff904f7bb67c74d5fc4d08c65d7e4b286cb3f79c6ab5ec28fe289c234b8166

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.107-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.107-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9643152f6ff27e9e3559907d0060cb40a734dce1dc363c6fbea1d84e66255e6c
MD5 a13ab6af91b1d48e362a5374599c8a7a
BLAKE2b-256 a606c7875ace15c7483e3362091e5f3910dcff680d4a25483800d33396945fbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cca4a6921822fc4cb0feaa25ce7c827070fb3eff9d20b73a4d96ecb353175326
MD5 770a0274005fe8fa59c17e8ddc28a194
BLAKE2b-256 18cbec1c24459ff1c28be0c75968dd3a726522370f9ae2cb0921a8a511542c9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 476a04dc6b4203dc60479ca66e2b9450cd93fc98943d7a29405602cc36a35c46
MD5 55bdec8b9a73c9e3d7cea03e59299cd8
BLAKE2b-256 e7e91ba4552f9795d388e005515776b5b4ad3d812d4a04bf586b7269f29caf44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 afe1bfab493e19fb12075ee0a33eb4d551998f72163dad861f43652ad057d84e
MD5 9b46e31684cd11ec3d8d556179d7cccc
BLAKE2b-256 51a9daf6550b359cf2b9e1f3e68a77f9644a79afdb53fb1e98c735766e8227cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.107-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.107-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51ee608c426e12276969d08f751b68d264f0258f4c47a4137dfdafb679b2bbe9
MD5 62544414369594f724ac3cf572040943
BLAKE2b-256 34d805665b889f6d6d82ebb4323e604c115857761fe70b796e6efcddb329ac27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 721c302e5fb53ad5763e53e3e0e758efae81d4149f9476282269c19700ac5ee8
MD5 339314227e6f7791ddd493915528db22
BLAKE2b-256 9a0bb9e37016e66bcf007f96fe25a118fb978472f8950dc3a33c9b59e889d140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c09f47fe715016e0e5ac8b2658218302107a46a007ce7f91d62b10a882c6e3ed
MD5 f70dab3a0d6782c9f89366abd0aae7c0
BLAKE2b-256 acdb9a9455fb7720233c84088bb2078f5993ef9f197eda889e0c700ade1a2301

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5721c3c9f365d4233217c701965ef571c630f5ee34acf1325beaa0a908329ce5
MD5 74e89bc354c9e6cc16960012dbbdcdd4
BLAKE2b-256 6ddc4f8a0e8572dd28ad3bdab4c61b94f35f1c227bcabcfccbf2b7dbb07d9c19

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.107-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.107-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18e5234a2faaf0f0dceb51e3edf3b8796f94951b0fc70a200d0c46db29e43831
MD5 2df78c30412b9b065812b791cd15681f
BLAKE2b-256 1b65941bcc09e3e684f01c878402299f0c0f80a8c21ded881043083063c8f6da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4576ba67f45d8cecb5674f8e472b5bde162185d1f00f3f4870f53bc7cff26e69
MD5 da0e26d5f8c90277a54b813976408f61
BLAKE2b-256 6f5ab5aba7e60f0a5330b930de343e75aad0f6ed97f58a545785a591f1a16b60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 72e9f77196a5df9ad39eaebb577434576982be7a81054ccd554e18b9cfabd581
MD5 71965fe39b95cfe63bfc629db70bce97
BLAKE2b-256 10b1564b33993b17b77df15148b519cea88a4ccd9700c558dbd964d28926447a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ff6c843cafc3fd57ecafba912b3f356a4afb45353fcdc0307c1f1484d8f051b5
MD5 ca8ab1e6bf7e10e09ca20e94de2698e5
BLAKE2b-256 25fb89ffd044fc7aeb5be63303dd6cda268159f711f7b7aaa855182cf37ca982

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.107-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.107-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09ed77fd74f99b806b31d4b2beb453f324f9c59bed1415e5e4490689a1f948af
MD5 33d68c0bba5ffd379c43c8bbcbed2df3
BLAKE2b-256 99bf2bf3fe20666c9c1c948adda6cdf63cc8b5f0ceb6d7d16d64a9ea049e2094

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 959d4e2876f0bcb207661251f7c38a2f529d3df7417fa2bb847b5c1414ec371e
MD5 649d6fcddd06c6460d673029231ab7e0
BLAKE2b-256 430a5967df8060a636b6f45a7d0c8d1bb51908681e8272924da0aad06b1f3958

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 37cd66e212ba78958a013800ef43edc3bd4b785911aeb7989097590e3190c526
MD5 b0ebad79481ab475b3a5573d15726676
BLAKE2b-256 7f5f4c99180ab2221b12a594585d020a05a15112f3538ae478394e7bd640f1d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.107-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.107-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c19ac1189d57675621715b7fc65e367bfd2d86caf4cf4d6374cb93e0f68094d7
MD5 7f5d069a05c302b1e52e7a5d708b32f2
BLAKE2b-256 8f27ca4ff6fb54537f97801b133a76f731742e0254a72cb751a7d22c1bbea2f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.107-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.107-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 014862b32860b9a20decc1ff1729bc58eb91995c0487b98aff058042a3ae6853
MD5 d0b64401c581d16342b45d804ad64e81
BLAKE2b-256 10f1a1c92e00c2d5b3fd617d56774780de45ba8a0b2d10700bfdebd83b01620b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.107-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a6c577dd7a4da938cefda12d013f8e3466dcd4abefa981a0d59e221dd943256
MD5 bb8ed1a71dffc27e01553b42be39e9b2
BLAKE2b-256 67d7640b2d7852449f3f12344439bfb522233f3bd211881b9ec70ff54c950375

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