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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.88-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.88-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.88-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.88-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.88-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.88-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.88-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 05197086b8e2d5d2af83795e88526948046e2e0c640c7ecbd14dd3f91ca13cbd
MD5 641fa199200a7924b328c5aeea649eef
BLAKE2b-256 276f92964467404d541f637b1b3a686022630df99fb9d17295d7bcd6e227fe2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3dbdb0516c5080d62d8601e92115c63b7dee32b9ee1e4a99eac1f83a5f82b95a
MD5 c26076adec59c68b224ccefa8a178559
BLAKE2b-256 1a875fa7524ee52043044996f062655da21ce7ddbd192841dc7067abb91356f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.88-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.88-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b23ca1d346e5e0bf898020c15bb31fe31461bd01c2233f8a139b7211ba62cc63
MD5 0a8236c27ee545b3af22f5496536c607
BLAKE2b-256 66be67706ca66d7e9c30f6cbf29701bf4fd912ab84608569c64bb60a5d39e2e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.88-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb8d64057a6d1a5e04567f5fbf844097bb371d66bd9f25455a9d1efebfe01ece
MD5 3be361610085156de1af21ca532af158
BLAKE2b-256 49e988ea75adb20a1e0004709ba46aeef82ab0015c60e3bd9679f7320ce8e2b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.88-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 67bd992c9b446664ceff4241e0c16dda6a19081ab3f70427663ea1b24999f5b1
MD5 79920692373108d0f7e8cdb129432320
BLAKE2b-256 36e53381dd8b1445e391f5dcba6fbb9df20bfa1be0f0279aa686582f8bd2b5ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 85b668b721e6c8c015dba941f0eefade8b05b614395fc6070bb66db0fb040d1f
MD5 2bdbbede66c069f9a8738f9dc6af5a71
BLAKE2b-256 b6accbfff5ad5c27dceba8b0d93ad5f55f59b0bac857de992374b9dfc26fc083

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.88-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.88-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d53441efac1706edfd26f228d1b3f99b9ea43fe7474d14514c64ded23e68a644
MD5 19f6e4b244913ba1c917e2dde1863220
BLAKE2b-256 ed62d27f8631429532a145a81560aa0fcc72654273735be531e510f10c03e7c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.88-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c573caba94c2fb78a021a7d535d3fc78a0aced4ddf69818a1f4be896f11f2d62
MD5 11fe24ad049ea5e1e7ee550d7ac4fa48
BLAKE2b-256 7634e9298c420ae46aceed6e73fa3e185c3afcf85a6c5483488e2ec9f8bcd24c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.88-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 254349edefbfe35e0db0fad59fc72d9bf15d7f0fec7ba8383dea0829a1c73276
MD5 224ed9ff83df2519dc03461f90784aee
BLAKE2b-256 d3e6bad46affd7dc67aae852043575e66481c23cc7c1c17d14401c55456a9a67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0049d342cffb205c4f7b98b35b28a9d2275b45115d43d51098ee8849d6fe4f83
MD5 3606ff347cad5c2b77896255c21a10e0
BLAKE2b-256 5f6a3313aca11d6673ca2395e1f660dfbc157900347fcadb1c04132f7b225c40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.88-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.88-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4999bfd0a7efceaa3e1af682774167f5f791446fc48635ef7d4c57b140f01bc
MD5 3f1b7702df51534c671512ac34c3e8ac
BLAKE2b-256 f988d3f227c1692485bf64c52fd41f0761429006b385ecba190b3aac08368010

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.88-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9d9263dc25f1a230f507a53931adcc295fb096fee60d2b6fbf772d8e049fef2
MD5 3eb5f0fa642e3f8177cbae6714d1f375
BLAKE2b-256 ac8e7ee99ef209ec778a64ec42fed223d8b9167d0be8a78a9fdcf890ca3b897f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4a06527dce4f05d0df15c34eecc8a8f1e87c159f32129fe41fb5d2066585c000
MD5 672342f9b90595d8d80f2030da2a24d1
BLAKE2b-256 d66173cc4a27b8d74df73702f0daf5927b4645d9362f351134da0a41ad4e2c21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 21709f921f361b0bb68787af8981d79065607bf0f88b8efdcb1ac822b6fed62d
MD5 9b31a7c346bb31e86cda646164d1c1fe
BLAKE2b-256 d892bb08bcbfc063a9ab8c65f2fd284f4bcbadf7d42e2723f1b5522b6789ac4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.88-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.88-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 deb90680cd7c6449bd84709bf551a017668bae063f7d303c6141fd20c9584c86
MD5 e581099192bb11ae7208aa4545b28ee4
BLAKE2b-256 1f654a790c19b1f6225f89bb8d289d18a00be2390b6d1eb1cb7f9c5121aa521a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.88-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 647001b130fba1e3fed9ab347abec243557cade4246d6d43a813b678f8a6fa3c
MD5 f5cce710f434fa8a61dfb621d54c51fe
BLAKE2b-256 e399445dbaca1dd64a086646681a1336706815bd23e229e21396b5c780d7f18c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d9a99c305f4a9896c88fa56d972efec1d310626cb71d2d00ca5af44d4e4d46cd
MD5 cbe823fa696c4b3d690845d765d59d59
BLAKE2b-256 67e8c1956f26b7fce134019d7b88ceb8a9191547f9839298defcb336123e878c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.88-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.88-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8aeb1f1363e7b35b92b558ade84997b8460b6ae7be9a18689ca33c009acedece
MD5 0653611f885ee85bbb7acea5e8b6eb67
BLAKE2b-256 2e9135eabf013c23ef6555465777b35994d71fe8aa660a94968a59ba86e90513

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.88-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.88-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b980a216c06fddada65c7ab84ff4222f476c6cef4f1a7cc152f8e1fa15fef55
MD5 9cbfb9f54f6f4d92abc7eece209e5929
BLAKE2b-256 bd0dec191671a65f11d80928d7852d7511da5a1ea436100cc8e481a29f802f05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.88-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5b6d3d4882227ecec745d2880bb9f60a24393c2b4440165a719c194b54064b9
MD5 54dc82bf9afc5f5465eb2b0ba59a656b
BLAKE2b-256 dc9dcb34da817614ea04f0efbe3d4047cf0fb6f48c972513a6030d08e46c1cb8

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