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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.482-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.482-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.482-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 27e90e4d51e41bda4912756c52a298cddc71d071c5a89e8edaf5fce14a6c6982
MD5 6c358e934d661b99f7af2b3b6034233a
BLAKE2b-256 4ce26697bac5ba3df094c8ad445bbbf69222771546402a86a81256e8f93da2f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f62348f81653fc6e10b359422fdadf3a21e4545b47c32995bcbf1b5e4c620e94
MD5 409466aa4b42d93152fb08ba24b4d3ce
BLAKE2b-256 56a135292a756aeb538561a59301f99a8d76d514c9ee4dab189df19bce2871a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.482-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.482-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 983431cc1fbc44f84fc4810d458180d07424e14fd4649d52ea545f65a7d97412
MD5 af76ae882e628717acb6a3db2bb43fb5
BLAKE2b-256 ff32f71cbcda737940f33a954458e629423a2bbfd687f8c06ee2635b3ac65793

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 652989f590b31d260cf8d1674284ea9172f14aa7b5b9594cd79e2bbb144d9a2f
MD5 6feccfe83d5728222cc78cc72ad5f32e
BLAKE2b-256 bc4d4b4463c3461c518c19f06067d54908a07d46c44448de26aab84a011116cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 11c434efdab8a182d826149f6399e9d5d77e108ba41637e046794d6e830cc25e
MD5 1d94b7c43150d7c3ec2d138e484c16dd
BLAKE2b-256 0a1a984f5aed5e761c7ad850b41a7451b0ef98171a544dda70c7eb4d97ad9b6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 df0372a3d0a44fe1ef261ad2e52397b8ecbeb23b1847d651aa0831e398d0fce0
MD5 5c151e9a24f6c6f31a518df25ca295fc
BLAKE2b-256 8c12eeeb3b9037a0260d53084636b52e8539faa4f76a8c466269e526ad1ec286

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.482-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.482-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a72157b1eb30edc30d6b25dd0d315521aa6a65025fa0f8d5ad8394eabd80249
MD5 d142f6ae374cc97a3036cfe9598f084b
BLAKE2b-256 e824c5f707a2448f280a8b6f1e2eff2773c3bb002ffa905f403a78b81f2552cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 017d9c81b952deae0f64cad0cd84a085b3233251eb9460cb0da282154200ecac
MD5 ab51eaea0cf814445bfc34679ffc7af4
BLAKE2b-256 4d36acafc3fc35cce4e6a9b4d80179426fb15e0ba492c6b2d1c0fb30f308b0f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 73638affb9397d315af2c3c27726cef17504b2c2147aed0ccec6346e4c80e74f
MD5 a077feef34602451e702d17360ec01e1
BLAKE2b-256 bf36529a244e2102846961a748f5e0c7b76838e0201c78f45f0b346fa54de18f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bf82cc43f981fa7d2013dd39b742df934733da917fc00bb2ceb5f478ac90c4fc
MD5 4cc8997f46a6098904d9e522891f47ab
BLAKE2b-256 d26cc0dbd4621d3bd4e978f4700ed072f9284a88f99480a6901923de36a70ba2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.482-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.482-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc736c46a3d18ee58d3b2f1d7ea5c2d155fd79616af3a405f4386e6268ef3bc7
MD5 8e262f9b05567c73371a3eb7a2edf288
BLAKE2b-256 25ef82bbd497ae235b52c78e1c8a75ba5c9e5363f3bf3c976d4c1e2f5c766e5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4eb7d3b64877977aabe60685a14e10f2419da5e5e43ce3e0376750002f20c2c
MD5 06bdf49563c886ee6525ed7c3b8f5b24
BLAKE2b-256 0e215e6e8b3595fe00446a791ab1c2ea3d3b29e08dac3d18e138da5798589930

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 af31b8c602ba6f8a9209d75b1e16004ad47370c1fec23e1b55ca3f3af7ddb842
MD5 1e17eebfb677693c299fd4c4c374225d
BLAKE2b-256 6455fe4b6a98c40e8a900ef2caa3a392c9adbff6438dc2fd34fcdc2f12c56e8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 12470f944ea3ebc8f2e7f0a3ce3a9e407fe1518a4687cbe01be8e6116f9ee7c6
MD5 eb83c6cf252cb3c0d34ece02eacd6fa2
BLAKE2b-256 fff29de6a1056cef759ac8e9de6b00eb70e039805a97d396cf7ec90a5bb2d842

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.482-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.482-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49f45a6ee10e39f9bc0b3311abe91763308403f4df00690f173512b4d4091fb6
MD5 025d06c8bc3d4f19d3e86560b093ac27
BLAKE2b-256 7e893077cc491deb1348264ab508b85d0a91469e4e98a3112fd0350f442d6337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0c40c7049bd54e87cef2d9e7658c9c5aab72cf23a3117954ff295f2d15effb5
MD5 40168bfc12734962f7d77b65077565d7
BLAKE2b-256 b88bd69764dcd8713674b193e44f16fd3a9777ac2369ba97852f1354b8661a69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3488579cf9085f15422925692ca329fcfab02bc16df4b991e24f74b54915d47
MD5 c153b72c2411c65ebb599c9410be17f2
BLAKE2b-256 df7aa5d1a8eda2f6cd8a1328e1a4146c2d4b0a1eaa8f93cafa89cfa84f953fa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.482-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.482-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7f80b7720a8db0d2facef4225f979dd74c2c2e98fc21b48b6bb06851987c9b19
MD5 0cbdcc7836b5b8f5c201277dcc0752f6
BLAKE2b-256 cd32ade00bb309192752c1d21be8a6df42f17f3037977ec7ea177b58e192028f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.482-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.482-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8dcbe982ae83d290a14a4665973e7bc0b7e5a03dd7a03e516be8ebd333777c75
MD5 fab805b41d898a4fe7b8bcc52a296bcc
BLAKE2b-256 728a8bc2b558bf4e5a58a9dfbf98d2f143a2143ef95b818198cefbe4eadece44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.482-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82300b0d69c00ce08a8bbfc2163ff951c0b838b83073cdbe7ba6c1256ef991ba
MD5 b7d5c65ca5542c88dbb839e819f80249
BLAKE2b-256 50e4f904afb0f1fc878186a62690e92b0c7b17a4b2b22be5ecbda14482eee15a

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