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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.945-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.945-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.945-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 11fe4500733bcdc88da835e976798a06871bf435cf8cb1d73f5441bfd929daa7
MD5 e26511c29ca27af630fc950b1dffde16
BLAKE2b-256 f1dd7bc56af337e6db9d1d2ec25f9458814d4eecd8f6ce2a85442f6aabaff9a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 04c818d86e57bb8cd6fc02de0cc1fc7b4fde51db2b7d5b631dbb3525e548ce78
MD5 37224250a18e1d3fc375d4fedc960003
BLAKE2b-256 3def6baf1990fe8508de4da307c0af9d7d05d00efad3a29880d7a57ad2cc4e77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.945-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.945-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 831fc8420f08649dfefc424e5af2af60d8664da301308adf0b14cbf52537d622
MD5 5789bfad573f2084daa9d3c13ed9c919
BLAKE2b-256 956439e62a919ea7e5a8b45a902b4aab8c9d604f9f396dd5d1ddcdacf9736ec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e83a154fd486567b0a17423d55612f18c844454533ef2ef2ad883b11f9030b06
MD5 e09c5c88b3fa6d7ca7e431edbd0492d5
BLAKE2b-256 3c3e8a8dd2c7a70ded050e28fd58b15a278b38a57f3a3836f226af30111ed434

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13764b2ef88eb2cc6497d3a5cb5533012c0dc646469772c9e5894034e7b93a8e
MD5 98d45669caa01ab3647b76d9e7081d3b
BLAKE2b-256 faf531e0eaf99962ab95ed62eba0b5e04ba8ea60437c223d61f6ab2ba78a83ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6163c6bd17ced3567a5d8f87568e090ce8e0b379b7266c053a433c1b59153591
MD5 02c70b52ab2d4a06655e704f14679522
BLAKE2b-256 ba57fcc23003a240d59ea5820beef25c392a2af60f9e2dae7e5b1a77bebf94c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.945-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.945-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a13c08e14b8cbbedecabc545a99758663de53209b462ce544436ce825ad03d8
MD5 69ddc352335212e800ce959ee979db49
BLAKE2b-256 3baf4da183092ebc783e156335f5a592cc25b03eb4d69523e8fce3f191e4864a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fc8fe186cf59b5d5e8e9b090c57e9fe391fc5f1c6bc61071490d8dd4e6ddc0f
MD5 9aa12ca6da064386d7df88f8506b2499
BLAKE2b-256 48239f971b2865f000f50cc71ba99af17f0ca3f4035849bc367fa0aa6d052057

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6f253eec3c954f6163a21964060b3706f9e2dfe1c9692419df9c2b16d7905131
MD5 250dbc67286fb0cde0677f9fa61cb17c
BLAKE2b-256 f85c6263a0f93cecb2f022561ca63a7bb4750cc401e03ef7deeea94113436ed1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5bef53d595f15d3733602cea6eb74279d66e4e15a55f6e5bbaa8f8ee8364da1a
MD5 809dcd70b52db2694fb60c6884d03214
BLAKE2b-256 301089fabe81d2612bf923e87e335650f1ca8114eb2bc68762aea5c4fbf22aa1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.945-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.945-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ace394f5c3200440c9e8a890395d538d4edc055c114fa068e2217b0b82297c0
MD5 9973fef09e598f2a5b9b1bbb7eb6e3eb
BLAKE2b-256 f951cbdebfad07092b40a10d330030e2e1602a8639a8ad4f75a210c28e4a6e04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 454fe78f29b7ed9b398995d3f59de0fe0fe880f7ef2c9d68aaa0dafed8dcc921
MD5 27b12c86109a64db23ca4aa95ed4e2a5
BLAKE2b-256 836fddec3649e401bc6ca0a6bc07311a739c491cf934b5ed406328b77ec57ec0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eddac49dd6345e37290fb25183174233fb4e780451999c48c25fb13e90aaa9da
MD5 17c33ca1abf99b2a1ab3faf68d3c05d8
BLAKE2b-256 3e2857ea70ca4f7911de2572f3366b46dcf95c4831eb39aebdc2516377855de8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a68722fca757a11dc2edae32b361d6ff01f0bb461e98f1cb0ddc57eb64dc28d5
MD5 7a13acb83ce40d9adb112d98856329be
BLAKE2b-256 4dcc5b3ab08e69853c3a7f43ab81e55040d077d57b5605fbe75cb6007fd8623f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.945-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.945-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 468806866e90961aba45a20d4a4da1866fb13b15d4501d5a46efa7d1dd04c0d8
MD5 6c93de51c3d43506e54378f5e2ed0c0e
BLAKE2b-256 0ca71d344a0973e4901c328bbacbcbbf6b2358c3b1421f066e8b1970169c4ccc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1facea46ee98fc204f1e910b0c89a25eebffb5a5345a4505828d8f859c2abc2
MD5 c743d9aaa54e48236c36d61f09a055fd
BLAKE2b-256 9817ab1b56fd67d1e6245d9d48f0f6e51c4839b11f917f108db804d1e1d916be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86ddfcb3ef92afffd1ec6d4caf19e7e73be23d07cc55ce6a0c6be59f6bb9b2e2
MD5 70b0bbf4e42a58a923c77f88e53ada28
BLAKE2b-256 fd7bceb1da286e851247fd446074dcd2767ad26f25d28de1407714a7f495d9e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.945-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.945-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4d1142cbda532a910a4f2833d62c47c81551cdb160c7dc6734173708c1ab44af
MD5 dc3ab1feca7d076688babcaf48b3656d
BLAKE2b-256 0f74071dff2696186cfc93b14b567e14ddf63c21f7130eb389e372a16edef2a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.945-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.945-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73ecfa2f5caee36ff68e50aa678162262790e54cb8bc4a756276de3464f69000
MD5 a31463cafc4f3971a09e4a728e1c979e
BLAKE2b-256 1e941bd559e4d13d288afd805f20b647611b8df494dd824e15be9ff4b990c4b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.945-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 068090955f07cdd4091f028df8f4dd6bef8cce5b0264c0116fb8f24c81ca7cca
MD5 32d7df1a41ab89a10bf6fb293928c17d
BLAKE2b-256 d83c6e1bc8af9e007a958eac40a5ffe4a0df8535d037406e1730e106b6a2612a

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