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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.285-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.285-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.285-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 330ec4fd2f62d62701a221e998aacaf272fcb2408915eeeb5cf39041f8c39032
MD5 b3783a9dd71fd165fb90c4d38ad75edd
BLAKE2b-256 f96456fc286f86e560d3e4809be30e7b895901036c703e13fa8e8aea66b9fd5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 738291dc264324aef1ee07f99eb9ad0379710cc9475a2c0dd46e6476ebd8c3fa
MD5 f85c2f92f033f7ff657f832744976b8f
BLAKE2b-256 11bc6ae927a82d5f2b586da6e73a2a17a1136d486be4d11725eb85c7758c9827

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.285-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.285-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2aae8e550a78da4028dbacfd5c8849868c37af0a1775a16a9437633534b6e70c
MD5 cbc4cddded953916ac0d540cc06e9d77
BLAKE2b-256 9fdd6337c04f2687c49a422300986d090059054a9739e1a1bc6b3dbc94b073bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f8b71bb5bd8cf8418a2d7653ad8db20843c8753bd02242c06e1186f0d275d4b
MD5 665c11f01586eb015112b8b6bfd3f2d9
BLAKE2b-256 e24b1e12d3cb4b33c46b72ca1e0619fb43d4576c82fb8120c010f49b8e93d6fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d44ad5444ce98064cd0ccfdfae3e749942e5bbb0b4ff5f32b0ffa88cb7bd584d
MD5 b7d4513784437b68981d6168e98d5dec
BLAKE2b-256 615ca933dbd2c1902aa4ee206801a4493364f0b019efbe454db7e2b3c9bab739

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 85d36300be1253f61d252475435f3179815fe2a0f2caceddca463309fdc359eb
MD5 7f096ceb4921263370b38ae066a4804a
BLAKE2b-256 522cc592a1badd6f78c908c0782ba6daa9683848306b28dceb6770990bcda820

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.285-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.285-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24f9da1685584295f48e122a386f3747cfe0c60af3a89bb371351a928a7471a2
MD5 f3f814f779d4994d4f220a3b3e8ce184
BLAKE2b-256 e1b9b1e8c1d35cb72c0d91037f71d7444c9569e85cd158f35b167a9df3c5c93e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8702784d413b0941a5c1d1b352dcb3e2752b9da226f6069edd6171a66ee0540
MD5 6d340781a3f349cfbc96285b63f56c46
BLAKE2b-256 54a307e694c288c259767ded64865a8e3007abb3028d744852ff5a19b2e8e877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bcf09b9b56478490fbf7f586a7e780e6b676caf4e5d978d8814fe04fa0356f29
MD5 a439a9d2820e4854e65217ba999d1d36
BLAKE2b-256 dc5d45898d414e9c5b8ea921e8b7111f8fdeaa11863150078c449f77aa1de57a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 04ae2c28b5c03217bd1d49d07842b17ae4b5d1872227d3a37ed798f8996525d9
MD5 3517341b5b1dede6052b9e09a6979cf6
BLAKE2b-256 29705bbbf4ed9d2cfb552f792510e775b137a0edc003ce38ccc7bc173f64c64e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.285-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.285-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67a686423e897dbb2f586295178879f927208542feff45f62bcfdd796b9954cf
MD5 25120ee1c5d70758e9c2c9f94a994036
BLAKE2b-256 d4332c2cc64a652c8ed0f73a49fe504a61697883a532b9a3ba2ae76749737502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15ecede1e4857f24f3f1024e7c7924b8467a58752563b8681e472beab4825212
MD5 0b6de5b8eb4fa7a4add9ac101eb8a3f2
BLAKE2b-256 f8942e6e26e776cce174842cbd4b7d095ae421ddbfce3f504d32c593db74b59b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4c9a5cfb63217f358864ce793e0790f94a461337020a908c5cf05af214460449
MD5 ebb0263333a81c97b42fbce35fc2387c
BLAKE2b-256 2957dd898f158edbedd0ca420d3869fec08a68b6952cef495f6f5dd002b13e1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1fbf3896ba6fcccfbedf0eda313b26fbf328c599189753875e0b9e026e816c77
MD5 89f33bafd95fa6ebea6433d71611d6b0
BLAKE2b-256 a3e059606851cb3a4e37c24175d5029f7fce6a99709f6e9273da1bac1bdddd1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.285-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.285-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfe30ee9533dd2194124380e13dc1fe02632f19cb0778a9e2318aa1e2a5d8358
MD5 c81825ce660f0aa6707244cf69019674
BLAKE2b-256 f8fd928b887124e110a5e51104d530309f1a250bd39ce47d5a0ef3cd57eac20e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5415167a54cd1c8efa202acd84a1f6ef526c50a4e90785435f0023cb6119725
MD5 04679e06381b05b8ff1e1923a92738e6
BLAKE2b-256 0c4f80ab9182fd82b315733d576193d359c4dbd14b8eacae173a7582f459f6f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b657682cfa39b6ca6c339153767ed2d42fe9ae600fe2402e8b140c6ff37d75ae
MD5 3fabe27d5b0e1d3757e38a74f0abded7
BLAKE2b-256 2f11c6a40689d123475542b551a7b5986be47883fc47d2420ce295ed8b3c0871

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.285-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.285-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5ecd0c238305f2d93edab5d7f96aa06eca1a1e4c61030dcc2ba15b59840e81d6
MD5 0ab73e91cef1a80caed4793ce5864026
BLAKE2b-256 d87c7af7577fccfe0f6b951d8d8b7db72bcc72f467093e18cb9b46b09e534645

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.285-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.285-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 913d0a5a32f1ac9fc074d1afa6d86b38f3c4ebbde76807befbf3a20884538a35
MD5 fa125de26b9c5c2ff25c962c8f3514c1
BLAKE2b-256 0785fa78cd76ebeeaea5c7ff89a600e0453850d0844bc371dd162ce7a11f7d5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.285-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b3665edff427f648bd583aeb1a54dbb77c6ba2bacd0ff0b1903e33fe5cd9436
MD5 5d8e7b95e801903ee16c83ad0c420642
BLAKE2b-256 f23f34ac70900c48c5b72392af874ae38ad3fe18d6b269972a0be773dd73ce10

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