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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.309-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.309-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.309-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aed06ceed2189999f93048bae5b42bb344e61ced7eb63ffcc26e8e21c4def4ab
MD5 9450066206e845bb59646af2bf367787
BLAKE2b-256 9ece4d154a8e1855868b9d16f3fbe424f87a106c884d07b453bdc05a5aad1e07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 13260bc1771955347dce96806c237a51d9bdc9ce575cae501c2a8d79c4a107a5
MD5 f3bc191a956ede3d08f43f17ed072a1a
BLAKE2b-256 1c5ab3609ee29ec6ec5bbfb897432b6aa6c7d7eddc43982973dde27d7371457c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.309-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.309-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f5e4c0a69447ce26de7295a211490301ff97f50c40b0c0add0f1555c258c085
MD5 0813373f0c2349d7e28823654d8ab1e8
BLAKE2b-256 af9de85bce1f4e1db3bfdb2d109b1b997315a7ac17d033b9054195677a12902f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a9a0e21e00d30a7ebacd5dd0195c2782b8ac78daaef1861bc4addee7ae1f0f1
MD5 45a6b81e977b2134d6c5b81410d6b6fb
BLAKE2b-256 4e9b4c357e8ddad58c6841e67d179c3c863335de967e92eeb8b605541bfbcacf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2f0686c09a5845557546953413e8e4249597add38ceab52747cbc516acf72b22
MD5 889e3d50c9e61a3d1242c1936e693f55
BLAKE2b-256 2fd2f462cbc3154b3959e1360a660db55cc488c815acd6f2ef672ad00e8f4b5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c8613e82b43c49c6b5fd5792673ce1601d90e50963dc1ee9e37a0dc004a95cbf
MD5 9f1920166a86e9e311435263c52bd461
BLAKE2b-256 34b6a3a911ab0af9c6a9e24517c5bf7409fdd713fae469958f38675a4dea643a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.309-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.309-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b97bab2edf868422ffffab5f0b707fbecbef26efe28a4d81ab01518c9a93bef
MD5 eeffa99a55e1d7144ff8b71f3734fbc7
BLAKE2b-256 bc6be35079aedff9f6e861f76d8faf115b2045e8e4da0b59084023205e3283bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a110f50670b28b7bc54d3d8df570a70a329dee9e9feee39eb8c488a9e6c88786
MD5 9f8b20dad52a34d06917376b2481f8cc
BLAKE2b-256 a1d66bad4e702dc54ae7e03df9acab06ba591c60fae1e7f392f9e1472ab5616d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8c834517a26ae5cbd6a3f9c4072dfc3af1530a73bc3070b7e1b6f93104a42f6d
MD5 f1763a55fa3382ea4a5cdf6e870c70a9
BLAKE2b-256 d0795cec859cda76a85073aca6862a0566caf2c629a0299d42b8e8998f8fd806

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7bd3ccb82d76a6d5eb13ea16e353f72550cfd42cf46ab3ac38afb6f5d38b5831
MD5 3867a7b998c3c97ac3a71e62326b7132
BLAKE2b-256 c2e54e4de70b048d9906a28a6eb0ecfd19dbd892b8f196d5ea0bcf8a66309c53

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.309-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.309-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d334b06df51bdc99c3080d8b580b65bd7643c2365dcec2c94fbfc2a0eb82a5e2
MD5 4c6ed926c4c7d0d5cd2fd4e912715fff
BLAKE2b-256 ff7afb79cf21a79b651332253f163e291118b1dee69db76f98868f364814ab9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98e44b23708776f607c043c1b9e80d046199660527ad46ff503bcf8ba0e9b435
MD5 338516cda9402ae5f269ec437500f6e2
BLAKE2b-256 c5197bcfa57a7e44cccc4c1d637eb0a309e0e5f9f48c4eeb0865308ac4857d55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cd667bf0e21e1e5f604a1d7fcee1a5ca8bcf5c6e5186344a89deec52322eef58
MD5 92117231747ab04e450f7e885e3777a1
BLAKE2b-256 2d408cffb8e2724ddd508cbe01e401795a339f406cb90830bcf9017658613bc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4d01e3d107f060de57cee7b5be8fd06453fe9470698e856c3998d76046f24ab5
MD5 d9c06b5c241c479cefe9bf33af15878b
BLAKE2b-256 091cd9367b48d3245dd92094cb1684b394372f9e2f3737d447043c6aa99ddd27

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.309-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.309-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 abe28156c1961cadc959dc20fbb1a0d9183286d5a87123f0450ceb2df6fb93f4
MD5 7236a3a6d4d9dabbfb7edf3796a14cc2
BLAKE2b-256 9d1262eb2b67af0a7a3f698e839c4dbe965355d6d3f8318f5ede04fbf8a142e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac17eab256daf0beb6a9f27a1581413d1caeccc247ff4334550f8a9d56f2db67
MD5 5532ee7cda2a2d0ae982ea428ef9dd92
BLAKE2b-256 01e4012eaf5b455295da5f291e2316289c80c7878e8f9381a3a3583f953a9f6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4ccfe1d75fb739dc952c62c465e2275a5b7ca63a2d036a7c696394bf3e9944c2
MD5 8b12bcf51557a6289e3da65e3150252b
BLAKE2b-256 83a72fcc8d652924edb358c3c08c25578186e660b1db571a607411f32b30f40e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.309-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.309-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e2d91d01d3875f41b9738667bcb28ac47c04ef06d0c0f0823bdbd056478eb9e3
MD5 387744aba592d958860b628bfbd1ede5
BLAKE2b-256 09caef758e7077d19ae66150783d023b5f0aa3bccd214ae1c11fb16919ff173f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.309-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.309-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b85d5df6b500239ea4157ab4c985de4fad67c7baea57c648b075585fddd7b3af
MD5 b9fd0ec987e49e6c8d512311d5bbf43b
BLAKE2b-256 aca7bda23f50367def8c89d70100fb431a7398703030f9b482300042d3c16753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.309-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 900054834637923e096e421e1c6197709957b45b10cfdcdf1dfeb2125e372ed6
MD5 4afc869ae203c658a467deffd04fc84e
BLAKE2b-256 e01ffe58c9a853eda44cffe797ddfa4513dec5d41eee90c36a27841316d97cc8

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