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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.870-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.870-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.870-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1d78b0f3e3776957a448a4e0c9f88fa494fd0e25c6cbf80ed49f33c093f7352a
MD5 a6586aec24f6a3581b18346e56814daa
BLAKE2b-256 de75ba2c669dac9e2c4ccb099916654a98ec70cda14d79cb82b814496cbeec0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 065c131a7a9a4c71573b86e5658672bfa11b9018bf2a2b5bea99d0c9bf7ef24d
MD5 fff94ede44adcf3125598c5915363986
BLAKE2b-256 055c233de3bc6658821c56cb39c4c31eee57e0ffc14cb12aed8c0258ad945276

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.870-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.870-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf9cd82a3fa833aae547b53ce3c8485619742cc1aecd1228cd551b3883071d1d
MD5 cf359f940666b8bcff7dc795f862a9ba
BLAKE2b-256 eab67b97ec79975f9894978f8cc8cfea5fbc1d5d80ad8875c1383d897ea812bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01e9ca6e02795565aa2040d1ce5238787fb43e758514262e3ace6b9068b1388d
MD5 b086ae62cf7e8b0213470af95dd302bf
BLAKE2b-256 96fd7aaaaca33b6cdc41cab34e5d7a1dd79b85da13b1c8ada24c3dedbc71f21f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a13dc4c530a2637df8782953cece0b316d83bc867b1d1fa4af383ff5f789e201
MD5 e86a26323a36d3d6fa8b9c4434a03c18
BLAKE2b-256 0c8f880088f694221d70afacf80cb0875efa1018fe227e6fd6a85e1cc545eb0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e2f171b832f81a7de0914080d32775be0b119767ea140ac7846507fbc020f1ea
MD5 4672210b1921ff7361b1e8788a41f22f
BLAKE2b-256 6e00d10590a229735b830a32479b3c649e16795cc3dbf0d3023c49e679f72cfe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.870-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.870-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe84bfdf5244f2d230bb96810c8e87196d9296e5a2a03dff8e38c6dc1fb92a7d
MD5 900aff90dd6b86ea746b812c85eb6ed5
BLAKE2b-256 4ff08aaa3fe57a8e05a7798ca07be520556cc5c4e0166c1b76bed41e28a271dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bde722ac0b2043c011077357d0ad3d144599d332239df42897793a1f2d82cae
MD5 e6a00a5af8a43013d36741aea1a6a39e
BLAKE2b-256 3245988a6489f281391aab3593ade9ffce9071a64d482ed36596ed917b0d3407

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 93534ddbd7a3a653f8e5eb04f5b944e52e9a75184ba1151114baf3196fe8f40d
MD5 1bd2b04735afb458cd77429675664aa7
BLAKE2b-256 34b17624d14b3824919a74a753469cbb8d0b531b03ddfb83a7e8b766cd2fc05c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 30c03fe57cbc2179b16abe1569151d9f40af20b1db83ef46a72c29ebe1dd2f47
MD5 67ea026ce59a2b519a3f29226953a1af
BLAKE2b-256 f83ec1cb4c0984a271641642676e810d9b802cb4fb5d6d300537826e5335ef04

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.870-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.870-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8797beb003eeb3c431d9f70b3fe7759d567efc7290e54faec2f84d84ceb3b5ee
MD5 ee66577bf2dc30084a059931b62c4d46
BLAKE2b-256 3d997cd880e8d588fd1406af179a74f1632980b998482eeef71fd6e51ee90581

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b88de19fdab5f7d92c5d30b51be417a516a9f6b128bf128f97b48b645da6438
MD5 302866d78f1b22b94b6c7312faf7ba7a
BLAKE2b-256 6b1d3f97298eae9e1163737290f79a882c37acfd4d50deb2f3a6e32119dab902

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cb5b37c79c20a9a75e4d0effba95831869f85ca1ddff867f509a48722dbf762e
MD5 e8737e4a53adb1d59505baaf357ccaf8
BLAKE2b-256 0fb585941bec765a2124d59a9878dead63168e4da23fb90ae477ccde9fbe5d09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 44b437331fe31d2da36d52cf9f7a6ea8f020a0adc96d78d9567e46b2625aba39
MD5 9f083cb8dc44c483d1bfa5315ef8e8b7
BLAKE2b-256 f20e58deb8bba9a78bfc885e4e34275b9260d5a9989f7bdc6fa44955a3370cf5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.870-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.870-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ccd0ca13888ced713ad6d40f82c723c19eed2a009a6d197163ba1e822e174fa
MD5 5fed7927b9658fcd6faea6591075a046
BLAKE2b-256 b0f1e958b5e7ed51ee7a761cc00f589184be5ecb7a3df3f857564b3d18df30bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfccad262bb9a480399403ecdacf6b2ca0762252a75b7a4865dcff12708532ed
MD5 0eecc7a9d26796da39f7034f8008c52d
BLAKE2b-256 f9505bacb3f6580419f0395a70d049e780b547aab69b6354343a5e8488fd4cea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 60f9da472bb5640f23fc79eb459cfcb63e69d2340af48afe4fc32c7019cef3f8
MD5 9d9b5fafc0f0488d365370d4f13ccf7a
BLAKE2b-256 1a5149e4ca10b4fc6d516b2aded5efd7d701c68c05b353826eef696afa90065f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.870-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.870-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4d4d6188a42cce775402686faf2ab96c028b311eb1375125cb00418f5bb0a37c
MD5 dbb641794baa702cc1415228e5524da7
BLAKE2b-256 1c2a904bbf8e5b5f27fc0b48f994cad73be87f047d45719ffaa59fece7953326

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.870-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.870-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c02872d2270affff84f31f45522329089fa9fa3ac26c2556b6d6cde6e03c0e7
MD5 4fed56699fca25c1318ee2c7bd6441e1
BLAKE2b-256 fe54e806f487149535de3e1a30b2b80a91b47e109886b3d8bc6677e879398482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.870-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a18efb0464f2a9ca07e0da49f35d2e9a07ee59b55d42c7e26f35e2626a6a800
MD5 2142b9f3166050874e19f250e547cb09
BLAKE2b-256 82fdf9643db3d6408f6450d995a693600376e7fb7ffcaa6af76e6b5474e8d180

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