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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.895-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.895-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.895-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 05f64a821d4349b62cb83fa1922b8efe8c3148d60f65b7ef9e7f735c14207fe3
MD5 c172f1fae5a6d8a0be86a7c642c4af40
BLAKE2b-256 f6213d5c16939f3b0a66a98fa638cf9e0ca0183919c47c47537c0588ab10714a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 050c546f9ade6b15c421e660b7f4bec68e043b23b1c318b6a7f5dbf086cb70fe
MD5 004d1d7dd39b29ca68d18b8dd75bef05
BLAKE2b-256 e8ac8af4896a5455220bf793d86d35cfdab832bb0e1cd4afb28c8cdc20c26657

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.895-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.895-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db4b534c683820f45f915c08b1a3cc759ab038d1a802a12c1cdbd3e9f8e9dff6
MD5 ce5537179a59ddb3dfbf61dbaffae168
BLAKE2b-256 328e3323aa903bd6a74a0ac61f431045ee370dc4ac3925fcb1de8bca385fc702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9c1f13622d33b8a8f7b1e0c90e2cecf90b0e6f001dfd79e9fa6dc046c810612
MD5 ba4894724253f1c6b41688dd11d21a21
BLAKE2b-256 205433314e35413e208bca020e7af96bf2ccf4a1f5b9b33ec5e4721fab57a01c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bf45f5e6595c31a2cab023c96e2c5f577d32a9c98689e678eb2ffeaf41f92dae
MD5 48e2853327f2be4b6c95a844b91a334b
BLAKE2b-256 879fcb358b3a892445b7ca2a0af90f86951b0d90a5534ee2bb92bea7f324ccd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 757c88aa99afda9e99dd9ad10bc90d7ba94041abdb8302aab5d3f1a338366e60
MD5 909b42495aefa5ed0912259ff9198620
BLAKE2b-256 1474ff41852e95706d69914431c048ef887ae9b99d8adba0cdba52dac0c9af5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.895-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.895-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd2740c719595d4c892623412d26a8bcc64441b9bafa82ef48807d7469044c24
MD5 503e9a0fd1ef3165d560a9ff849170c5
BLAKE2b-256 554702ddd3babacedc11d5ed074149afb8b74e804cf367d672100df82f71e1b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdb2b52c79d0baf6824999ddd91c0d96d6c9f9f39d76fbedb2f4359e55c579cc
MD5 6203fb1cf8bb63933a8ce1ac607980d3
BLAKE2b-256 801736594b31f71c02e82167f2383b346d304b75ea0b8ccc00c77bb8840cf35a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 35282acd07d959e17e5a9a2d249a7a014cf797e6a3394cd3b32316f81218db06
MD5 d151cd21c53d7f9ececea81b4f7b2d13
BLAKE2b-256 1103bd9ef1920427efdf3f1699c56cf455145914a46c09e04ab34c2ac6894339

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1cbe1d3da73e7edc0b18c08c5064d4809a4499f41f4b86aa293cf81d5dbab5e2
MD5 f6808abc70b3eeaa2bc5e1d11fba4bfb
BLAKE2b-256 13e9b526daebbd03c2e61808cdd8da5e5658f3c0300ace26d30c3dcdf69e541a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.895-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.895-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9589902b22591c3bdee9719467039b540a8e7e0fc38343137918330c3dffe784
MD5 c0d7e10fc4892fadeda1406e6264ed08
BLAKE2b-256 cf8048fa5ed947f674170a39660708222f98d59dac3a3c5467c12eadbf5644d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52cb90e26daf66b4c1929484b2c85633360727d2f20356f01f9d8db9d2f64175
MD5 8da324e6ac14da40c19e3b6a043a556d
BLAKE2b-256 3bbfdbbcd437990ee4fdfee8ef4409823b0fdf195314347231fe723e9213fd6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5be7137dbfdb70eb37ee4954a8b3a6f1bace9284d2f314b73b8d689e544f082e
MD5 dd0e3b0f8dc0f21a926c66b3780dec17
BLAKE2b-256 2c4c53c1c09d392dc933256cdbefa7a123388fa18b97dbe5ba60badf2bc04931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b29d95baee8d77ac6b52d71386c8fc5fbb8dd67b81f82d7f1fceb4a405b3e4a3
MD5 ed68cc0c5edff8359b5357fcbd5f912f
BLAKE2b-256 5ed33b768f7e0245f0c435e25ce799e1cefcedee8c647dc7518b2d55560dcbb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.895-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.895-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a16a84326f6b228c1f5b0819fe69d298c6dcdd47025302a3066caa406066387d
MD5 49cff733920f9eaa5550b229ea5de104
BLAKE2b-256 abd641eeae02c8aa1ff41d063b7400bab11f7af3f31a9a0f7608d84430d3423f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c5e8ea8e6d4e8ccaf30cf7c8ff93c249f08c7d073ddb7116ab0359f8ca28cc4
MD5 eb09f99158de5ca88c6792f94c02b1df
BLAKE2b-256 4b59607e09957327ee32c877d1f445a863e4bf9a51e87bc6c1e269ef9029713a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d2cfa9415592724e3e60f82b9445ecafec46e242349af832c0c1fd27da99823
MD5 3cf2d3b7f96026c21ccc19a8fce2fe67
BLAKE2b-256 b99ee26390e9a3217d5d9660b5caf697cafb86bc444edf8da67e677342c76936

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.895-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.895-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b4820cade33ef3257174a6e453fa69b7f721cbd8d7b6fc398c5dcb063cf8718a
MD5 e66e313dd78596354e75fa920121e14d
BLAKE2b-256 eb5c94861b6a6a2ba7421c764e20c64dc4c6e8231b09585b854edf517ada20be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.895-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.895-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75d0c3a78889ac4efa9c44663415d662dbf1358c94638117be825b9923e17b73
MD5 48f61a4b031830ff1a8973ccc91ffb58
BLAKE2b-256 e0d5a8c8f997165fb60fd5d09117e7c76e6c41c30270970a13d6f816589a95c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.895-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbe1ff3b312f9b0af6ab6dbb131d76a4f76d6681b3f7ca9faf664b3ca53c8ca7
MD5 66e5b753adf4f7edff7c317dc0683e4d
BLAKE2b-256 a2d03e46571635dbc4b6955a200b3d7914175d003cf08e8b1e935f92c2937fe5

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