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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.36-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.36-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.36-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.36-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.36-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.36-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98d12029c5e7785eff5c668e60d56efef2bdaec6dde46271639d056a2b424ea6
MD5 3d341422ad16bb7065766a699ee07df8
BLAKE2b-256 3f31a0f5593453c81035913b4d032bb652b52a67388c731a056e81d386e701d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ae077ad7a2e76c184d1344c2b0ec5c238d6e5a736423eb42c04da9a3fed9448e
MD5 3e1f6c05eee097b9cd01e24172133ec0
BLAKE2b-256 1505694558c051272c3c3e0ff6f5f4a06e89f78f906476580d92936ac95af6b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.36-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.36-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4818afd431f3e9e0e6b3370d299508511b1480de6df1e3ba635a9816f7820b6b
MD5 118519d3936a03ac7da9bd4577aab6dc
BLAKE2b-256 cb42f96868fcf1ca79c2b724960938d94fd9e7f0d9ff99d6baf576c7dac40e93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.36-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 361aa18546288d521ab5bbc37ca3b8a79f16b7323d443340cab73675d6592356
MD5 b7c114e6fcf135a9d0c448f1cbcd72b5
BLAKE2b-256 84a4b3a89269423cb654578e2eb0a5c510ae2add8f96554744e33154a7dccf2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7f6f740d7bb3304cb9898bb454becf39f280f1120471d6e3f003065f33e643c2
MD5 0e4fcce234fe612d800ff9a1b92eaa89
BLAKE2b-256 7c70c9cb3223ad3a32f22cf395e6f78fdc1b2ffa5826cc5e7c3ef92d9ad17d47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e28fe564c956d5b93b09c9ee85b7e5768c15741226379ecc637e1d3f34a574a1
MD5 57695a1454a760825df94d431ffd62bc
BLAKE2b-256 8e4411c4ec3551b61efa5364ad500a275cc1789ab3ff91600d59e597e4403cd8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.36-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.36-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63b4042f738e76e92d75a9028f5903a8f57d92fbf3ac46eb89b4bfb5f2bc4991
MD5 0db7462615c5fe3fd6c9d917e6f51b7a
BLAKE2b-256 1b17cacce892326a355677d8502c165d2b57d933f5d0b886da3cbd7a35a01208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.36-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 175e0134a6282266b182adef21b1cd8695a42b8ae1f61d883e29857ac09e7d26
MD5 8b7529bb75744b2bcd6ca8a03e2219e7
BLAKE2b-256 d78c926c5616231e863946de5d916a832509336910c0a275428da48ba7e26d6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.36-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 236d6c95633a48784ff077be7268d6a8d7d3fef4a373d308da18ae7cdcac0c7b
MD5 62a1e3e1ee2096591ae3dd5662de20e2
BLAKE2b-256 6daf1b9c3f8c24e3dd2f0b5358874442e6762555e3ce549615db13592753f0cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 51a679fc849b749d639c41280d21da80dc5899c4f5223c5d0b651d6bc5b01c76
MD5 87217fffbda375f0dca06233c690026a
BLAKE2b-256 6d33885169717d619daffc22cf1be9b7703e6fff788887aca1e016fe32569b3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.36-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.36-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 478a187e3783c5c7c2cfac9cb43a85eea9398b4e80f3fdea6e2a28962265c9d0
MD5 acca0d1b2eb9786b9827116233ac9684
BLAKE2b-256 ad6d75516e296d72a266f1bcc19f113bcc5b2961ab312d3e1ade1143404b5dc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.36-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 896267af1bd07d926b9adb8aeefb8172fc8860f9ac74c1dce353a72c6e5674ec
MD5 30da3192bdd992ce0beea679aca4c081
BLAKE2b-256 3f8a0d7306eb52f7e4be9762c246fd053a9471ceb647e76b87213fc978a6faa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 985dd86941f5c7e4fbba713f2e731e2782c2a9c53ea6f15ae8a30601109dbe43
MD5 de91a8819b2252e14c257d31d95f6529
BLAKE2b-256 a821e2e073e0f46c0e40d8b2b699938b0e7ef6a1dfc68aa9f9a6c7b18ba23d76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ee1b52ef7906e2c0c885b3083f1b33612896112e5ce037cde386d4a6eb18610f
MD5 cf81119d346617bb6c5f3ae2dff784a3
BLAKE2b-256 d49461d59e84472ccf1735f26c7d5e18938580726c54b3223aec7aa7ee44407e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.36-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.36-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8eed879b811295b55949e40b25eca727e936696a236cc147c5899a9bb977eeec
MD5 3fa0b25145498d354bbfcbd4af641f52
BLAKE2b-256 bcd10821c539f9d07fcd3409bc83f4e8ac6a9d9dcf0a67331038b944b3d21893

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.36-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c06c18b4e372c6f60df554ee66c1ce13402910a47aff5d965370d6710897e65
MD5 f2dc1e7ccbbb50af574cdab5175f7c6f
BLAKE2b-256 4fcd0aadc9f41960f63a150a97e43e55d9db3bcc3cc0a4b685a32a3a62309261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1a6990e3b045e347d5a47c75ede88c59656e82dd7d728c96f796b9f93b5bf5ba
MD5 e1afbc22260d4723562f1f223095a1a6
BLAKE2b-256 236ef949b97b0151a3c008ed85100a439cbf1b888eb6d8d546cb6e8843461255

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.36-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.36-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 676599abc8051a3926b55f7955dba98209ba5dcd5e7aa7447f8bde165f0fc077
MD5 5a6f2d068096e25252b41ff55e31a869
BLAKE2b-256 ea5204c68dd57de112ddae5534120f8ea2a8520ab3f0a05e7bc9d476faf49baf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.36-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.36-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1dc44a47b1b28c6abae017f254b7ec74262f1dcb0c28ec731952898e945b6699
MD5 e721050937d6049f21422f6f256f26ca
BLAKE2b-256 3136f9cd0fdd190b41c85d362971adbb161b98413653c08adaec1c6559dc0196

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.36-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 861c707d8165b1d6b507bf684d4e3f4c2b5b1ea9cfe7e1c74314d7ce66c3c55b
MD5 9a81451070060450a32a34fa4b9a5891
BLAKE2b-256 d89d6d7840a90b42d64f67e6e82a14dd372d4862f1a440573c01df0603cbf700

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