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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.632-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.632-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.632-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f2c16219335f62f993a62c3be829996cabf1ace7db3e94f3403492a84794329c
MD5 13e4e78c68db993e3c87aa99d821c540
BLAKE2b-256 9ed29dd02d91c5cf9617920b015b3a61e77cd8365bd19ac648339e2aafe37fa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e824d37526b907893de01beaeeb263b2c336755174eeda8fd958557caf546be4
MD5 cb524f333f553e15bca013f76d5c6808
BLAKE2b-256 29b26ef7cad12f550acd05b648067acef23d69dde92db38ff2a560a86ae63b22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.632-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.632-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a81af5308ae9ed28ae0fad87b3e77a029e2e44599d994627eef944fe7892a9b
MD5 fc6d0c48bf321798c4eb6aa190b30f27
BLAKE2b-256 65334c53c6980dff2a1ab6da0eb742da3c372e6b1e7ccea3c517d357efde52e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a921f2a906286b85b12ada6f7a28c03583303cec8c90f853d5e957f6e5c4c76
MD5 3955b18f3420e8e667f3d4732b6f2cdb
BLAKE2b-256 c68a423d0866828b584960acb2b0001a823eed2f351849789eb9469f48d766ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9f9a0d2875f0ce283f819d5e918008f6882b7389c7074f4d0ac7a2bfc1972452
MD5 844f1ddcca107257f2cef11282369480
BLAKE2b-256 a433007f01c5b62ce9d7cbbcb067da1f662f979cf16b2b220d259b8d2f0eb335

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7133ad2bf36d8d682852ee6671fb8dd498008bb80584dd2ce2eb78a397dc1223
MD5 16a82ecac8a2c428ba6208ccfcfc0575
BLAKE2b-256 5f5f5f30f6fab7fb955703c0a389fcdfbf434e993a0eeffbcd2712bf017426f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.632-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.632-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f35a8494759f49d4e50b24bd61bc5865f297b6f86c026ddc17d422282d71bfd1
MD5 f8be798248b3799ffae9b1280b4f3b49
BLAKE2b-256 96b098d6badbede9d67b9f3fb804db7e46da26d7ba61b2a634f4ed751631046e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d862002d523678dc51e1227cc85dac288a525aa93cf1ff4afde2219d55dc7a4
MD5 6fd3fd5f230b746a08a73ef1450c6079
BLAKE2b-256 6541863f69c39536437ffe91a23dd7fda8eb3d4fd292b3afa6be4ff699fffc7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 092a1b7c00685512c0ddb08043abf239121b0548b52588b75c8a5322f00d90e5
MD5 abae081154b04e89d66df0f644aa8361
BLAKE2b-256 1c3608373b1db66bb28378d062d65e9a658a832f10eb127f245c4727afa940fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7a406e24492d06dd5d7ae0d5b41d4656be6f92ed3739c8ab9ffade7e5f21c3be
MD5 a3331bf76adee07a6d88e2ae062b31a2
BLAKE2b-256 741494e723e486d057c9a122ecf597291175f56658d70b9ff04fc93bfbc035ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.632-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.632-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 233579bfbaa72d1dbdbf4127a2ea029381a9dad9e943dd7154dbc8b9b37a7788
MD5 45361a8952bfc80123fafc5386aa4514
BLAKE2b-256 4dc0f573bfafbf69f2cdf4694323a65bf882074036c6d3c2f49eb101b80e386b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f57034b9de0011a56236f43a2d83de29544db94cfbfbcdf2a07d5c701f902f66
MD5 db61957e6bcbf244e59e3145d67f53e6
BLAKE2b-256 04b6465219fa168d1e804bb8e6db48aeb87f3edfa4e30cfc9101b0f36a48c73d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 95390f04db1a968f3403ada51f93166917c8ae0a702807983cffb6159238ec75
MD5 ddad5a22e8da0cb581a7dcb761018a54
BLAKE2b-256 b6557d25692282bb9eb26de9a1df47208bd4f42ed00f0143ba3fc78d8c07ef29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b224b3a82531d5d602d5961624d3a8ab957837ceace9b7263d664ac36a3b22d5
MD5 b450fd4aff24104c9e456f17a8453f7c
BLAKE2b-256 5d83fd3bea7dcc53be45c19bdfe8d4b7e6fc52263e1a0999fce4e2f4960f5df3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.632-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.632-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea979d0e058eaf582f73cbe68b837ef9e82475ac0e40ccb2b2c117c1057151f4
MD5 16006ff59b38782d592f6a6aa071eef7
BLAKE2b-256 d1648b9df31f0e1ed2141954deecfcead51a31d48b7dd86b7dd6dfdf1837bccf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65de69bff1704de9dc2ef0dda877d8098b7056efb14912dfe4fca13ac9283646
MD5 a333e73b3c7e7c081ec4eb62bf93afdc
BLAKE2b-256 8624209824b5272c5c32b4f2b67961497ec569f152d0e98a6e1d7cc5acd6abab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b0125795202b414611115d98712754a7d668cf1ba7af17fafa9b067489d44749
MD5 450f64f64e099e9fbb44bc6fe6957f32
BLAKE2b-256 3183664e30de9d2728922e2f84a6021ddeeefda9aba859cdda1e47d5c00b5b59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.632-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.632-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 97ebab145349ff3a67bd9c49398e1ecbc511693336a81eef69b182a3fd7428b1
MD5 ea0a702390848d3629ddcb0a7d2279c5
BLAKE2b-256 99776c78cd74b870c874bd1a942dacd6f3126c17f44f50a10b298607f1c58aed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.632-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.632-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa4e719f8aed5eacee2d93876f2a2998f0ac940f7d2961283a9da771a31019fe
MD5 ce6bc5aeffdcb8fddcd8a2966ce6d4e1
BLAKE2b-256 97b41347ba1e387f91b015bf36585dac70395f1e4adc447fc5d000843c2c4ea0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.632-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa47c2c7057e6bc69d5eebade0b0ae4c8b3526d298c8dbd090dd3e61321bd9bd
MD5 b11c522a773a1308c78f9153f90e359d
BLAKE2b-256 9d7d21922c2678e1d71dd9d20c2229aebd3e926f767d6422be480dc9ecce7165

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