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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.689-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.689-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.689-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f9fc393fd6408c6fb7646498f98f467c0d96958ab3e4e7f5321eb01eb6e46ada
MD5 067c8f977cb55363369ea39448ba114c
BLAKE2b-256 803e373b06d4dcfc1b4f3fe2442eb39a2367a12724f8348194ba6b334214e19f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2595b02e359a7cdb2793ab6cdea26ac79aa998496e0de13b75a495cf907b407c
MD5 2acf507b0ec0cd0efcc3b42761d5303b
BLAKE2b-256 dbd1a90f97d506890f185e9b3351b2f3b74b85dd7963fcc32bcaa95af3d45fb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.689-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.689-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d025f2e5856d419ce8fa088da38a743c7a268377eb33f03e5e04fd7e6f7b81f7
MD5 9004b78aae918d9d9369af8587cf6441
BLAKE2b-256 cde39bcf2d73552039694734b7b227073c437062dd5f4ba0ee4ff4b4c2ceb7f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22104c03dc4a1717c8fd30aad01fa524eed3b44da916205f0358b599bf4f4156
MD5 bf3ef59a8841db8392584f8a6156ad9b
BLAKE2b-256 f65a79aa3b781eb54727e9803438b90e082ae4a5f8b213767143246272bb1b30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dbb635c7a55fd4395dd321103e89cb11b56d1269662a685eb6f76e6802a017b9
MD5 320e07477a0505a4230835a4456b23d3
BLAKE2b-256 90a327321840ffa29764bba3c14f7804be34bc9d4d41eb343bccbe7693ff27ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 04618219580c84a64c74a7208e7b4fb80d1027953170db3592e9d591f65d5fe7
MD5 3610a3a96aaa5fa04660fdab12a16174
BLAKE2b-256 f583c8ac85a5482937856b10a01b38d6bf026754640dacf0095e103361ea7f44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.689-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.689-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bd5bbbf9a4ed3826e242a585fc661efacffe38a18afdd50a4812155927c741f
MD5 0604ab7bc63cc9d6037eb5fa74016778
BLAKE2b-256 0351647e81e550375d936e9c7de1c5f80e6a7c8c44e64548d105ed6560490479

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59c30aa7883783bd0c66f1ee39f6bc36c2433bd14f1bc8d2c3789b2b0f143400
MD5 ce128a5a0d89fb4cfb944352902c0db8
BLAKE2b-256 e11330e95f450e86329def44d7885c861896e2a43548265b8e3bf0718e740399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b2245d1534c45dca3b2757ec508f6c2c1f6f3435ed1a062f2552ef9ddc11031c
MD5 51f19b90e6b38a2083a4a013baff928f
BLAKE2b-256 e626b2d94d26de5ff2f909d9106aca7ee46670ce90c66508429f4f036cd7c1cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 125479971f2e5d2824a9cdaf877168d53257e3dc41ac2464d9904ee68fcc277e
MD5 fc3fc001ec44a9f06bbba93b2058a342
BLAKE2b-256 bc154612e10889461f2b2e53608f359cdf22a07f41a15d710c8dc8ce40e45d08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.689-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.689-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3dec3a80f3e12d503735af14bc0b347bf58b35da6e67daf7be729bce2e0f18b
MD5 8311d84fc45cd4a267c0481705d802e6
BLAKE2b-256 7343b6c788c24d96410beb4df2a16dd60dd97fd82c2e9e0e5d778839c9d5ac68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96dc5e074464d35ce535aba2f7554354b00834f3ee52e74701498cfc685e85f0
MD5 3d3b596fa9e84dac9c284ae8436f95fa
BLAKE2b-256 ee7ddb8ace3b5c5459d2cdf3cf0a4077cf4022fd77dd4db5d8137c655f85e2a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4166973f432149973e0ed10c08ec4c4b30a7839d3f67ff54636177d1defc42b0
MD5 deb0c799765ab6064550028874a2b8b8
BLAKE2b-256 c5b659515043d4a391029d6d5930a693dfea4a514af9ed94a1c2a6af722e759d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 278ad8154e513c4fdd09585e95367293e4598928ceac74041fa56746490852d3
MD5 a5fe5164913f1a8af2eb4b74d8d17a20
BLAKE2b-256 a1cf2567bd7f989e338575a873ea1a75cdc8cffc6e9970593e1583ebe3de695b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.689-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.689-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c50b908ddddc465a595ca92eafa51850744ecf9710ac323ad7363b5bb9b1335
MD5 a2a697448ce3e6fc50e878a5019eca43
BLAKE2b-256 8d66437c8fc7a58b02075ca0190db478e2a335a9e62937ed1ddf569f71165144

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cea9a3e2b31bbfdeca86a15c79679d5033e160dfc5f46876dc1eb336d78357c
MD5 0f46cfcddbc86661a0025de3941034df
BLAKE2b-256 44ec8bb37a39ef5771c53c9457926be5704afc7684afa77f6bcf2eed5cb31e87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0666a6166246ac053d74fad4642e232df95200e3a567cd73684630a9c3553912
MD5 756051dd5857fb7cc845826a5b3047d4
BLAKE2b-256 f51e7ec0f51e967eba7fa1cf792671884f82e83cb6405b809809b490344e19db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.689-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.689-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 22df086a2c412a874979b008069059526b78882b2033dbb59063abb7f6d0b510
MD5 25da8118a7bb5ae73fe55632d48dcabf
BLAKE2b-256 b542a20048d49166b06ab957b6fdd4e5afd974872c90d53861f0151dcefa2953

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.689-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.689-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bf64b79092ae201cf0dd08f8357463b8519ec4130c1534c0496a26abd325058
MD5 2fa01522b8b38a357ccf72d9f1009942
BLAKE2b-256 de05092373270fb0679387dd6ba8d24c53d90ec770a62d5e2596ad68d3378376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.689-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0ec7812bd5135131e89ccf628a38ed4a51fc4ce1286e81b97d6c5f758ce2184
MD5 a7d3e7fd73eb49dae4530ccf7404daf7
BLAKE2b-256 5ef95712763500619faef286fa14cc0746074caad314c85a052aa3e4e8c89e3b

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