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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.537-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.537-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.537-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e90322df5da18d3a27d4052cc48dba3e786aa1b8db4cd1c7a007fa354680df78
MD5 eff296dea85f6adda84d4925a4e45886
BLAKE2b-256 848e31a669b81f3cac84c623d426243c5ae4f296df5f10cb98203b2fbef2c64e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ead51843cb285c21b7f4725f34665535178b09c19d1d93faf4c38d0d17f71ca9
MD5 e56f80897f921877ea425610f04093c3
BLAKE2b-256 ae95c343d2d25f7841127423143dbd2d3788d2542606f28dc5301ef507513f12

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.537-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.537-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0c1435a6f6bf7a1ebcd177eec60d743706964bb0c86ad8de3629a77693df617
MD5 8a5fe8da1bab46529ea89d8ddca7d19b
BLAKE2b-256 4985bf1054d395298fdb9f941f7e702f525ea1a46f59685026218aa636f2e4a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad0619afa8eafc96a23c9c09c5d69340f701be6093f312337f7e1eb6c369eddc
MD5 94f6aed38cd684f23bddebfa82c830d4
BLAKE2b-256 cdcdeca6e66d1534202c0eaab75f08b006f3553d7f7fcf981b4e58c2a1305abf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dc2584b547f495d380d2902fe8239f1644b6dae6e6c9e48435c20bf62582eea3
MD5 baee7bbddf1d270483c3d41369e84ec5
BLAKE2b-256 a97b4a4d320466dfbffa3ee977f8fc91c143ad24040bd6c29786754bfe8e50d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 91c34e57d60dd58b3195cee2c28bd0a50bafbf679d76d8fac745a32d9de4a416
MD5 fb113c96f2e33265193e4688b7bc3c47
BLAKE2b-256 e892f32c71b85e4063d824f7a429f2c6fdc0b36bc3ca2c32c6e17b956683b546

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.537-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.537-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c0301438c50aa6ceace8ccdc9e7d7d0f420bef8701ca0a70e9023b96f5d308e
MD5 d30ce8019437a5cd010441d91a45df66
BLAKE2b-256 3f325d2db19207fd85b0a9b2930afabc15775bdf2c07971c4442d583385f229f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e3d9a7aa1516e9fd48d539b385c21707bdc708b3e0c23095efc0da4748d883c
MD5 0b6aa33d83503a96585278b96ef03022
BLAKE2b-256 afe485a29a1e5142acfe7e81e44e57d71552f2fb32fdaf4927b9116fa5bf18b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e1aa1eed702321383d395766b7d03a7061f089d2fa47f462b27a639c1e30ad45
MD5 938eeb5841b9d7e57f8bbf731658c470
BLAKE2b-256 bb2841673fb84cee7f88eb9ab9f306c764633df64cca99286715e58412fb9589

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 872f40b935ba182295a8a1db0c3066b7ff36767bb4d11c6839a96da765873b68
MD5 72940f30547a042ab9840f7bbce3f4d6
BLAKE2b-256 3f9b5f05cd60a4d9d32e3686e970567ba198b35b96a2ff51703d71b66bf5059d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.537-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.537-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69ba6a6a9316f26ec71d00be61884ab44bf5a58269a40707a1b6785d8aae25f3
MD5 a1e13fc0e901f7911bd0a76ebff724cc
BLAKE2b-256 033592a16e416677fe7a6dc2c7af30a0f659267b68addd8c1c37880f4f50dff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffe00d0a455eba3eda07d1d468fbcc190719ea3f474608201da662127c1fc3f9
MD5 d100c61625436b533000652932fdaffc
BLAKE2b-256 e502d9e2aa6a3e054ac3c289d016d25fc977686f08762350e2db96e861ef8ef0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ba61c0f7c1adb4f5a9c698d0231de0c301bd3c9a2781cb08c002deec2b7c7300
MD5 92813527a10be9507ac8fb57108c51de
BLAKE2b-256 0be888c67091517d5e05b34386b953a2b163473700cacc20df761c448d23a1f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 59966ab8c6b26001823b3e662a71db165652d20e182951ea79d119fe935d9263
MD5 587f49014bc6588db3da873a7462fb51
BLAKE2b-256 65f6910a7774d20ad3d997bc4116eb84f36c27e37f64795cbef5952b307a1a5b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.537-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.537-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c46b9f272fa7f03a86eb6d1f2e4a3dafcad2574fb246ba9809d98c57ef06e6b7
MD5 16d87d46448749da35b47d5311787807
BLAKE2b-256 2a8a501bbf061ba850556dd33d17dbfc3994de8530f841cd2426a595d55ae686

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da61d57e6ea862ce4367c8cb47fe6cc74f6931b3f00e8be5dd5f1f742634747e
MD5 bf43596cb953e1c1e067a793574883fa
BLAKE2b-256 b49c08bf8f3f7ac0cc8482a9c38f2102b5093803890562e1e2a0f68c41b66044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 508b7fc222016f4d1d7132e4a87bd84b39afe3ad918617c91fc8cca3057fcb82
MD5 6e9f8270a49588cff90e674d4de69d31
BLAKE2b-256 cd06ec05474cfd8f59a812d010f8ff58507216d6692070de2e294a10ba89709e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.537-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.537-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3e571260202306ead372f78a00e8328155f32b9f5092724e6d4a90768d9a55b1
MD5 4a17b100c74e3742bdd79d613024bc5c
BLAKE2b-256 ce0052e07f70988d140b2d72f2b0c7abd87fa395e1f80e568fde400743ad836d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.537-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.537-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 acde5eee8456ff250ebf62fb75015b1b03dbc733c5ffc91d4cb47dce70e9f331
MD5 4437c1490bdbca8a44079bec7ddab9bf
BLAKE2b-256 3b836ac676d2cda4500ff88dfe84ee74db04c2a7ec01d7ea8fd51c6e7ee255dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.537-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 308bd089e3a5c9a050b9333e45414ef38fdaa0fc06fcd486e58df39039f6ff2c
MD5 ec3465123117220439b71ae440c47a8b
BLAKE2b-256 45ae9fbdb840237c9c53ea6380839e6b0300b253389468995321a2c2fd580540

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