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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.621-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.621-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.621-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b39d6e4aa94aead3a97a7cf95a63c786f47f2a1630c05642eeaf71052414bae5
MD5 720f7f4bdedaa513b186635390a294af
BLAKE2b-256 938b9f8afff4a9e12b0df8978c468e16ee789eb26abaded5aeb4084cb01a6054

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 27b09cb74885fe92989dc8ed8495330af5a9d90ee6e081d1a3df64977461faa0
MD5 a30283d7fca4bf596b33d29127c9f293
BLAKE2b-256 702607123e4445052d5358a88f26bf59c3754d78d25be8ff476f74437bd32928

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.621-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.621-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d3a31cc7b8d24a61577c430f51f202630d892bea2b3a04750c4e10e0c706544a
MD5 bd96d6c43936302f3349a1ac7a21bc6a
BLAKE2b-256 3f2bd8395bab7120f96ff11dedebe4197f8d464d95a17a082b37b653cd49f22e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c42f6b14a4dada48e81705f9a653ee4e2240b5f75c2e1bf7532c3d8e9f60c51a
MD5 c08b1cce0c94b23059bc660461a944fb
BLAKE2b-256 91eb17d2ec3b86f34689d0467559969f528455e1dbdaa7073daedd2695628888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 33d8758ef482106c498cb9820f6449da2bccbfb585598a4579f96fbcf6066cc1
MD5 ed898c7d508cf52bc64b1967874ee25d
BLAKE2b-256 f25c8d2e4324b7c58e4bc8aa21c1e8b52da9134578a46b2a1194ac62f79af230

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b3679f45a3f3d09a3d4cd2e8ad28f224f2fd4ce3f2da8f5398b3e39b8393dd98
MD5 d5fd8bc3073f47c3337ae32580dfc0d6
BLAKE2b-256 b46c1237acef1224c8bb6467c1bfcfeba666e5eb8c6b44d3ae110658b6137e62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.621-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.621-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f14514028d2b9f34812b2bb0941385fabc614d41117aa928ac3b57bef2f04840
MD5 c335907020386218dc03fb837c5b5776
BLAKE2b-256 3207ea6f403e9e66c29503567092b44008b59b1cf5142bb04d347a7be717f6ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8b255df525ace15d1300510c99f07a3afb7dcf62bef6071e6b83cde304a5b7a
MD5 5c52bc1ae63269ff3f3f80d4cae9a5b5
BLAKE2b-256 898e564841599656e472dad1f82323b10c8d7fc0589cb8e7d23114bfdb5ea3f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 470238011908c8ca9fdcc34f19e9c474e0046b9785f0e3d00a23d3c40064646a
MD5 c9db410d032698abf8b33a6d2f69814b
BLAKE2b-256 6f9e7b65b67eb521221e4c4b46d0edab38ccedaabc7abe25b80dfa815cdf0bc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6bd0fda7d7f538266601b71d539d469e84a975c50e0ba55cfd834c315d90bb44
MD5 f683d991d215a0d701ed7ecec7960e90
BLAKE2b-256 f394f32cdb9a64cd70fe046ae1b736f4f225f00b22dce9ff3877041ec09a8c15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.621-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.621-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8593e5a1d3d32031d997d853d0f6234f882c18a41bb4e194f5a2cc0f99ae911
MD5 66e8336e2317ef91a120390af6a66f33
BLAKE2b-256 e4a531d36b3134d6dad8b8f92eea2519488ba7d316805eb07bb5597331a4348f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e104bc66933773b51844e9910fdb29695e9850383c4915fe50e8f85bf7882aa4
MD5 27059aa9b56f70fab8dcc273fbc194c5
BLAKE2b-256 0b56d9ed679b80ab262a59619ce7087dba9d542f01125966ccd8c80c7d306111

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8cedc41cefa17cd536dca5f90541bee7d96090292e62855f9af45c630a025a7b
MD5 5362af447d5fe9429ca9adbc1c2adbef
BLAKE2b-256 3fe46a55cd2464399789fce4c11700b6fe25a09f34ad79097c28f954137ad80d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7855c4b3b30a524d4dd679b736fabe10065ebabe5f5a551f6694dc5dc2eff1a3
MD5 6af38ccb498dbe173916ec1fc0609d5b
BLAKE2b-256 10a1b8de80059701c860e18e65e38d0c454a7892e402b6b30f3b7b1f525a3f73

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.621-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.621-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84c812cd89049145dd431bacc9eeccb6d3ad507cb3217a56f8376cc5062d4d43
MD5 6a91b2571d9d7063404bbd6a66e2e2b1
BLAKE2b-256 360f2e69db160ca55b7b3949faf14cf3fde40b1b05256292d4acaf648852b7e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66dfc4d6d793d6e0588f249e7c58612120b9ff3b707784e085e71236b0d9cc7c
MD5 5bdc22ac1c0cd07da3dcf40a61db9683
BLAKE2b-256 f1949b6a33bd3e025863afdbd88d6f3a0d68168930bbe589511f2bc5124aa7b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 53fe58af802a2797d965d6286b2e3798f8e7c4b3d3de25a45500f8b5747c951b
MD5 bf587d0fb74d0cefb4c2eea3e1ca7aa5
BLAKE2b-256 5fbe46cb53db20c228e17f115de503999d79ea4ba54657d853042fa44d73c6bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.621-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.621-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a7dd3d53fb80962297330338b03a9150ce215fd2305d7b7e9858d28619714b29
MD5 0195b1abddfc704ea84f4d3da76cde0a
BLAKE2b-256 54664e6ea1862793e5e562cd1d931f214d7bd48c5d2ae0258d88e7f639fcfde9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.621-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.621-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0236213f5bc373fd39324eac8419dfd2a05576aa52a545d77d28464c66256af
MD5 63caad6d2a5a42c3408a598b6a550ed3
BLAKE2b-256 f0feac828a33adec4fa831167c4543889f66c1729f443a47856df8fdc08cc284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.621-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b39795c02af54a6dfb56727a74c3a2ff6bc433fdd0f1ddddcc8a5fc6b2577df
MD5 4f4f58920ffcd90a96ab16a977e98d7f
BLAKE2b-256 aad25a298184466781ce55a7100cd10c2690bd9d5909dab3ae810f3eb82f81c8

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