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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.55-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.55-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.55-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.55-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.55-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.55-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.55-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.55-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.55-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.55-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.55-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.55-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.55-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.55-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.55-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.55-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.55-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.55-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.55-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.55-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.55-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.12, 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.2.55-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cb2c9fbb0797180d9cce5e61d456459cd2ecc60c9eb3f8b58a6259e4a6e80d8a
MD5 e0c800f5f78373883e8baea2f3cb3693
BLAKE2b-256 668e6102f9d10105fc39dbae751462f5e4cd5830609a44ac1dbe937adf7a41d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.55-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7631748683c7864170303438687e3bfee6fd14d1daa81f2acc7877a842feef9c
MD5 bf411e14117314cd8e83d3e1e6a71431
BLAKE2b-256 a44bc85fc16c932a232b9d028e06b6886a10bf658264f9dd25fdf393cb670068

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.55-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.2.55-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ca053869240ff5c23ac9d28eebaa4a7d0d9c36314c3e272df86991138a62e84b
MD5 ea05af0c71ac966420caf52ef9a38b0b
BLAKE2b-256 b3265844f9fc6c6a07134b7219e02d9e7e8321267a978e137471aa0849a130dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.55-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c87c8af32bb6335bda3f2eae8da0a4bfa6d087fb8c3a9cc3eeeedd44133a08d5
MD5 6a0b057366523e41ddedaf3bc3c958e0
BLAKE2b-256 30b522688aefd5ab2e7609fd47fc0a66c7fa155fa98ba3afe14ffbf0523e0a56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.11, 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.2.55-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 131a66d6227c6db0a7d1fa620d08b727d5c39800964c69de86265a2544d41758
MD5 46fab24a889357953eb37d021e51b090
BLAKE2b-256 d85ba448fc0525d38bea208a50fee3876a974a01583bc26105e20c768c81d002

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.55-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c9a591a88135016bd099daba5c4eb2d3d83347a321cfa2212b6644f3f9796fbe
MD5 12caba1d8b52cce094d95bd1e4a4aedb
BLAKE2b-256 bfda274761ce69d8bd2bf36262948fd11513a7ffd7864d340d85788d2b0adc48

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.55-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.2.55-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebab4e3f1d0d7bacecf41445be97727bcb6fff6edc878870127eaed48fa9a9bc
MD5 970d439d665349ee840a95726b879263
BLAKE2b-256 d8365dd4a9bc850ba91ea3ee8ba9c42d65b27d1d347611eed00448d65d3d5a63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.55-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4aff8518eb3e5d3145bb983ff52c0236f684dbdafec479f6dbfc027dab9ce9bc
MD5 776019a0e8512cc8f62deef5c6cb3c19
BLAKE2b-256 8fbcf5e07ae737b5c2428fede0c9501736bb9bfe9f81b5415df1f81f0f156a4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.10, 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.2.55-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab558a466b18a7e65447f77eea56a9ca65fedc6ad6941acd22de1bd5abe0e5ba
MD5 b774e2d758c3fa02f51c91cbe84a15c5
BLAKE2b-256 6a32917285bcf92513b787c97f39caa1308ed97d09ee798f717205f34b6db6c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.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.2.55-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4838ddcd37c2ea73b6aac6210b09aba3c293a897de6ea2871f4665097cff268d
MD5 15dd45915ba460bb21df6584facf7621
BLAKE2b-256 70617ba516d51f328a7d0d149fda4dabbded7dc76274be993ec91dfd3af2b703

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.55-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.2.55-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 27a15288282de7954d9a3a93df080381169178afb9df63719dfedfb2804bf170
MD5 e9ea7100d0801fc1f6a3ad31f451377d
BLAKE2b-256 bbec169d1e456ecadd05abb1fc796dc96578b011cb98534f0830c09c36dd4def

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.55-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4ea295e85bd73d854c9aeb745c9aabe5bcb96d9bf6387be2902f355bf31cf2a
MD5 0cb0d21bd050fb796c87aa8cb7fdb9f7
BLAKE2b-256 14bc865af268b57315c6c7f4fd36bc6f37e90c90ae70d32027bd21ebe4970797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.55-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7912ab7c58cf0cccf168270201c86647b5346ebacaaaf67cfb3c487d825421a1
MD5 0d05ae48dd13fe9706434e61b79a3731
BLAKE2b-256 47f1f3b1e8118e25ffecd5113039a20d43433fdfd4a9aa84ea89088d1e6db409

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.55-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 731a74b37eb79458723737b2e9e0c50ad04eb9d01ad19efb831a34ef935a8a56
MD5 9bab6a33cea46b14b602986d173a15cf
BLAKE2b-256 50c98e70b622ca8f8d19514a1a555fcb5d171becbcd5a971da7793422c9c87d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.55-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.2.55-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f93ce39e38ad3f88285a58552c72fae7b42a05f363bdee2d28cfc8269fa5991d
MD5 f832b9381b70ad8b076c9726e76e299b
BLAKE2b-256 e3a682ec952f4fa94c95eb03b100786dd80b42d9296f8f5e903c430cca2d0e6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.55-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed0b2c8f9edd9ff28a0c866bb3723493c765575d2fb2fd25b4f3343de8cfd54f
MD5 dd88a90404bf3d5d9963e065be33dd8e
BLAKE2b-256 ae13526329af6696e86595e6277987c955ffcfa3db0398261e4e1769e0b47091

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.55-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f6d7ab3a67341806ac4d47598b6595006c86ce802b4382a7c228e9e728cc7787
MD5 791c73679ef95db0989dd7716477af60
BLAKE2b-256 c2ae96e1d8f0208a4593bef442bd0e3971dbcf2eba75aff7741f85bdc64c6cf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.55-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.55-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 64e6d0135abffa2a30f1f21a2749256997ee17835f9800556de7aadd6e07519f
MD5 6ac7d692f544777865094095b645f965
BLAKE2b-256 c09bb6760bc42f9f6cec60044072dea37173573b58ac9c61ce9ee7d58205644f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.55-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.2.55-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4fef9feeae05f737b14345798749339c533f901650fe8df8f779bbf1cc5b73bb
MD5 5ed40eb8d671f4d70b2596f8b5356614
BLAKE2b-256 e678face32e0c29e207bb92cc2938d24a9fd7c579473d24c22eedb0fa5c4d1fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.55-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92309ce8c9364c4847e56d701117fbd6c04e920a40a4027a6ef775ddad872d85
MD5 e7ed0ec0d019ca630a8b2200cbcaca32
BLAKE2b-256 495af2c4801acee79c934ee27ac9926ac36c7a82736cb88e7165f44bfdea32d6

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