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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.149-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.149-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.149-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e1cdc69c939a0919e529fe0bce5ab9432d979d1a4416a11e4813ec8cc0b75a26
MD5 85395384dfb698d3adccf0d78b990ab3
BLAKE2b-256 2d172ab5f1f3781fd3f2086b45997627015957739482a788ddfe68f7aa46684a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d76385ea1295a5b62a6f4bd93ba44bdaeb73a71a35e58f7fc3cae169052c9b42
MD5 b8ab022aa06f6ff34d5cd2275380910d
BLAKE2b-256 ab66558c964aa3178fe0cacd648dcd8d6f8c5b5f2e22525df2520523be8f7128

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.149-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.149-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91362569b22d0d3a18c7107e6ec71efe092d1a0b22dcfac552866a2b1f3dea71
MD5 1274d9eb0189fd0be84189f364e0bdb0
BLAKE2b-256 edefd5ab1392ce66b26e159826ada33d5c4f2b18bbc83c38d0e1d1ec7bda6f8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3bf0c2763586179e1caa270013325a49bea3cc0cb76a978df95359b6fd139d7
MD5 9dda402d8d23060fbd2a6bf7e6b362af
BLAKE2b-256 8055326723e29ab20eec3b7f01f4494035d6825fd97c7c70def6682d81c80f3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5002c9428a7294cb5ec2cf5ea9ba6498b69d7dbe0a9fdd85b29401060b42b1cc
MD5 8b480100a2eb66b1d52de0a16c1878ae
BLAKE2b-256 668895c88f6568e72832a05d11e4a36fac5db3c8c2807e29e4e24457d5be923e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e9010c4ba0d06dc7d899e7f2fe8a91873e0b99b2f9e0931e1882ff5ee7099036
MD5 a021f472b964b41a406f24dbf443bafb
BLAKE2b-256 76f862236bf290bea636cfa1890a7b03045a5558f241e7b258da856e2b42d0c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.149-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.149-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e29a5c1307fc42f9981738f68880944263c05581a906a439da5061ba0d329f5e
MD5 a83785f3f163d7ea757ed0414967ab34
BLAKE2b-256 c85fad23b1f5a6dc91aaebe39fc7e0f351de5d8e661a6dc9de1ff254f65d4458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e62f9e825268840ec76e11d4f3d8264d5053ccf1c5a9f0499bb369312a9fba4e
MD5 f49961de5af46332540390713c9543dd
BLAKE2b-256 d51b1b074c69d3c42201dd2fcc1cafc7c28d531a823001f9a1fb0169535db356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64b80653b91304cfb8b4405d0ff9d1dde71c2ad6fe662467264b41c50f0e43f9
MD5 acbdb87a43087cbbe19edd1d5869a5fe
BLAKE2b-256 03a4da6f03a07225c3954214bbc8a593ed8b4135a58d53d672fe1f9808ec6630

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 30da9d75eaf8cfbe2120aade864b60929963cfe9afb8dd79d1bd90a9c7424b9a
MD5 b18275d7291c481b9bd2e1fb0d81e104
BLAKE2b-256 4d54352525f7d407186796d025d92d9827fc506e262a9e1cc8aa41ebc02d450c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.149-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.149-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2f8806ef2d23c35b8bc011d295e0197a8d7408bc91fac5976573d89c1046daf4
MD5 f7b70ca1b4e216d42e9ed6d45bb121c6
BLAKE2b-256 2afd919e6a1a84aae564f99648e8ce8cd5131b9404f2da000193c728eb4dcd26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e47939f3edad84423a14fbf61c7a6e58002609c37e3694de0092054d6fb80cef
MD5 4da4842a0016c47cb5c1af79a5b3eadb
BLAKE2b-256 49628b91ace5d1fc2424f546fcd1bae2fe3cf1e88569448c8574e16374c0fb3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 289ce486d7735dd2f1237bc44fbd24e1fe44abaf6f4450e18be7f6896540bea2
MD5 d65171d97f291e0002165a5a8ad525c9
BLAKE2b-256 c24174b87d83bafca773832539941f6f01311d5c8f6412fc142170632a6d6830

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ca8aefefa85ed5f021e75edca1e6e0db53b51816e365f7c38487090c1b7f802a
MD5 fd3301672068d644af667661f5993655
BLAKE2b-256 316b9204e2640a5de5ecdf4fc47e0f7cacf4bb17abcb844de46519d167853401

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.149-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.149-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 794c9509f7448318cfa936919efe4af53928218ee7e521f1b8466ea2ec40aba6
MD5 ab06773be26b647f73491e3836e942e2
BLAKE2b-256 7871223575ae6a90f097548926d659d7ddd89c92e42a66088c3e7ee088da3a57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4d720bf03f5a045c88123098aa3e977254ea3b761a5bb1558d858c81161a3bf
MD5 f76573d9d55aec0a12507124c754dce9
BLAKE2b-256 615436daebdbf36efe339e95d7444458c6d036c24da49f21d8fa00b5669d1a82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1296e279b7ec9d5d527f094bb6c9188fb05bd1d70f5fb4721678db46eb51a0c7
MD5 17e0f1335e56c01d5de8622020833549
BLAKE2b-256 47b8ba95849ee8fca123f6c4ee960e45a66b369eb77bb23f1eb8ecb08922baf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.149-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.149-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 be1d5d619efec42e9a00cb199d63aad61c741ee38f22c39289b83db6f876e4e2
MD5 2c578c824993e7a31d45b4a4617ff933
BLAKE2b-256 2e106651a954b50d1c5b43a715ea31e1470a7f57000c6a64499d4363445e0371

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.149-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.149-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fd78a0b1507afca7a1fd6a4088a75985b0f7544b09c5f6cc3f530d610a152c9a
MD5 ba87bd531c91e19ad14eb8a807281767
BLAKE2b-256 eeee92deb2f87842a7a5165590276635e507a0a3b51f41275cc9699f207d4287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.149-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d3c518015097b8ed45efe12415313bdf9be9f6599a4301f80dba1053d15f1ae
MD5 7a7c961f5d59eb015df2f8b468b0e155
BLAKE2b-256 af9a5f05e731273d1b8717796d62d01d0176e51c70b109ca322efcac01dcd1e6

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