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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.193-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.193-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.193-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f47a9ecdd3dc13b0c663170effa1587cf24495cc3d5421d2d387336ef5aff539
MD5 3f2e9dc896198919c4d793b978ff47c7
BLAKE2b-256 74112995ccf07cbf9a41027f58139c49894f318dabc55ee31b14f8f506226294

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9811152e61759ab69db118a7e9d7c5dd913c0b00e4a2a827733b5668c68b0f70
MD5 38b4df5d4ea371323f9f89853858d22d
BLAKE2b-256 1fb6277570a3b89290a604bd289e140aa16ccf68a75159288b4217048df03fed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.193-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.193-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df17d191aadbfcd8b35f8bdc3a350821e5894eca71ac351a0335d629d78e03de
MD5 2719fb5fa42989028ba851865c77e7b5
BLAKE2b-256 9ff0a45f10ed64cd971cb4041cc8cce5b903ad3463ed9d5e6123f296d2b64355

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50c8f4d3ebf5627b90baab2e1dd6bfcb912aa90e1de617ff40b337312975fe9e
MD5 28295ce0d08006814f29f5c0b0517d0f
BLAKE2b-256 3843ebceb990b83be4c6f20494063e0356103d4ef858100133a669240b3dd3ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5cb5150d081af81386afd03b3b1623a09b8475463a6e9714e9303cdecad7d904
MD5 e24a1f18a7024400a1406ad105ce5c13
BLAKE2b-256 5922140dcf1f0aa00632ba1f96e6c9312642bfc67678bf677e705ab18c1d3ccb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6f93acc45d3c4b6c2ef7fbe95048a4a681585e84aaeb9d53ad19ac69a7c5d681
MD5 9ecc2766737050cead11451893149dd0
BLAKE2b-256 00cc6c3ab3e8ec88c9b405f78ff69c5beb78350296272ddb05e33aca5c816ff9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.193-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.193-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58827b39bc46ca5ed59d9096b7718d915c08e0851fd82d86982723ae5babe3de
MD5 83868a38f831cf53b9e07c8abfca803e
BLAKE2b-256 247cc18878b365880488509e7ef299d774670909dccaed053a5f5c1347f4841b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84a95b8e1e2eec8efcfaa1926fe4b4415608932e8f95c9c9dcf3ac80d37d4310
MD5 4f6792307de7cc7271a53e4cdd35af2e
BLAKE2b-256 4b3cd12391f7c7594fdab510c912116f083b0c9e656bacbbb031188191a80ed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d946a58269b6b340b50b28dbbdd700d94f8e147818c42369f88e1e84f6be2b48
MD5 3780e38ef09af67565e67c3f44307dc9
BLAKE2b-256 ca85c4b5d351550f998e8545129348903c314aa4cc31335c4b62a5118001b9f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 58a2e7ae966ff11ef6be2f9a71751ec35087fa99c5ec9eaae9545d53e0a64bea
MD5 90d090b8c1bfd2d4e6722fcb52162ef6
BLAKE2b-256 335687247092a389edd8bc225b2fcaa1acbc6c3d4888d2adf3cfbe7aa2793af4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.193-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.193-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1e27bf2d56bbef34b45e11ecfb0028b2b0efbb3036f9d4015f7c9a3d5c5d1ad
MD5 6fe6cb669f5ed5bb8dce2ddb9325cab7
BLAKE2b-256 6e553a69dc45be7201c648bf9ff28c24f5ba4837cd7642cdb788989ba6e01130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6030400b3d6efcc9a9e68eb05e067b72e5266c24a7c6ab061acc5740d370cf3
MD5 dd46969b75a5a60254dda3bcd2b4ba4d
BLAKE2b-256 dbe1cff939fe4866798b0edfb212d77eb32dc896086c542a151fd9c06fed819e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5e7efb8d3d91cd67bb19a5a4a06696a994bee2e53e21afcbe4e8e57670dfcdda
MD5 5e5cee2a35f4ed0718eb41d80d6e3aca
BLAKE2b-256 707a9d462b8bbff12b0d1d3260c2c49cee0eed76f111499047ef763145a12ad6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7e8fb93dd9853caa030cd9c2eac0774c0d5f07a18576fe2fc2c556149c55478
MD5 6f65572546b9903a10cb477a67b7e8a9
BLAKE2b-256 8658878182e1a27fdc302a42a1392d3936e708cdfc5a5d7e4d297860c6dd4995

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.193-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.193-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d13f5e0693659c664d205dce14048efa0bf85171820508c49c07a3a93c0e5ed
MD5 af4cb0ce767966836236894bd436c2f5
BLAKE2b-256 d7102761523994158dd1781be93f22d4e3cfc7ddb13f98d81d54cee3fcb43f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c52682e1211acd6cf5345e9b63f84b93a1ee8b5dcba53bfe16b810e9bb1b180a
MD5 7492fe72c88d226d611fdc200ce9935c
BLAKE2b-256 a63dd6f16064d09f1bb3b2ec996ea5468fac2e91ca062f6b9daff77632f75da7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1740b6c88c0b54f368821f4d9d2f886aa248baf359ee6a611b1d9a420790d1a8
MD5 f33c76ef6654b918ede63611fa35d284
BLAKE2b-256 277d8ad35d8dd2dc8ca184ca673495a7f6fdbcb92cf7b5da84e9b92559eb7359

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.193-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.193-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0a153b1ab888be14371b2b58bc06fd8e6b27ba0c8e40a4a7955be9fe2b076113
MD5 a446ea4d1e07667f549e099a02665a2b
BLAKE2b-256 c378dbbe468e743ec6749a88d40f2fe58fa75d07b835b12175728a6b4a8d22d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.193-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.193-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 249b7159ffe0c12fb0ec9b8b679ccabae9d300e8075c500eaa5f966a38d4e561
MD5 c6f05c8bc977098125026f69c8084722
BLAKE2b-256 1413b6a91498ed593f34ef1cee764046afc54e9fd226da3beb00ce3e1a78a2e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.193-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66534770e08919633118dfd6a1fa643567ea58f79f50b5f86eb58e8bca71e94b
MD5 cc2528a0e7cdb7f6b867d14d33688d0b
BLAKE2b-256 2b845122a7ab68d5ee40524470690513c04a02b8d19fcd822e4395cbbbee5801

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