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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.191-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.191-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.191-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed35f77556461bf5338e0665a21f5ae67cedd78131fb7a7f7eb1096b4cbd9ad4
MD5 18447ed649ed55f611eae27272782364
BLAKE2b-256 105c4477a8d69ea5b52aa7f8a73c4cd4ae5338db82dca8ca060fa45ea8204d21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6b40ea6778199ad9e835f555666adf54dcacdf5940f90f2cd11941081c131562
MD5 ccfaf2113b64f530f5670d3568a7a80c
BLAKE2b-256 787c43eed106f1709d519fa7c2638adc9761c52e4bf969acb887d0b9752e32e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.191-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.191-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 42be20ffeab8ca4040e794f66780400041aac4855f9d57b0c52048203cdf8f50
MD5 a2431c49c90f008eabd040cb88d820cf
BLAKE2b-256 907ad1f9b27e317690b6b0ddb2873303ef48eee7f3b361fa7f417645dc6cda8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a7a119ac6d5595224eb854d29d04e7ed4be4d7cbd7142f8908c1d40a1aecab1
MD5 d20edf7566d7e28ad49481eb995ab5f0
BLAKE2b-256 8ca5e7ee4e693d780b5afeed0f8bc0079ff4264aff192d0c11ed2cb5831fbf19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6714ba9eef4a6ce2e46a81f98e2ac6e290d8396e78ae91065563c7cec5aba780
MD5 fd88ede9f1527c0c934358578c7d47bf
BLAKE2b-256 1635120c9729b23fb8393d67e9e3b314e0496a26bea2e0a1afe7aa9898dba09b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b103f8f33daa03a6847ba915da24bc9abb65d5549e4ee602df13c79be9bed19d
MD5 094511f4bbe9ff3651755b35844e152f
BLAKE2b-256 30724fbb940cf07e9997476f40c2a5193ce4d3a164a13aed1fb498fc848fae78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.191-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.191-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9402f4f17ba55da4397ab553dc27cd7de0e87ee60f81dfa4e9fcdfcbec3b5edf
MD5 4a8c36ce24bbc537f3ed7d2c4e3ca506
BLAKE2b-256 ab4c139eb33f9ca035af89244d5976e4d0417ee6b684d3d50b81d7c1e1e77b32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8faa50eaf9c067e21035a7e4c1667bd33758a384b2aab73893ce0ffe9e4d1335
MD5 5430ff5f4af85b407419750b252592e0
BLAKE2b-256 2f50b3dac824122c140cf4e791d7afa5f9faa2eca5e6f06ab2987eeb76675af2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a26b77d53381aeb1443bc7fe614169cc1eed6f49888df01d503d784d7e756679
MD5 e9979eeea1606b20d74d50ca242a4e32
BLAKE2b-256 69b7cf51d91aa2661ffe8d465a29f1629843b13f1aacc80daa3348f7628a721a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c7f553395e4fe70e870d3d9f08f8613f94c6dbe1b0417650e6dfdba1cde2c9ee
MD5 d8173c12156b0624d706abae020cdac7
BLAKE2b-256 47b2e7c6ff5290b93b20fb3a70a7e2e47771d8ac919c69a336324a45e5c3c5cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.191-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.191-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e638f23f6e0b3fdee5a354325a2ed0f5c2e281296cf7730fb62734e9f030a2df
MD5 308a7eb5561c0771a7ebce7b70957bc3
BLAKE2b-256 0c0eb8a567a7546bd7b0f17d4cab9610318d78d39af89f731d0fbd6720eaa1b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0c076b023c5d18f6e91bdbbc4c10386619d21cbcfacaa81c959273cfd6d96f6
MD5 15bf83691a0cfcbedebb569019248f05
BLAKE2b-256 aa397644cc584b361b95065f609bedf211e57d895f6f08a0e52f2fe803189fd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eadd5416119a39906d047b34cf7e3b62bbaa044573d6c252b4ef4be4fcc14857
MD5 9c7eca40b3c3fa07daad1cee8acf5aa3
BLAKE2b-256 b44d6f3454694ba7e6376a1dc52de4c76fd1401f5cf3c89c125a25758990ddc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 30b39ba5211560b3249e5f3f9cb709446d92e1c8b78ea179ae521efc8da1b7a4
MD5 98e8c1b694676d1b52707fd319812621
BLAKE2b-256 8f0aeef7ac12fbf9790ff1b6ce726b8c648b17350a8e01291cef0c44e3e4815d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.191-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.191-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ca631b9730281520d8599e7d63230d710b7f0760086716e4e5687f6a60e6798
MD5 b5d5d6de0c88822f9e93a93ac10c254a
BLAKE2b-256 4c24dda0a0e4ad4bd1eb72e30fa7c73bd8c49fadde727517264bf9fe549b7b12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b26ab8384f2f06127da70b8d124e06fe2d4c36d059b1003b80713741cf1df537
MD5 9ffe9f2c51839174cf02b7a2bf7dd187
BLAKE2b-256 67fd72011c5337d7430fb91daa7a0c556c0e2135f451813ea57fd90777a192cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9a060171c216785f03027ffc80864ed18012b2a858961967339dfe94fc344c7a
MD5 fc5e1077d2d23ddd69c1c8a506b767b0
BLAKE2b-256 ca533e8dab784564a12f569ee7408f912c6f95c15d258099a63853d5aae35a42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.191-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.191-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b7aa1289b651f09b067e9bea5d5839dc7d93b149fa9fc187f2bf2b0759dddc21
MD5 41b9e815c03cb232ab8963cbca3c6132
BLAKE2b-256 c6059c98172325ae2a40227ec6153ff0d4ac5e734348bf3fa2c9963f78bb4de9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.191-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.191-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a30b6750ff6bbc89fd0be63ab38336613cb44a9d6c65de653c68c4e173758d1c
MD5 897da03e294b63daf8afebfb51e4179c
BLAKE2b-256 e3faaba86bc69725855e25d90a3680ece73fc5405b9e995df1da9e5584df0b32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.191-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88ac3056ab80e4b63c27f9cacfcbc52925e47299c704d789b64e512be243a62d
MD5 b46ec81e00365fc94327e830fdcfcb86
BLAKE2b-256 997f87ca42f853253cd02ef12702188b1230f1560277248cd9d5ba9692454a8a

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