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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.440-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.440-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.440-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 58cd7589d46a495a3cefeb358485ad2c0f011756c03771265ba5f77e44716acb
MD5 0e9eed47ee9a81bfc056d83276333985
BLAKE2b-256 b4629ad933b9f8fc7237563bdeaf1ef943857ee3b98db9d93fe1779025599017

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c01d1c2e490c4e4d96ae5160b104d142ea7d3f54ec4f1356002f7bf94624b13c
MD5 c269049eff64efbe1c29389e21f49e43
BLAKE2b-256 1365f1786e0bde6b1256dca504a77059906a24022b71a38856ecdc168710b212

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.440-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.440-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17506e02368d478684d6d80b96f04e8a2ff6b7c0b6ae23b230e23782008e2cde
MD5 f7c22939fa5df884a1c5849edd25bef1
BLAKE2b-256 f1722de1ecf3d6e58283e8bf94832f1eb7e1d9a4c7bce7ae7267b5d537a24cba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab3740ed6ae518e7fb0adc30c60c5e05ee04ed3d6fa975abb923d039fc35a536
MD5 80b798a32992b2d41ecc4b673a61436a
BLAKE2b-256 5ff6aa9a190e11dd1187c2ee8acc50cffcfd89b9933185c7099e0d1286d105a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 564f13f2805e35323397f13bd38493b3eb70ab7192b1669e0ea2d4f92f94e256
MD5 e69d0d8d3301a82e287308d8fff71b19
BLAKE2b-256 514cada55af9130b06aa95500cf3e75f6f8989ab1e1dbdd095093edb0d87a00d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c19f2a0861d0f16ee0efc96112eae10697f6bde374248fbae6351269b18d2524
MD5 e012d6f4c8bfcde2eff215d21d80565f
BLAKE2b-256 f85073bd2cf80e926250917610660a7a8abbd3165b6889dcdf4f8d1ab9da0a7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.440-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.440-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 026db5f5501c20ccc9b3a8a100cd6c1b2791c6618b575791bb1c4f3f6a8c9730
MD5 eac70c794d3b5eb5f1096626eea83043
BLAKE2b-256 04a9e1dbf37ff66e19e929aef97e696279d35222a109f5fdc3d61575e1cc87cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebf039fb185f24d1c300106ad7917f32859b0c8894bbb1f6b9410f1fcc18f7de
MD5 0aa1f02a39464621dea8f9746f5b12fa
BLAKE2b-256 be3a6df4b0308f500807aba838e637718222366c9baa92d64eee970be4466442

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2da1164508d4996f7b4e611b838aeff91b267963ac357f5b9706b0c8151695a3
MD5 763a1020e05107be659291a1e84f40e7
BLAKE2b-256 b93d93b7578e72f59d6cc23f013877a72e6a1113ba9dc1f52c76a81e32dfdd1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7fd82c3edc46b6f96f54f5ce1261352610cca6616cf29d36c457b71ead8f7c29
MD5 c37f82cb768c78ab094c1a79bc7276cf
BLAKE2b-256 4e4099ed1e736f0a3e8429830e61c00552d92400392a71fbb572f8d3d77ab7fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.440-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.440-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2c9669b17a30201ccfa90495181fc4924294919522a3b58fde4b3ac3d40b26f
MD5 7b673254574e07300c9ec163e06b8dd5
BLAKE2b-256 a9c6cdead96735c2c63fa014b776f1b337870d3352f287cf156b09ac5e99e58e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71c13181479f20d18d60bc127d2b0978e233a93d6d92047980ef323b784098b8
MD5 00e8437c78a2a5df3c2968c6f15f2e00
BLAKE2b-256 65327e35a63158d82a92280d3584d8236156eb86a2d00d8aba10f1a05c11d8ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5a11771b2e7af96675ab6f9f6646746a6d8363cd1679cc7ff95842d4844751a5
MD5 607136ede99bdebc5af3df2966e6111b
BLAKE2b-256 9f0e470bff317a4b59601a1dd34827bdd8f36790b81952e724c4e40dc9df712a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8e448b40b2644b056f992e949a55e00840eae623d56af0b9e4d3a3818334241d
MD5 90d7b3f354d2156f9379c42de2e4ac48
BLAKE2b-256 f55a642f04b5358b98f0479f6456a9938f6bc0a2cbaebcd49863f8f48ee9ef9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.440-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.440-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bb5c9a91c7f9e27bb7e4e4c66922f2955323037165868fdfd64a5566fbfdac5
MD5 a9e99e26ce4348d558069eeca62e8510
BLAKE2b-256 656bfafefce732e15624c41c4f5c9678780b280dd483f2decd2d9a794b1b941b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 155fb2ea9f0c5911dae3c4b9de8882a8139d72adb1a2d4b06aa4dc3375e61650
MD5 fcb99c69201fcfa9c4b3a32fcadb5d47
BLAKE2b-256 1ca706ed7d5ce91a5a7b65b935492a7b06f976a374c63ac20eb7efc30c0e1066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 96f56dd83bccc4a843dbe0ca790ed66783d6f2b729edecf42a340b90eb000fca
MD5 aabc01cbb7def6c097f2c1261afbd723
BLAKE2b-256 810a70a26e66a91044a0b7cad9091243b054f84afb26fca4de65bbc9680b5272

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.440-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.440-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 051d8c01ccbedc80a56df18dc65faefd27467103c99c1fd70d39ed2e451ea6df
MD5 2a6455fe7a75be420bd3057a210c0c82
BLAKE2b-256 88f02bb5a7b421d6d23abd2c16eade00b04c3ebc07907fdb13e86d67f6ed4f01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.440-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.440-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30685d6a88fb341cb559c7d3f194867467ef26cdef2182869badf86227e72153
MD5 d127cf5c69bd9ae0aa096cd95b2e15c8
BLAKE2b-256 6899513d274666056de59a15fb1a5a4eabe7c3154426c65e8a348d3278d02cf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.440-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c5c80a9dcca74e0e5fc9689393175977ff4bbdee9ad1c3bd693995ea64f0631
MD5 d9a9982b150635e6cdc4a60912679b52
BLAKE2b-256 188ee585f78c6e21c0184d3ce1e748bf4961410c21ce8a3e7d9b154df789ab95

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