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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.543-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.543-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.543-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3cead5919ceb60f686339224524330045f3589fe61d26fe3193754fca2dfc57a
MD5 14933e78fe323db590bd53920f262c3c
BLAKE2b-256 bb106924da89122b5f9215c0624c7d3bb83e5df90d61f080e02ce5d15c9edcb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 05328fb4d1466b7496586d618d69da281b84590ba2f7faad4e7dbb7dee0250d1
MD5 9f652768165312c60a3152d01c96939a
BLAKE2b-256 46cf7ab26e511bf2151f4e2f4b309d789668593bf2a88fd9daed9a3a44778a81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.543-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.543-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3697b99fa2824e397877df8459349f8b38ad0be5d07d1662c3cff6e5ee207f60
MD5 dcce59f001f18062d93e9f5e349c1c5d
BLAKE2b-256 961e17fbaf03064a4fa40aa758be35cbc4ba055f45c3560c20c7449e54417182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00cc696b4324c0abd7a5a94f5107fbd810aa72fb67d4c2c3f8f4d358a4fe34c3
MD5 3330dcadfef0b2c7751123caabc9fec3
BLAKE2b-256 0f5a6066a715bd01a1cc28922c3682b5f9d1eed9a19e03c155ddd799bef46781

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3144cf1abc14ff60bcb2ef3f5843508685150fe661146dd24a21a90820242fd4
MD5 dd5436b7fe3b96b16513f39c498bada2
BLAKE2b-256 85a7708261e0c8ae1922f9a0800e1eeb14cd8778363056e32063ff9469fb02c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 924f6e86a747e9579ab7b9d03e89e8b77e9211683cdbd5602914e77e16981e39
MD5 ea2f8a301a651ed6a3a9d1b85561e9f1
BLAKE2b-256 e29dd5cb8d31aaf210d45eb3d231fd45f44b156589e26703caeea587eae10192

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.543-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.543-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a8d465168a2d8b29a202ae19fa5253ec38fde37daa2511f724a35e76018a0e3
MD5 28d7c6720fae66dd1b571b5978a1ecf4
BLAKE2b-256 f82f636307aeb3603a77df00ac444baa221f0897ce79c0efa759039769827e1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d4d483a4a760c7e213177e45493fc087c3b35ad1b1472da6f00b89e66e2f960
MD5 e62faf60c6d276c6e8b3d7da08ea3973
BLAKE2b-256 ab6568fbf978fa2384d52141d9b3c441b7c4eb72bb6a8b8208674dea1c9e0f1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 390b67e6f8dd73b9fc06e409618c42b36a1a7affbd862aa66386530a62c07790
MD5 e15556982f58f2c9ff9d709c55c575ae
BLAKE2b-256 aa3711e645b09882702447b2a92dc3fca4f07ff6d16f736d760c153068b8f8ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f70fefb3d9944d5b7b884461ed92191ee5bd74b7ca1564e27d68e5f3946a19fc
MD5 683c4ed934a3191a32e74064077b7b12
BLAKE2b-256 61e6ff28f572abd1e314605af0ae0c8c52cfd701ecd97915883462552259eb29

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.543-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.543-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef7c7b52bdb090bc57f6cd09289e971cd19afc491b5598bfdf53dd4cafc176ed
MD5 856428aeeb79c6b37d0461d66454981c
BLAKE2b-256 a7fc9e7ebdc60ca1b5371ff8b21ffb2624e89d91453c1df31e3ce2a48bcaf7ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf452faf868f066e9ea633ba6a08b245bee3f0a8e2649556d912f49d97d1fa77
MD5 de9f167676dddbe516bde52ea499f49e
BLAKE2b-256 ff6d88e17b1280f00a6b733c934db89e61b388e41adfbf39d802da65a7facaed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9737d1870570af174faa090478cb99b287ba37f73644c7f0c757c354c113cea3
MD5 c56e06c54471feb9abff488279db5e44
BLAKE2b-256 a0cdca3c98b8f75f29e45ad4cddce3e8cc2d3322373fd8e6969a0a4b417ed116

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9682450823a08bfb4797fc45568eb49cfb53a3ec736d24b61277dafdee37b1d5
MD5 94e1be6243a2b22bc7a3edb77749380a
BLAKE2b-256 93add3033e298dc156026a7ae0470293a962b09f2a63cda55143e64605bceb8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.543-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.543-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81943773a023e09ea2260aa429802004131ca754494479e4b6aab183622c45ef
MD5 970ec46f63827e80d5e291d9be476caa
BLAKE2b-256 fc1361a5f5eb6b4d4bd955771de207a1772c7785164ef1c81aa8e9aa2747b520

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5647bf3ac357041f99337378c573f6f941f907d93e7eccfd192637c14d0a30ec
MD5 ee4ab5a80bb1a81819b02027f388f5c0
BLAKE2b-256 23344107fd44d8c2696582581a4d929fdf3c7a4ea33805c7ba64aeb1a17fb7bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ed7d59453a085a982eeee21f5ede89077e03c8be1b0edff8adfe7105c9a7f7f8
MD5 410be4afbe27c4e4a77db912047d3155
BLAKE2b-256 c75c5a06bbe4c453d00f577e793980e68dee16e2f018f59cbd1bd11c846f369d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.543-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.543-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 15f9873a6eb629321c9f25a422582432aab5d90d2c2099a5905f4941cce547b4
MD5 d7cc46cccae77c9c1f6d35e06a2a9a1c
BLAKE2b-256 c17555fbf5a06ef69e5830bb98b623cca886c8fb6087eee1847a73f4ea113a95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.543-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.543-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0cac85dbe7a396e801df65b454a04adb91d01820d0cceaca35a94f251933b5d6
MD5 477334f45ea062f7d9e8fa946fee89bf
BLAKE2b-256 7989b7628b10a891413ab30df0199d8930419d19848b1398091e64d8a5e7ca2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.543-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a85590820ea0342067f8b107df87a0ca221b0a053be847f4bcc081f526467f23
MD5 6e13647bbabcafdee75c96703d476674
BLAKE2b-256 46b78dfb74f3ef107355bb7be142d556cc6921e03112b5bcfc5c1fb4b527fa4e

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