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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.273-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.273-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.273-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 43a284571dc6a77b2e2e2c63006cde44c633f5bad8d97d794ea7b1abd7d6fa20
MD5 35bf1a9b76d3195f1db7e677399d8d6e
BLAKE2b-256 33dc5d60f11ec20b1270e853a4b7a5103f9a80ac704034c5f882e2ceb1b097b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e8594ca09fdf830824cd81ad8328f2f59077daac12a4bbe291e84dddba2338b5
MD5 f48b96df9cebbdf6daa765d8dca5d5ff
BLAKE2b-256 203c16ede003b04eb0063762fc25d74c6a0d12572a2db1aeed2b46128bac9451

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.273-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.273-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e925ec5c44e26b8dae472491d87a17ec6f5239527c34821273290f5535b7c454
MD5 11b0ab93aaacb9c81c2404aa7b3588b1
BLAKE2b-256 2bc092b2c7302bb1c83f1a1ef3178f7dbb6c9d65d69f77fd3284dc01dfe492ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d4446c326264560198fe26c8c98aa9c02d78ed4f001b1d33fc0ed050473c646
MD5 b67ad997da2d49b66d90f83abbba32cf
BLAKE2b-256 9ee860b9611623d84de3f104bf7972c3e9675b27009d7e0a8b64582cbbda92c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3aba3e6fd73935f765b4372930e7558a90f77b8a28b05cf1ecdff61eb4e1cea7
MD5 350f6a35475cfbe1851d5ef4a21f07da
BLAKE2b-256 54cb168ebeeba4738e87ff8991cabf14125f4021800fa122b3e95ef56a8bc14e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a2a57f7422f28cbdd74b17e870146a42d1b4b41e5a5dfa7de69046e3ed49bdb2
MD5 f5bbc8de28713cb725097c6e68b4fd74
BLAKE2b-256 074724bedaeaebe80ba4c5ffb5fce50932094a33472500179aebe4a989e07ad6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.273-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.273-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4abc02deacc0d08eeb77ca56e13c13a0d7d534c80312044fc0170f56fcab28eb
MD5 15746249bd24adec25969d8b857b1ed3
BLAKE2b-256 29ebf9edac2ec7ed541e86f6873ccc8928be3a5f1b5d87d042829135b34f6329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 002a91a3782f35f3fc9a087eda78bfdf1fe7fd47c65d29aefe6112c09eec22f2
MD5 d8c43115615ef3f43afc7e3611088d02
BLAKE2b-256 21aa75fa39745df4b6c7276b9fb8c442419cc0ef042b873ea5a894ad194e42ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 234fadbc230e6c3dff54741f8400ed8fd0447ca027b0b6d0ea64d09a540bff8c
MD5 c5aaedcc1bea48673db96b47481bca94
BLAKE2b-256 0e15f5dca323b65deb242d48106219ba34722e4c649ea0cae1f886f2553b2347

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 20a5809394914572a98d0f2669047250c9e42e25fef42692fc6a572400efc5e5
MD5 396c993d3548edf43189810688080ae3
BLAKE2b-256 3e4bdeb85b9f39691c5221d64e043672bc6575a8c0151c870288458b69b51778

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.273-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.273-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9f13055ba304e18c7b3059c70d10c72478b7617c9e23cf6932ffb424b41b009
MD5 7e2ff2764901845b0c2aaa8ac46d7174
BLAKE2b-256 d3ae47966bf3ebdb2df85fc34a2193086f39da04a3c22bc040513a0f95f66966

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5a208aad41137dc8826a2d9d00f66063ef1f299ae8e118ce0ae832fdffb64b9
MD5 d6d1521a5f801fe7d5ea1777f5b6a453
BLAKE2b-256 842d8c3463377d38142e8f3b2baf7e73c0f5b956b09dc7b453cd41a36666784f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 371c5ef38d9dd02e52d83ea4c1f7d8b55c3f9edbf493df9f41d17fb4489e47b4
MD5 5ce0e1c7d5335346dc0620688962a4b9
BLAKE2b-256 af06232fa9bba2d22e0040a1e1884d7193966c7fdadba540a0c120db65862b6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 770be9736b68ca5d2bf6d7e22068ffc09bd0f2cc52aae276bdaa516633d17a61
MD5 2ac257fd4ddc8d56484f4aae5fd2e6b8
BLAKE2b-256 f485055d8dccd21bac5d91875b4424dbe89399870aaa4357dd2345e382959854

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.273-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.273-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ee8c0d8e6c28c53a4b1a7f96aab7e217e35bd6eb63821a1e0b8a3fedfccbfe3
MD5 bfa88ae0627c05456bd9d58097e7ea82
BLAKE2b-256 3290eabfc138e7b7afb0bdde19b9c9c8b0df1dcbd41c00f7abe92c80e6a81534

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69b4ab65e5ff90ebe64720deb1e397707169573b4aac4160d2aa1092324c18d0
MD5 1947b38dbbfc0ecc4d813d94ed4ff8d8
BLAKE2b-256 56d93698f1067def7ba112142702cd2e8db44c29f8a27531f1ea132a0e0ed079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6db3968cbb6285c87624356da0cf2719be76a687f4dc25918a37a8ccb9379bf9
MD5 6d279425d241fbac1cc347c35eb643b2
BLAKE2b-256 e8f9b59ca75cc7e9f8e3c7da20c34299d9949784924357fe5aaf984b2b4b93b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.273-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.273-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a704c85d6e9f22b35faf5444a8b6a5972cba0e79f0e428e81e6a1bc9ad454610
MD5 58ee53dc179fde344b41ff39c2964e2a
BLAKE2b-256 756050d9d5602cd55ca2c261923bb77ed0ad5026752467b37d12222515a4c82e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.273-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.273-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 515313f1ca90d862cbe117759d80e5a62fb37f9f204b24560098512d498d79b6
MD5 7c0c9908a4f0ec763182d8ce098046d5
BLAKE2b-256 9b169fa7f594272e079c7f237059517887206a3d12f1f100ab61f7612ac80c19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.273-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f289cded18af8f3011df9dfd12cac7358138a13d633517382d3c4ba3a4b8f4c6
MD5 cbca32e44ba5c199809ae2beb912e57e
BLAKE2b-256 92263f1279f47c231a8d9551f77fa749262f447b49f8ef6a72a0e4efefefcb5c

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